[2025-04-06 00:00:04] Production.INFO: next invoice date [2025-04-06 00:00:04] Production.INFO: 2025-05-06 [2025-04-06 00:00:04] Production.INFO: getdaysdiff [2025-04-06 00:00:04] Production.INFO: +30 [2025-04-06 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,30,30,'RMScheduler',2025-04-06 00:00:04,1,0,,,0) [2025-04-06 00:00:04] Production.INFO: next invoice date [2025-04-06 00:00:04] Production.INFO: 2025-05-06 [2025-04-06 00:00:04] Production.INFO: getdaysdiff [2025-04-06 00:00:04] Production.INFO: +30 [2025-04-06 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,30,30,'RMScheduler',2025-04-06 00:00:04,0,0,,,0) [2025-04-06 00:00:04] Production.INFO: next invoice date [2025-04-06 00:00:04] Production.INFO: 2025-05-06 [2025-04-06 00:00:04] Production.INFO: getdaysdiff [2025-04-06 00:00:04] Production.INFO: +30 [2025-04-06 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,30,30,'RMScheduler',2025-04-06 00:00:04,0,0,,,0) [2025-04-06 00:00:04] Production.INFO: next invoice date [2025-04-06 00:00:04] Production.INFO: 2025-05-06 [2025-04-06 00:00:04] Production.INFO: getdaysdiff [2025-04-06 00:00:04] Production.INFO: +30 [2025-04-06 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,30,30,'RMScheduler',2025-04-06 00:00:04,0,0,,,0) [2025-04-06 00:00:05] Production.INFO: next invoice date [2025-04-06 00:00:05] Production.INFO: 2025-05-06 [2025-04-06 00:00:05] Production.INFO: getdaysdiff [2025-04-06 00:00:05] Production.INFO: +30 [2025-04-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,30,30,'RMScheduler',2025-04-06 00:00:04,0,0,,,0) [2025-04-06 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:00:06 [end_date_ymd] => 2025-04-06 00:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:00:06' and `end` < '2025-04-06 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-04-06 00:00:19] Production.INFO: count ==1437 [2025-04-06 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-05 21:00:06 - End Time 2025-04-06 00:00:06 [2025-04-06 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843705', 'tblTempUsageDetail_20' ) start [2025-04-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843705', 'tblTempUsageDetail_20' ) end [2025-04-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843705', 'tblTempVendorCDR_20' ) start [2025-04-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843705', 'tblTempVendorCDR_20' ) end [2025-04-06 00:00:20] Production.INFO: ProcessCDR(1,14843705,1,1,2) [2025-04-06 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843705', 'tblTempUsageDetail_20' ) start [2025-04-06 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843705', 'tblTempUsageDetail_20' ) end [2025-04-06 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:00:25] Production.INFO: ==26365== Releasing lock... [2025-04-06 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:00:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:01:06 [end_date_ymd] => 2025-04-06 00:01:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:01:06' and `end` < '2025-04-06 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-04-06 00:01:21] Production.INFO: count ==806 [2025-04-06 00:01:21] Production.ERROR: pbx CDR StartTime 2025-04-05 21:01:06 - End Time 2025-04-06 00:01:06 [2025-04-06 00:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843711', 'tblTempUsageDetail_20' ) start [2025-04-06 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843711', 'tblTempUsageDetail_20' ) end [2025-04-06 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843711', 'tblTempVendorCDR_20' ) start [2025-04-06 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843711', 'tblTempVendorCDR_20' ) end [2025-04-06 00:01:22] Production.INFO: ProcessCDR(1,14843711,1,1,2) [2025-04-06 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843711', 'tblTempUsageDetail_20' ) start [2025-04-06 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843711', 'tblTempUsageDetail_20' ) end [2025-04-06 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:01:25] Production.INFO: ==26457== Releasing lock... [2025-04-06 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:01:25] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:02:05 [end_date_ymd] => 2025-04-06 00:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:02:05' and `end` < '2025-04-06 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-04-06 00:02:19] Production.INFO: count ==807 [2025-04-06 00:02:20] Production.ERROR: pbx CDR StartTime 2025-04-05 21:02:05 - End Time 2025-04-06 00:02:05 [2025-04-06 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843716', 'tblTempUsageDetail_20' ) start [2025-04-06 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843716', 'tblTempUsageDetail_20' ) end [2025-04-06 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843716', 'tblTempVendorCDR_20' ) start [2025-04-06 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843716', 'tblTempVendorCDR_20' ) end [2025-04-06 00:02:20] Production.INFO: ProcessCDR(1,14843716,1,1,2) [2025-04-06 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843716', 'tblTempUsageDetail_20' ) start [2025-04-06 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843716', 'tblTempUsageDetail_20' ) end [2025-04-06 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:02:23] Production.INFO: ==26534== Releasing lock... [2025-04-06 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:03:05 [end_date_ymd] => 2025-04-06 00:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:03:05' and `end` < '2025-04-06 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-04-06 00:03:18] Production.INFO: count ==814 [2025-04-06 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:03:05 - End Time 2025-04-06 00:03:05 [2025-04-06 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843721', 'tblTempUsageDetail_20' ) start [2025-04-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843721', 'tblTempUsageDetail_20' ) end [2025-04-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843721', 'tblTempVendorCDR_20' ) start [2025-04-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843721', 'tblTempVendorCDR_20' ) end [2025-04-06 00:03:18] Production.INFO: ProcessCDR(1,14843721,1,1,2) [2025-04-06 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843721', 'tblTempUsageDetail_20' ) start [2025-04-06 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843721', 'tblTempUsageDetail_20' ) end [2025-04-06 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:03:22] Production.INFO: ==26609== Releasing lock... [2025-04-06 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:04:05 [end_date_ymd] => 2025-04-06 00:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:04:05' and `end` < '2025-04-06 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-04-06 00:04:30] Production.INFO: count ==813 [2025-04-06 00:04:31] Production.ERROR: pbx CDR StartTime 2025-04-05 21:04:05 - End Time 2025-04-06 00:04:05 [2025-04-06 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843726', 'tblTempUsageDetail_20' ) start [2025-04-06 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843726', 'tblTempUsageDetail_20' ) end [2025-04-06 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843726', 'tblTempVendorCDR_20' ) start [2025-04-06 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843726', 'tblTempVendorCDR_20' ) end [2025-04-06 00:04:31] Production.INFO: ProcessCDR(1,14843726,1,1,2) [2025-04-06 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843726', 'tblTempUsageDetail_20' ) start [2025-04-06 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843726', 'tblTempUsageDetail_20' ) end [2025-04-06 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:04:34] Production.INFO: ==26686== Releasing lock... [2025-04-06 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:04:34] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:05:06 [end_date_ymd] => 2025-04-06 00:05:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:05:06' and `end` < '2025-04-06 00: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-04-06 00:05:25] Production.INFO: count ==806 [2025-04-06 00:05:26] Production.ERROR: pbx CDR StartTime 2025-04-05 21:05:06 - End Time 2025-04-06 00:05:06 [2025-04-06 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843731', 'tblTempUsageDetail_20' ) start [2025-04-06 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843731', 'tblTempUsageDetail_20' ) end [2025-04-06 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843731', 'tblTempVendorCDR_20' ) start [2025-04-06 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843731', 'tblTempVendorCDR_20' ) end [2025-04-06 00:05:26] Production.INFO: ProcessCDR(1,14843731,1,1,2) [2025-04-06 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843731', 'tblTempUsageDetail_20' ) start [2025-04-06 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843731', 'tblTempUsageDetail_20' ) end [2025-04-06 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:05:29] Production.INFO: ==26768== Releasing lock... [2025-04-06 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:05:29] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:06:05 [end_date_ymd] => 2025-04-06 00:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:06:05' and `end` < '2025-04-06 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-04-06 00:06:28] Production.INFO: count ==801 [2025-04-06 00:06:28] Production.ERROR: pbx CDR StartTime 2025-04-05 21:06:05 - End Time 2025-04-06 00:06:05 [2025-04-06 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843736', 'tblTempUsageDetail_20' ) start [2025-04-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843736', 'tblTempUsageDetail_20' ) end [2025-04-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843736', 'tblTempVendorCDR_20' ) start [2025-04-06 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843736', 'tblTempVendorCDR_20' ) end [2025-04-06 00:06:28] Production.INFO: ProcessCDR(1,14843736,1,1,2) [2025-04-06 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843736', 'tblTempUsageDetail_20' ) start [2025-04-06 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843736', 'tblTempUsageDetail_20' ) end [2025-04-06 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:06:31] Production.INFO: ==26846== Releasing lock... [2025-04-06 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:06:31] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:07:05 [end_date_ymd] => 2025-04-06 00:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:07:05' and `end` < '2025-04-06 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-04-06 00:07:23] Production.INFO: count ==799 [2025-04-06 00:07:23] Production.ERROR: pbx CDR StartTime 2025-04-05 21:07:05 - End Time 2025-04-06 00:07:05 [2025-04-06 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843741', 'tblTempUsageDetail_20' ) start [2025-04-06 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843741', 'tblTempUsageDetail_20' ) end [2025-04-06 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843741', 'tblTempVendorCDR_20' ) start [2025-04-06 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843741', 'tblTempVendorCDR_20' ) end [2025-04-06 00:07:23] Production.INFO: ProcessCDR(1,14843741,1,1,2) [2025-04-06 00:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843741', 'tblTempUsageDetail_20' ) start [2025-04-06 00:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843741', 'tblTempUsageDetail_20' ) end [2025-04-06 00:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:07:26] Production.INFO: ==26924== Releasing lock... [2025-04-06 00:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:07:26] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:08:06 [end_date_ymd] => 2025-04-06 00:08:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:08:06' and `end` < '2025-04-06 00: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-04-06 00:08:19] Production.INFO: count ==797 [2025-04-06 00:08:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:08:06 - End Time 2025-04-06 00:08:06 [2025-04-06 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843746', 'tblTempUsageDetail_20' ) start [2025-04-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843746', 'tblTempUsageDetail_20' ) end [2025-04-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843746', 'tblTempVendorCDR_20' ) start [2025-04-06 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843746', 'tblTempVendorCDR_20' ) end [2025-04-06 00:08:19] Production.INFO: ProcessCDR(1,14843746,1,1,2) [2025-04-06 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843746', 'tblTempUsageDetail_20' ) start [2025-04-06 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843746', 'tblTempUsageDetail_20' ) end [2025-04-06 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:08:22] Production.INFO: ==26999== Releasing lock... [2025-04-06 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:09:05 [end_date_ymd] => 2025-04-06 00:09:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:09:05' and `end` < '2025-04-06 00: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-04-06 00:09:18] Production.INFO: count ==805 [2025-04-06 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:09:05 - End Time 2025-04-06 00:09:05 [2025-04-06 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843751', 'tblTempUsageDetail_20' ) start [2025-04-06 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843751', 'tblTempUsageDetail_20' ) end [2025-04-06 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843751', 'tblTempVendorCDR_20' ) start [2025-04-06 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843751', 'tblTempVendorCDR_20' ) end [2025-04-06 00:09:19] Production.INFO: ProcessCDR(1,14843751,1,1,2) [2025-04-06 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843751', 'tblTempUsageDetail_20' ) start [2025-04-06 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843751', 'tblTempUsageDetail_20' ) end [2025-04-06 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:09:22] Production.INFO: ==27077== Releasing lock... [2025-04-06 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:09:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:10:06 [end_date_ymd] => 2025-04-06 00:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:10:06' and `end` < '2025-04-06 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-04-06 00:10:19] Production.INFO: count ==816 [2025-04-06 00:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 21:10:06 - End Time 2025-04-06 00:10:06 [2025-04-06 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843756', 'tblTempUsageDetail_20' ) start [2025-04-06 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843756', 'tblTempUsageDetail_20' ) end [2025-04-06 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843756', 'tblTempVendorCDR_20' ) start [2025-04-06 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843756', 'tblTempVendorCDR_20' ) end [2025-04-06 00:10:20] Production.INFO: ProcessCDR(1,14843756,1,1,2) [2025-04-06 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843756', 'tblTempUsageDetail_20' ) start [2025-04-06 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843756', 'tblTempUsageDetail_20' ) end [2025-04-06 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:10:23] Production.INFO: ==27153== Releasing lock... [2025-04-06 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:10:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:11:05 [end_date_ymd] => 2025-04-06 00:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:11:05' and `end` < '2025-04-06 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-04-06 00:11:18] Production.INFO: count ==821 [2025-04-06 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:11:05 - End Time 2025-04-06 00:11:05 [2025-04-06 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843762', 'tblTempUsageDetail_20' ) start [2025-04-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843762', 'tblTempUsageDetail_20' ) end [2025-04-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843762', 'tblTempVendorCDR_20' ) start [2025-04-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843762', 'tblTempVendorCDR_20' ) end [2025-04-06 00:11:18] Production.INFO: ProcessCDR(1,14843762,1,1,2) [2025-04-06 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843762', 'tblTempUsageDetail_20' ) start [2025-04-06 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843762', 'tblTempUsageDetail_20' ) end [2025-04-06 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:11:23] Production.INFO: ==27271== Releasing lock... [2025-04-06 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:11:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:12:05 [end_date_ymd] => 2025-04-06 00:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:12:05' and `end` < '2025-04-06 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-04-06 00:12:18] Production.INFO: count ==823 [2025-04-06 00:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:12:05 - End Time 2025-04-06 00:12:05 [2025-04-06 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843767', 'tblTempUsageDetail_20' ) start [2025-04-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843767', 'tblTempUsageDetail_20' ) end [2025-04-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843767', 'tblTempVendorCDR_20' ) start [2025-04-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843767', 'tblTempVendorCDR_20' ) end [2025-04-06 00:12:19] Production.INFO: ProcessCDR(1,14843767,1,1,2) [2025-04-06 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843767', 'tblTempUsageDetail_20' ) start [2025-04-06 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843767', 'tblTempUsageDetail_20' ) end [2025-04-06 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:12:22] Production.INFO: ==27350== Releasing lock... [2025-04-06 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:12:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:13:05 [end_date_ymd] => 2025-04-06 00:13:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:13:05' and `end` < '2025-04-06 00: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-04-06 00:13:18] Production.INFO: count ==813 [2025-04-06 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:13:05 - End Time 2025-04-06 00:13:05 [2025-04-06 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843772', 'tblTempUsageDetail_20' ) start [2025-04-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843772', 'tblTempUsageDetail_20' ) end [2025-04-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843772', 'tblTempVendorCDR_20' ) start [2025-04-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843772', 'tblTempVendorCDR_20' ) end [2025-04-06 00:13:18] Production.INFO: ProcessCDR(1,14843772,1,1,2) [2025-04-06 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843772', 'tblTempUsageDetail_20' ) start [2025-04-06 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843772', 'tblTempUsageDetail_20' ) end [2025-04-06 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:13:23] Production.INFO: ==27426== Releasing lock... [2025-04-06 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:13:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:14:06 [end_date_ymd] => 2025-04-06 00:14:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:14:06' and `end` < '2025-04-06 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-04-06 00:14:18] Production.INFO: count ==825 [2025-04-06 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:14:06 - End Time 2025-04-06 00:14:06 [2025-04-06 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843777', 'tblTempUsageDetail_20' ) start [2025-04-06 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843777', 'tblTempUsageDetail_20' ) end [2025-04-06 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843777', 'tblTempVendorCDR_20' ) start [2025-04-06 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843777', 'tblTempVendorCDR_20' ) end [2025-04-06 00:14:19] Production.INFO: ProcessCDR(1,14843777,1,1,2) [2025-04-06 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843777', 'tblTempUsageDetail_20' ) start [2025-04-06 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843777', 'tblTempUsageDetail_20' ) end [2025-04-06 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:14:22] Production.INFO: ==27502== Releasing lock... [2025-04-06 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:15:05 [end_date_ymd] => 2025-04-06 00:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:15:05' and `end` < '2025-04-06 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-04-06 00:15:18] Production.INFO: count ==819 [2025-04-06 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:15:05 - End Time 2025-04-06 00:15:05 [2025-04-06 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843782', 'tblTempUsageDetail_20' ) start [2025-04-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843782', 'tblTempUsageDetail_20' ) end [2025-04-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843782', 'tblTempVendorCDR_20' ) start [2025-04-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843782', 'tblTempVendorCDR_20' ) end [2025-04-06 00:15:18] Production.INFO: ProcessCDR(1,14843782,1,1,2) [2025-04-06 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843782', 'tblTempUsageDetail_20' ) start [2025-04-06 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843782', 'tblTempUsageDetail_20' ) end [2025-04-06 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:15:21] Production.INFO: ==27578== Releasing lock... [2025-04-06 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:16:05 [end_date_ymd] => 2025-04-06 00:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:16:05' and `end` < '2025-04-06 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-04-06 00:16:18] Production.INFO: count ==812 [2025-04-06 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:16:05 - End Time 2025-04-06 00:16:05 [2025-04-06 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843787', 'tblTempUsageDetail_20' ) start [2025-04-06 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843787', 'tblTempUsageDetail_20' ) end [2025-04-06 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843787', 'tblTempVendorCDR_20' ) start [2025-04-06 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843787', 'tblTempVendorCDR_20' ) end [2025-04-06 00:16:19] Production.INFO: ProcessCDR(1,14843787,1,1,2) [2025-04-06 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843787', 'tblTempUsageDetail_20' ) start [2025-04-06 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843787', 'tblTempUsageDetail_20' ) end [2025-04-06 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:16:24] Production.INFO: ==27654== Releasing lock... [2025-04-06 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:16:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:17:05 [end_date_ymd] => 2025-04-06 00:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:17:05' and `end` < '2025-04-06 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-04-06 00:17:18] Production.INFO: count ==815 [2025-04-06 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:17:05 - End Time 2025-04-06 00:17:05 [2025-04-06 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843792', 'tblTempUsageDetail_20' ) start [2025-04-06 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843792', 'tblTempUsageDetail_20' ) end [2025-04-06 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843792', 'tblTempVendorCDR_20' ) start [2025-04-06 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843792', 'tblTempVendorCDR_20' ) end [2025-04-06 00:17:18] Production.INFO: ProcessCDR(1,14843792,1,1,2) [2025-04-06 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843792', 'tblTempUsageDetail_20' ) start [2025-04-06 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843792', 'tblTempUsageDetail_20' ) end [2025-04-06 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:17:23] Production.INFO: ==27732== Releasing lock... [2025-04-06 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:17:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:18:05 [end_date_ymd] => 2025-04-06 00:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:18:05' and `end` < '2025-04-06 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-04-06 00:18:18] Production.INFO: count ==819 [2025-04-06 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:18:05 - End Time 2025-04-06 00:18:05 [2025-04-06 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843797', 'tblTempUsageDetail_20' ) start [2025-04-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843797', 'tblTempUsageDetail_20' ) end [2025-04-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843797', 'tblTempVendorCDR_20' ) start [2025-04-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843797', 'tblTempVendorCDR_20' ) end [2025-04-06 00:18:19] Production.INFO: ProcessCDR(1,14843797,1,1,2) [2025-04-06 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843797', 'tblTempUsageDetail_20' ) start [2025-04-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843797', 'tblTempUsageDetail_20' ) end [2025-04-06 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:18:22] Production.INFO: ==27809== Releasing lock... [2025-04-06 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:19:04 [end_date_ymd] => 2025-04-06 00:19:04 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:19:04' and `end` < '2025-04-06 00: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-04-06 00:19:17] Production.INFO: count ==821 [2025-04-06 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:19:04 - End Time 2025-04-06 00:19:04 [2025-04-06 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843802', 'tblTempUsageDetail_20' ) start [2025-04-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843802', 'tblTempUsageDetail_20' ) end [2025-04-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843802', 'tblTempVendorCDR_20' ) start [2025-04-06 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843802', 'tblTempVendorCDR_20' ) end [2025-04-06 00:19:18] Production.INFO: ProcessCDR(1,14843802,1,1,2) [2025-04-06 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843802', 'tblTempUsageDetail_20' ) start [2025-04-06 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843802', 'tblTempUsageDetail_20' ) end [2025-04-06 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:19:21] Production.INFO: ==27886== Releasing lock... [2025-04-06 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:19:21] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:20:06 [end_date_ymd] => 2025-04-06 00:20:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:20:06' and `end` < '2025-04-06 00: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-04-06 00:20:18] Production.INFO: count ==830 [2025-04-06 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:20:06 - End Time 2025-04-06 00:20:06 [2025-04-06 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843808', 'tblTempUsageDetail_20' ) start [2025-04-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843808', 'tblTempUsageDetail_20' ) end [2025-04-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843808', 'tblTempVendorCDR_20' ) start [2025-04-06 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843808', 'tblTempVendorCDR_20' ) end [2025-04-06 00:20:19] Production.INFO: ProcessCDR(1,14843808,1,1,2) [2025-04-06 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843808', 'tblTempUsageDetail_20' ) start [2025-04-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843808', 'tblTempUsageDetail_20' ) end [2025-04-06 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:20:22] Production.INFO: ==27964== Releasing lock... [2025-04-06 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:20:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:21:06 [end_date_ymd] => 2025-04-06 00:21:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:21:06' and `end` < '2025-04-06 00: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-04-06 00:21:18] Production.INFO: count ==848 [2025-04-06 00:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:21:06 - End Time 2025-04-06 00:21:06 [2025-04-06 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843813', 'tblTempUsageDetail_20' ) start [2025-04-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843813', 'tblTempUsageDetail_20' ) end [2025-04-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843813', 'tblTempVendorCDR_20' ) start [2025-04-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843813', 'tblTempVendorCDR_20' ) end [2025-04-06 00:21:19] Production.INFO: ProcessCDR(1,14843813,1,1,2) [2025-04-06 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843813', 'tblTempUsageDetail_20' ) start [2025-04-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843813', 'tblTempUsageDetail_20' ) end [2025-04-06 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:21:22] Production.INFO: ==28043== Releasing lock... [2025-04-06 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:21:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:22:05 [end_date_ymd] => 2025-04-06 00:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:22:05' and `end` < '2025-04-06 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-04-06 00:22:18] Production.INFO: count ==851 [2025-04-06 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:22:05 - End Time 2025-04-06 00:22:05 [2025-04-06 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843818', 'tblTempUsageDetail_20' ) start [2025-04-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843818', 'tblTempUsageDetail_20' ) end [2025-04-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843818', 'tblTempVendorCDR_20' ) start [2025-04-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843818', 'tblTempVendorCDR_20' ) end [2025-04-06 00:22:18] Production.INFO: ProcessCDR(1,14843818,1,1,2) [2025-04-06 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843818', 'tblTempUsageDetail_20' ) start [2025-04-06 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843818', 'tblTempUsageDetail_20' ) end [2025-04-06 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:22:21] Production.INFO: ==28121== Releasing lock... [2025-04-06 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:22:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:23:05 [end_date_ymd] => 2025-04-06 00:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:23:05' and `end` < '2025-04-06 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-04-06 00:23:18] Production.INFO: count ==850 [2025-04-06 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:23:05 - End Time 2025-04-06 00:23:05 [2025-04-06 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843823', 'tblTempUsageDetail_20' ) start [2025-04-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843823', 'tblTempUsageDetail_20' ) end [2025-04-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843823', 'tblTempVendorCDR_20' ) start [2025-04-06 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843823', 'tblTempVendorCDR_20' ) end [2025-04-06 00:23:19] Production.INFO: ProcessCDR(1,14843823,1,1,2) [2025-04-06 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843823', 'tblTempUsageDetail_20' ) start [2025-04-06 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843823', 'tblTempUsageDetail_20' ) end [2025-04-06 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:23:22] Production.INFO: ==28203== Releasing lock... [2025-04-06 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:23:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:24:05 [end_date_ymd] => 2025-04-06 00:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:24:05' and `end` < '2025-04-06 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-04-06 00:24:18] Production.INFO: count ==848 [2025-04-06 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:24:05 - End Time 2025-04-06 00:24:05 [2025-04-06 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843828', 'tblTempUsageDetail_20' ) start [2025-04-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843828', 'tblTempUsageDetail_20' ) end [2025-04-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843828', 'tblTempVendorCDR_20' ) start [2025-04-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843828', 'tblTempVendorCDR_20' ) end [2025-04-06 00:24:18] Production.INFO: ProcessCDR(1,14843828,1,1,2) [2025-04-06 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843828', 'tblTempUsageDetail_20' ) start [2025-04-06 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843828', 'tblTempUsageDetail_20' ) end [2025-04-06 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:24:22] Production.INFO: ==28276== Releasing lock... [2025-04-06 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:25:05 [end_date_ymd] => 2025-04-06 00:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:25:05' and `end` < '2025-04-06 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-04-06 00:25:18] Production.INFO: count ==841 [2025-04-06 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:25:05 - End Time 2025-04-06 00:25:05 [2025-04-06 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843833', 'tblTempUsageDetail_20' ) start [2025-04-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843833', 'tblTempUsageDetail_20' ) end [2025-04-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843833', 'tblTempVendorCDR_20' ) start [2025-04-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843833', 'tblTempVendorCDR_20' ) end [2025-04-06 00:25:18] Production.INFO: ProcessCDR(1,14843833,1,1,2) [2025-04-06 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843833', 'tblTempUsageDetail_20' ) start [2025-04-06 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843833', 'tblTempUsageDetail_20' ) end [2025-04-06 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:25:22] Production.INFO: ==28360== Releasing lock... [2025-04-06 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:25:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:26:05 [end_date_ymd] => 2025-04-06 00:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:26:05' and `end` < '2025-04-06 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-04-06 00:26:18] Production.INFO: count ==834 [2025-04-06 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:26:05 - End Time 2025-04-06 00:26:05 [2025-04-06 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843838', 'tblTempUsageDetail_20' ) start [2025-04-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843838', 'tblTempUsageDetail_20' ) end [2025-04-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843838', 'tblTempVendorCDR_20' ) start [2025-04-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843838', 'tblTempVendorCDR_20' ) end [2025-04-06 00:26:18] Production.INFO: ProcessCDR(1,14843838,1,1,2) [2025-04-06 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843838', 'tblTempUsageDetail_20' ) start [2025-04-06 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843838', 'tblTempUsageDetail_20' ) end [2025-04-06 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:26:22] Production.INFO: ==28474== Releasing lock... [2025-04-06 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:27:05 [end_date_ymd] => 2025-04-06 00:27:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:27:05' and `end` < '2025-04-06 00: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-04-06 00:27:18] Production.INFO: count ==834 [2025-04-06 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:27:05 - End Time 2025-04-06 00:27:05 [2025-04-06 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843843', 'tblTempUsageDetail_20' ) start [2025-04-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843843', 'tblTempUsageDetail_20' ) end [2025-04-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843843', 'tblTempVendorCDR_20' ) start [2025-04-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843843', 'tblTempVendorCDR_20' ) end [2025-04-06 00:27:18] Production.INFO: ProcessCDR(1,14843843,1,1,2) [2025-04-06 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843843', 'tblTempUsageDetail_20' ) start [2025-04-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843843', 'tblTempUsageDetail_20' ) end [2025-04-06 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:27:22] Production.INFO: ==28553== Releasing lock... [2025-04-06 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:28:06 [end_date_ymd] => 2025-04-06 00:28:06 [RateCDR] => 1 ) [2025-04-06 00:28: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-04-05 21:28:06' and `end` < '2025-04-06 00:28: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-04-06 00:28:19] Production.INFO: count ==834 [2025-04-06 00:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:28:06 - End Time 2025-04-06 00:28:06 [2025-04-06 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843848', 'tblTempUsageDetail_20' ) start [2025-04-06 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843848', 'tblTempUsageDetail_20' ) end [2025-04-06 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843848', 'tblTempVendorCDR_20' ) start [2025-04-06 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843848', 'tblTempVendorCDR_20' ) end [2025-04-06 00:28:19] Production.INFO: ProcessCDR(1,14843848,1,1,2) [2025-04-06 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843848', 'tblTempUsageDetail_20' ) start [2025-04-06 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843848', 'tblTempUsageDetail_20' ) end [2025-04-06 00:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:28:24] Production.INFO: ==28630== Releasing lock... [2025-04-06 00:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:28:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:29:05 [end_date_ymd] => 2025-04-06 00:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:29:05' and `end` < '2025-04-06 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-04-06 00:29:18] Production.INFO: count ==834 [2025-04-06 00:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:29:05 - End Time 2025-04-06 00:29:05 [2025-04-06 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843853', 'tblTempUsageDetail_20' ) start [2025-04-06 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843853', 'tblTempUsageDetail_20' ) end [2025-04-06 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843853', 'tblTempVendorCDR_20' ) start [2025-04-06 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843853', 'tblTempVendorCDR_20' ) end [2025-04-06 00:29:19] Production.INFO: ProcessCDR(1,14843853,1,1,2) [2025-04-06 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843853', 'tblTempUsageDetail_20' ) start [2025-04-06 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843853', 'tblTempUsageDetail_20' ) end [2025-04-06 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:29:22] Production.INFO: ==28706== Releasing lock... [2025-04-06 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:29:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:30:06 [end_date_ymd] => 2025-04-06 00:30:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:30:06' and `end` < '2025-04-06 00: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-04-06 00:30:19] Production.INFO: count ==843 [2025-04-06 00:30:20] Production.ERROR: pbx CDR StartTime 2025-04-05 21:30:06 - End Time 2025-04-06 00:30:06 [2025-04-06 00:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843858', 'tblTempUsageDetail_20' ) start [2025-04-06 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843858', 'tblTempUsageDetail_20' ) end [2025-04-06 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843858', 'tblTempVendorCDR_20' ) start [2025-04-06 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843858', 'tblTempVendorCDR_20' ) end [2025-04-06 00:30:20] Production.INFO: ProcessCDR(1,14843858,1,1,2) [2025-04-06 00:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843858', 'tblTempUsageDetail_20' ) start [2025-04-06 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843858', 'tblTempUsageDetail_20' ) end [2025-04-06 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:30:23] Production.INFO: ==28782== Releasing lock... [2025-04-06 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:31:05 [end_date_ymd] => 2025-04-06 00:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:31:05' and `end` < '2025-04-06 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-04-06 00:31:18] Production.INFO: count ==860 [2025-04-06 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:31:05 - End Time 2025-04-06 00:31:05 [2025-04-06 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843864', 'tblTempUsageDetail_20' ) start [2025-04-06 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843864', 'tblTempUsageDetail_20' ) end [2025-04-06 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843864', 'tblTempVendorCDR_20' ) start [2025-04-06 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843864', 'tblTempVendorCDR_20' ) end [2025-04-06 00:31:19] Production.INFO: ProcessCDR(1,14843864,1,1,2) [2025-04-06 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843864', 'tblTempUsageDetail_20' ) start [2025-04-06 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843864', 'tblTempUsageDetail_20' ) end [2025-04-06 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:31:22] Production.INFO: ==28865== Releasing lock... [2025-04-06 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:31:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:32:06 [end_date_ymd] => 2025-04-06 00:32:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:32:06' and `end` < '2025-04-06 00: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-04-06 00:32:19] Production.INFO: count ==853 [2025-04-06 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:32:06 - End Time 2025-04-06 00:32:06 [2025-04-06 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843869', 'tblTempUsageDetail_20' ) start [2025-04-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843869', 'tblTempUsageDetail_20' ) end [2025-04-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843869', 'tblTempVendorCDR_20' ) start [2025-04-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843869', 'tblTempVendorCDR_20' ) end [2025-04-06 00:32:19] Production.INFO: ProcessCDR(1,14843869,1,1,2) [2025-04-06 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843869', 'tblTempUsageDetail_20' ) start [2025-04-06 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843869', 'tblTempUsageDetail_20' ) end [2025-04-06 00:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:32:24] Production.INFO: ==28943== Releasing lock... [2025-04-06 00:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:32:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:33:05 [end_date_ymd] => 2025-04-06 00:33:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:33:05' and `end` < '2025-04-06 00: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-04-06 00:33:18] Production.INFO: count ==854 [2025-04-06 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:33:05 - End Time 2025-04-06 00:33:05 [2025-04-06 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843874', 'tblTempUsageDetail_20' ) start [2025-04-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843874', 'tblTempUsageDetail_20' ) end [2025-04-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843874', 'tblTempVendorCDR_20' ) start [2025-04-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843874', 'tblTempVendorCDR_20' ) end [2025-04-06 00:33:18] Production.INFO: ProcessCDR(1,14843874,1,1,2) [2025-04-06 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843874', 'tblTempUsageDetail_20' ) start [2025-04-06 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843874', 'tblTempUsageDetail_20' ) end [2025-04-06 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:33:22] Production.INFO: ==29019== Releasing lock... [2025-04-06 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:34:05 [end_date_ymd] => 2025-04-06 00:34:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:34:05' and `end` < '2025-04-06 00: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-04-06 00:34:18] Production.INFO: count ==847 [2025-04-06 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:34:05 - End Time 2025-04-06 00:34:05 [2025-04-06 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843879', 'tblTempUsageDetail_20' ) start [2025-04-06 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843879', 'tblTempUsageDetail_20' ) end [2025-04-06 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843879', 'tblTempVendorCDR_20' ) start [2025-04-06 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843879', 'tblTempVendorCDR_20' ) end [2025-04-06 00:34:19] Production.INFO: ProcessCDR(1,14843879,1,1,2) [2025-04-06 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843879', 'tblTempUsageDetail_20' ) start [2025-04-06 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843879', 'tblTempUsageDetail_20' ) end [2025-04-06 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:34:22] Production.INFO: ==29092== Releasing lock... [2025-04-06 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:34:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:35:05 [end_date_ymd] => 2025-04-06 00:35:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:35:05' and `end` < '2025-04-06 00: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-04-06 00:35:18] Production.INFO: count ==848 [2025-04-06 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:35:05 - End Time 2025-04-06 00:35:05 [2025-04-06 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843884', 'tblTempUsageDetail_20' ) start [2025-04-06 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843884', 'tblTempUsageDetail_20' ) end [2025-04-06 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843884', 'tblTempVendorCDR_20' ) start [2025-04-06 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843884', 'tblTempVendorCDR_20' ) end [2025-04-06 00:35:18] Production.INFO: ProcessCDR(1,14843884,1,1,2) [2025-04-06 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843884', 'tblTempUsageDetail_20' ) start [2025-04-06 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843884', 'tblTempUsageDetail_20' ) end [2025-04-06 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:35:22] Production.INFO: ==29168== Releasing lock... [2025-04-06 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:35:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:36:05 [end_date_ymd] => 2025-04-06 00:36:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:36:05' and `end` < '2025-04-06 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-04-06 00:36:19] Production.INFO: count ==840 [2025-04-06 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:36:05 - End Time 2025-04-06 00:36:05 [2025-04-06 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843889', 'tblTempUsageDetail_20' ) start [2025-04-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843889', 'tblTempUsageDetail_20' ) end [2025-04-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843889', 'tblTempVendorCDR_20' ) start [2025-04-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843889', 'tblTempVendorCDR_20' ) end [2025-04-06 00:36:19] Production.INFO: ProcessCDR(1,14843889,1,1,2) [2025-04-06 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843889', 'tblTempUsageDetail_20' ) start [2025-04-06 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843889', 'tblTempUsageDetail_20' ) end [2025-04-06 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:36:22] Production.INFO: ==29244== Releasing lock... [2025-04-06 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:36:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:37:05 [end_date_ymd] => 2025-04-06 00:37:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:37:05' and `end` < '2025-04-06 00: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-04-06 00:37:17] Production.INFO: count ==837 [2025-04-06 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:37:05 - End Time 2025-04-06 00:37:05 [2025-04-06 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843894', 'tblTempUsageDetail_20' ) start [2025-04-06 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843894', 'tblTempUsageDetail_20' ) end [2025-04-06 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843894', 'tblTempVendorCDR_20' ) start [2025-04-06 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843894', 'tblTempVendorCDR_20' ) end [2025-04-06 00:37:18] Production.INFO: ProcessCDR(1,14843894,1,1,2) [2025-04-06 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843894', 'tblTempUsageDetail_20' ) start [2025-04-06 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843894', 'tblTempUsageDetail_20' ) end [2025-04-06 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:37:21] Production.INFO: ==29322== Releasing lock... [2025-04-06 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:38:06 [end_date_ymd] => 2025-04-06 00:38:06 [RateCDR] => 1 ) [2025-04-06 00:38: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-04-05 21:38:06' and `end` < '2025-04-06 00:38: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-04-06 00:38:19] Production.INFO: count ==828 [2025-04-06 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:38:06 - End Time 2025-04-06 00:38:06 [2025-04-06 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843899', 'tblTempUsageDetail_20' ) start [2025-04-06 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843899', 'tblTempUsageDetail_20' ) end [2025-04-06 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843899', 'tblTempVendorCDR_20' ) start [2025-04-06 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843899', 'tblTempVendorCDR_20' ) end [2025-04-06 00:38:19] Production.INFO: ProcessCDR(1,14843899,1,1,2) [2025-04-06 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843899', 'tblTempUsageDetail_20' ) start [2025-04-06 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843899', 'tblTempUsageDetail_20' ) end [2025-04-06 00:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:38:24] Production.INFO: ==29403== Releasing lock... [2025-04-06 00:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:38:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:39:06 [end_date_ymd] => 2025-04-06 00:39:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:39:06' and `end` < '2025-04-06 00: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-04-06 00:39:19] Production.INFO: count ==828 [2025-04-06 00:39:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:39:06 - End Time 2025-04-06 00:39:06 [2025-04-06 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843904', 'tblTempUsageDetail_20' ) start [2025-04-06 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843904', 'tblTempUsageDetail_20' ) end [2025-04-06 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843904', 'tblTempVendorCDR_20' ) start [2025-04-06 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843904', 'tblTempVendorCDR_20' ) end [2025-04-06 00:39:19] Production.INFO: ProcessCDR(1,14843904,1,1,2) [2025-04-06 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843904', 'tblTempUsageDetail_20' ) start [2025-04-06 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843904', 'tblTempUsageDetail_20' ) end [2025-04-06 00:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:39:23] Production.INFO: ==29475== Releasing lock... [2025-04-06 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:39:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:40:06 [end_date_ymd] => 2025-04-06 00:40:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:40:06' and `end` < '2025-04-06 00: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-04-06 00:40:19] Production.INFO: count ==834 [2025-04-06 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:40:06 - End Time 2025-04-06 00:40:06 [2025-04-06 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843910', 'tblTempUsageDetail_20' ) start [2025-04-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843910', 'tblTempUsageDetail_20' ) end [2025-04-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843910', 'tblTempVendorCDR_20' ) start [2025-04-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843910', 'tblTempVendorCDR_20' ) end [2025-04-06 00:40:19] Production.INFO: ProcessCDR(1,14843910,1,1,2) [2025-04-06 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843910', 'tblTempUsageDetail_20' ) start [2025-04-06 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843910', 'tblTempUsageDetail_20' ) end [2025-04-06 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:40:23] Production.INFO: ==29552== Releasing lock... [2025-04-06 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:41:05 [end_date_ymd] => 2025-04-06 00:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:41:05' and `end` < '2025-04-06 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-04-06 00:41:18] Production.INFO: count ==823 [2025-04-06 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:41:05 - End Time 2025-04-06 00:41:05 [2025-04-06 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843913', 'tblTempUsageDetail_20' ) start [2025-04-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843913', 'tblTempUsageDetail_20' ) end [2025-04-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843913', 'tblTempVendorCDR_20' ) start [2025-04-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843913', 'tblTempVendorCDR_20' ) end [2025-04-06 00:41:18] Production.INFO: ProcessCDR(1,14843913,1,1,2) [2025-04-06 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843913', 'tblTempUsageDetail_20' ) start [2025-04-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843913', 'tblTempUsageDetail_20' ) end [2025-04-06 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:41:21] Production.INFO: ==29633== Releasing lock... [2025-04-06 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:41:21] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:42:05 [end_date_ymd] => 2025-04-06 00:42:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:42:05' and `end` < '2025-04-06 00: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-04-06 00:42:18] Production.INFO: count ==824 [2025-04-06 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:42:05 - End Time 2025-04-06 00:42:05 [2025-04-06 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843920', 'tblTempUsageDetail_20' ) start [2025-04-06 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843920', 'tblTempUsageDetail_20' ) end [2025-04-06 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843920', 'tblTempVendorCDR_20' ) start [2025-04-06 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843920', 'tblTempVendorCDR_20' ) end [2025-04-06 00:42:18] Production.INFO: ProcessCDR(1,14843920,1,1,2) [2025-04-06 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843920', 'tblTempUsageDetail_20' ) start [2025-04-06 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843920', 'tblTempUsageDetail_20' ) end [2025-04-06 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:42:22] Production.INFO: ==29747== Releasing lock... [2025-04-06 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:43:05 [end_date_ymd] => 2025-04-06 00:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:43:05' and `end` < '2025-04-06 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-04-06 00:43:18] Production.INFO: count ==825 [2025-04-06 00:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:43:05 - End Time 2025-04-06 00:43:05 [2025-04-06 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843925', 'tblTempUsageDetail_20' ) start [2025-04-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843925', 'tblTempUsageDetail_20' ) end [2025-04-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843925', 'tblTempVendorCDR_20' ) start [2025-04-06 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843925', 'tblTempVendorCDR_20' ) end [2025-04-06 00:43:19] Production.INFO: ProcessCDR(1,14843925,1,1,2) [2025-04-06 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843925', 'tblTempUsageDetail_20' ) start [2025-04-06 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843925', 'tblTempUsageDetail_20' ) end [2025-04-06 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:43:22] Production.INFO: ==29824== Releasing lock... [2025-04-06 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:43:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:44:05 [end_date_ymd] => 2025-04-06 00:44:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:44:05' and `end` < '2025-04-06 00: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-04-06 00:44:18] Production.INFO: count ==823 [2025-04-06 00:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:44:05 - End Time 2025-04-06 00:44:05 [2025-04-06 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843930', 'tblTempUsageDetail_20' ) start [2025-04-06 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843930', 'tblTempUsageDetail_20' ) end [2025-04-06 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843930', 'tblTempVendorCDR_20' ) start [2025-04-06 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843930', 'tblTempVendorCDR_20' ) end [2025-04-06 00:44:19] Production.INFO: ProcessCDR(1,14843930,1,1,2) [2025-04-06 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843930', 'tblTempUsageDetail_20' ) start [2025-04-06 00:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843930', 'tblTempUsageDetail_20' ) end [2025-04-06 00:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:44:24] Production.INFO: ==29899== Releasing lock... [2025-04-06 00:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:44:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:45:06 [end_date_ymd] => 2025-04-06 00:45:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:45:06' and `end` < '2025-04-06 00: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-04-06 00:45:18] Production.INFO: count ==825 [2025-04-06 00:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:45:06 - End Time 2025-04-06 00:45:06 [2025-04-06 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843935', 'tblTempUsageDetail_20' ) start [2025-04-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843935', 'tblTempUsageDetail_20' ) end [2025-04-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843935', 'tblTempVendorCDR_20' ) start [2025-04-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843935', 'tblTempVendorCDR_20' ) end [2025-04-06 00:45:19] Production.INFO: ProcessCDR(1,14843935,1,1,2) [2025-04-06 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843935', 'tblTempUsageDetail_20' ) start [2025-04-06 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843935', 'tblTempUsageDetail_20' ) end [2025-04-06 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:45:22] Production.INFO: ==29976== Releasing lock... [2025-04-06 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:45:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:46:05 [end_date_ymd] => 2025-04-06 00:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:46:05' and `end` < '2025-04-06 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-04-06 00:46:17] Production.INFO: count ==819 [2025-04-06 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:46:05 - End Time 2025-04-06 00:46:05 [2025-04-06 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843940', 'tblTempUsageDetail_20' ) start [2025-04-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843940', 'tblTempUsageDetail_20' ) end [2025-04-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843940', 'tblTempVendorCDR_20' ) start [2025-04-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843940', 'tblTempVendorCDR_20' ) end [2025-04-06 00:46:18] Production.INFO: ProcessCDR(1,14843940,1,1,2) [2025-04-06 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843940', 'tblTempUsageDetail_20' ) start [2025-04-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843940', 'tblTempUsageDetail_20' ) end [2025-04-06 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:46:21] Production.INFO: ==30054== Releasing lock... [2025-04-06 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:47:05 [end_date_ymd] => 2025-04-06 00:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:47:05' and `end` < '2025-04-06 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-04-06 00:47:18] Production.INFO: count ==815 [2025-04-06 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:47:05 - End Time 2025-04-06 00:47:05 [2025-04-06 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843945', 'tblTempUsageDetail_20' ) start [2025-04-06 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843945', 'tblTempUsageDetail_20' ) end [2025-04-06 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843945', 'tblTempVendorCDR_20' ) start [2025-04-06 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843945', 'tblTempVendorCDR_20' ) end [2025-04-06 00:47:18] Production.INFO: ProcessCDR(1,14843945,1,1,2) [2025-04-06 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843945', 'tblTempUsageDetail_20' ) start [2025-04-06 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843945', 'tblTempUsageDetail_20' ) end [2025-04-06 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:47:22] Production.INFO: ==30129== Releasing lock... [2025-04-06 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:47:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:48:06 [end_date_ymd] => 2025-04-06 00:48:06 [RateCDR] => 1 ) [2025-04-06 00:48: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-04-05 21:48:06' and `end` < '2025-04-06 00:48: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-04-06 00:48:19] Production.INFO: count ==806 [2025-04-06 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:48:06 - End Time 2025-04-06 00:48:06 [2025-04-06 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843950', 'tblTempUsageDetail_20' ) start [2025-04-06 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843950', 'tblTempUsageDetail_20' ) end [2025-04-06 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843950', 'tblTempVendorCDR_20' ) start [2025-04-06 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843950', 'tblTempVendorCDR_20' ) end [2025-04-06 00:48:20] Production.INFO: ProcessCDR(1,14843950,1,1,2) [2025-04-06 00:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843950', 'tblTempUsageDetail_20' ) start [2025-04-06 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843950', 'tblTempUsageDetail_20' ) end [2025-04-06 00:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:48:24] Production.INFO: ==30204== Releasing lock... [2025-04-06 00:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:48:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:49:05 [end_date_ymd] => 2025-04-06 00:49:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:49:05' and `end` < '2025-04-06 00: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-04-06 00:49:18] Production.INFO: count ==801 [2025-04-06 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:49:05 - End Time 2025-04-06 00:49:05 [2025-04-06 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843955', 'tblTempUsageDetail_20' ) start [2025-04-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843955', 'tblTempUsageDetail_20' ) end [2025-04-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843955', 'tblTempVendorCDR_20' ) start [2025-04-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843955', 'tblTempVendorCDR_20' ) end [2025-04-06 00:49:18] Production.INFO: ProcessCDR(1,14843955,1,1,2) [2025-04-06 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843955', 'tblTempUsageDetail_20' ) start [2025-04-06 00:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843955', 'tblTempUsageDetail_20' ) end [2025-04-06 00:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:49:24] Production.INFO: ==30282== Releasing lock... [2025-04-06 00:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:49:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 00:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:50:07 [end_date_ymd] => 2025-04-06 00:50:07 [RateCDR] => 1 ) [2025-04-06 00:50: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-04-05 21:50:07' and `end` < '2025-04-06 00:50: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-04-06 00:50:20] Production.INFO: count ==793 [2025-04-06 00:50:20] Production.ERROR: pbx CDR StartTime 2025-04-05 21:50:07 - End Time 2025-04-06 00:50:07 [2025-04-06 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843961', 'tblTempUsageDetail_20' ) start [2025-04-06 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843961', 'tblTempUsageDetail_20' ) end [2025-04-06 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843961', 'tblTempVendorCDR_20' ) start [2025-04-06 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843961', 'tblTempVendorCDR_20' ) end [2025-04-06 00:50:20] Production.INFO: ProcessCDR(1,14843961,1,1,2) [2025-04-06 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843961', 'tblTempUsageDetail_20' ) start [2025-04-06 00:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843961', 'tblTempUsageDetail_20' ) end [2025-04-06 00:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:50:25] Production.INFO: ==30360== Releasing lock... [2025-04-06 00:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:50:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:51:05 [end_date_ymd] => 2025-04-06 00:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:51:05' and `end` < '2025-04-06 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-04-06 00:51:18] Production.INFO: count ==786 [2025-04-06 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:51:05 - End Time 2025-04-06 00:51:05 [2025-04-06 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843966', 'tblTempUsageDetail_20' ) start [2025-04-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843966', 'tblTempUsageDetail_20' ) end [2025-04-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843966', 'tblTempVendorCDR_20' ) start [2025-04-06 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843966', 'tblTempVendorCDR_20' ) end [2025-04-06 00:51:18] Production.INFO: ProcessCDR(1,14843966,1,1,2) [2025-04-06 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843966', 'tblTempUsageDetail_20' ) start [2025-04-06 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843966', 'tblTempUsageDetail_20' ) end [2025-04-06 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:51:22] Production.INFO: ==30441== Releasing lock... [2025-04-06 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:52:05 [end_date_ymd] => 2025-04-06 00:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:52:05' and `end` < '2025-04-06 00: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-04-06 00:52:18] Production.INFO: count ==786 [2025-04-06 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:52:05 - End Time 2025-04-06 00:52:05 [2025-04-06 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843971', 'tblTempUsageDetail_20' ) start [2025-04-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843971', 'tblTempUsageDetail_20' ) end [2025-04-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843971', 'tblTempVendorCDR_20' ) start [2025-04-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843971', 'tblTempVendorCDR_20' ) end [2025-04-06 00:52:18] Production.INFO: ProcessCDR(1,14843971,1,1,2) [2025-04-06 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843971', 'tblTempUsageDetail_20' ) start [2025-04-06 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843971', 'tblTempUsageDetail_20' ) end [2025-04-06 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:52:22] Production.INFO: ==30515== Releasing lock... [2025-04-06 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:53:05 [end_date_ymd] => 2025-04-06 00:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:53:05' and `end` < '2025-04-06 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-04-06 00:53:18] Production.INFO: count ==788 [2025-04-06 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:53:05 - End Time 2025-04-06 00:53:05 [2025-04-06 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843976', 'tblTempUsageDetail_20' ) start [2025-04-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843976', 'tblTempUsageDetail_20' ) end [2025-04-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843976', 'tblTempVendorCDR_20' ) start [2025-04-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843976', 'tblTempVendorCDR_20' ) end [2025-04-06 00:53:18] Production.INFO: ProcessCDR(1,14843976,1,1,2) [2025-04-06 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843976', 'tblTempUsageDetail_20' ) start [2025-04-06 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843976', 'tblTempUsageDetail_20' ) end [2025-04-06 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:53:22] Production.INFO: ==30587== Releasing lock... [2025-04-06 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:53:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:54:05 [end_date_ymd] => 2025-04-06 00:54:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:54:05' and `end` < '2025-04-06 00: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-04-06 00:54:18] Production.INFO: count ==795 [2025-04-06 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:54:05 - End Time 2025-04-06 00:54:05 [2025-04-06 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843981', 'tblTempUsageDetail_20' ) start [2025-04-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843981', 'tblTempUsageDetail_20' ) end [2025-04-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843981', 'tblTempVendorCDR_20' ) start [2025-04-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843981', 'tblTempVendorCDR_20' ) end [2025-04-06 00:54:18] Production.INFO: ProcessCDR(1,14843981,1,1,2) [2025-04-06 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843981', 'tblTempUsageDetail_20' ) start [2025-04-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843981', 'tblTempUsageDetail_20' ) end [2025-04-06 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:54:22] Production.INFO: ==30662== Releasing lock... [2025-04-06 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:54:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:55:06 [end_date_ymd] => 2025-04-06 00:55:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:55:06' and `end` < '2025-04-06 00: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-04-06 00:55:18] Production.INFO: count ==801 [2025-04-06 00:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:55:06 - End Time 2025-04-06 00:55:06 [2025-04-06 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843986', 'tblTempUsageDetail_20' ) start [2025-04-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843986', 'tblTempUsageDetail_20' ) end [2025-04-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843986', 'tblTempVendorCDR_20' ) start [2025-04-06 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843986', 'tblTempVendorCDR_20' ) end [2025-04-06 00:55:19] Production.INFO: ProcessCDR(1,14843986,1,1,2) [2025-04-06 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843986', 'tblTempUsageDetail_20' ) start [2025-04-06 00:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843986', 'tblTempUsageDetail_20' ) end [2025-04-06 00:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:55:24] Production.INFO: ==30739== Releasing lock... [2025-04-06 00:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:55:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:56:06 [end_date_ymd] => 2025-04-06 00:56:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:56:06' and `end` < '2025-04-06 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-04-06 00:56:18] Production.INFO: count ==802 [2025-04-06 00:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:56:06 - End Time 2025-04-06 00:56:06 [2025-04-06 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843991', 'tblTempUsageDetail_20' ) start [2025-04-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843991', 'tblTempUsageDetail_20' ) end [2025-04-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843991', 'tblTempVendorCDR_20' ) start [2025-04-06 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843991', 'tblTempVendorCDR_20' ) end [2025-04-06 00:56:19] Production.INFO: ProcessCDR(1,14843991,1,1,2) [2025-04-06 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843991', 'tblTempUsageDetail_20' ) start [2025-04-06 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843991', 'tblTempUsageDetail_20' ) end [2025-04-06 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:56:22] Production.INFO: ==30813== Releasing lock... [2025-04-06 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:57:05 [end_date_ymd] => 2025-04-06 00:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 21:57:05' and `end` < '2025-04-06 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-04-06 00:57:18] Production.INFO: count ==798 [2025-04-06 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:57:05 - End Time 2025-04-06 00:57:05 [2025-04-06 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843996', 'tblTempUsageDetail_20' ) start [2025-04-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14843996', 'tblTempUsageDetail_20' ) end [2025-04-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843996', 'tblTempVendorCDR_20' ) start [2025-04-06 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14843996', 'tblTempVendorCDR_20' ) end [2025-04-06 00:57:18] Production.INFO: ProcessCDR(1,14843996,1,1,2) [2025-04-06 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14843996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14843996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14843996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14843996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843996', 'tblTempUsageDetail_20' ) start [2025-04-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14843996', 'tblTempUsageDetail_20' ) end [2025-04-06 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:57:22] Production.INFO: ==30923== Releasing lock... [2025-04-06 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:58:06 [end_date_ymd] => 2025-04-06 00:58:06 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:58:06' and `end` < '2025-04-06 00: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-04-06 00:58:19] Production.INFO: count ==798 [2025-04-06 00:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 21:58:06 - End Time 2025-04-06 00:58:06 [2025-04-06 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844001', 'tblTempUsageDetail_20' ) start [2025-04-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844001', 'tblTempUsageDetail_20' ) end [2025-04-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844001', 'tblTempVendorCDR_20' ) start [2025-04-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844001', 'tblTempVendorCDR_20' ) end [2025-04-06 00:58:19] Production.INFO: ProcessCDR(1,14844001,1,1,2) [2025-04-06 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844001', 'tblTempUsageDetail_20' ) start [2025-04-06 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844001', 'tblTempUsageDetail_20' ) end [2025-04-06 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:58:23] Production.INFO: ==30993== Releasing lock... [2025-04-06 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:58:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 21:59:05 [end_date_ymd] => 2025-04-06 00:59:05 [RateCDR] => 1 ) [2025-04-06 00: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-04-05 21:59:05' and `end` < '2025-04-06 00: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-04-06 00:59:18] Production.INFO: count ==797 [2025-04-06 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 21:59:05 - End Time 2025-04-06 00:59:05 [2025-04-06 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844006', 'tblTempUsageDetail_20' ) start [2025-04-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844006', 'tblTempUsageDetail_20' ) end [2025-04-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844006', 'tblTempVendorCDR_20' ) start [2025-04-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844006', 'tblTempVendorCDR_20' ) end [2025-04-06 00:59:18] Production.INFO: ProcessCDR(1,14844006,1,1,2) [2025-04-06 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844006', 'tblTempUsageDetail_20' ) start [2025-04-06 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844006', 'tblTempUsageDetail_20' ) end [2025-04-06 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 00:59:23] Production.INFO: ==31064== Releasing lock... [2025-04-06 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 00:59:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:00:06 [end_date_ymd] => 2025-04-06 01:00:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:00:06' and `end` < '2025-04-06 01: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-04-06 01:00:19] Production.INFO: count ==812 [2025-04-06 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:00:06 - End Time 2025-04-06 01:00:06 [2025-04-06 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844011', 'tblTempUsageDetail_20' ) start [2025-04-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844011', 'tblTempUsageDetail_20' ) end [2025-04-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844011', 'tblTempVendorCDR_20' ) start [2025-04-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844011', 'tblTempVendorCDR_20' ) end [2025-04-06 01:00:19] Production.INFO: ProcessCDR(1,14844011,1,1,2) [2025-04-06 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844011', 'tblTempUsageDetail_20' ) start [2025-04-06 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844011', 'tblTempUsageDetail_20' ) end [2025-04-06 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:00:23] Production.INFO: ==31141== Releasing lock... [2025-04-06 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:00:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:01:05 [end_date_ymd] => 2025-04-06 01:01:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:01:05' and `end` < '2025-04-06 01: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-04-06 01:01:18] Production.INFO: count ==838 [2025-04-06 01:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:01:05 - End Time 2025-04-06 01:01:05 [2025-04-06 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844017', 'tblTempUsageDetail_20' ) start [2025-04-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844017', 'tblTempUsageDetail_20' ) end [2025-04-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844017', 'tblTempVendorCDR_20' ) start [2025-04-06 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844017', 'tblTempVendorCDR_20' ) end [2025-04-06 01:01:19] Production.INFO: ProcessCDR(1,14844017,1,1,2) [2025-04-06 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844017', 'tblTempUsageDetail_20' ) start [2025-04-06 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844017', 'tblTempUsageDetail_20' ) end [2025-04-06 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:01:22] Production.INFO: ==31228== Releasing lock... [2025-04-06 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:01:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:02:06 [end_date_ymd] => 2025-04-06 01:02:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:02:06' and `end` < '2025-04-06 01: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-04-06 01:02:19] Production.INFO: count ==836 [2025-04-06 01:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:02:06 - End Time 2025-04-06 01:02:06 [2025-04-06 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844022', 'tblTempUsageDetail_20' ) start [2025-04-06 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844022', 'tblTempUsageDetail_20' ) end [2025-04-06 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844022', 'tblTempVendorCDR_20' ) start [2025-04-06 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844022', 'tblTempVendorCDR_20' ) end [2025-04-06 01:02:19] Production.INFO: ProcessCDR(1,14844022,1,1,2) [2025-04-06 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844022', 'tblTempUsageDetail_20' ) start [2025-04-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844022', 'tblTempUsageDetail_20' ) end [2025-04-06 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:02:22] Production.INFO: ==31297== Releasing lock... [2025-04-06 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:02:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:03:05 [end_date_ymd] => 2025-04-06 01:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:03:05' and `end` < '2025-04-06 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-04-06 01:03:18] Production.INFO: count ==834 [2025-04-06 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:03:05 - End Time 2025-04-06 01:03:05 [2025-04-06 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844027', 'tblTempUsageDetail_20' ) start [2025-04-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844027', 'tblTempUsageDetail_20' ) end [2025-04-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844027', 'tblTempVendorCDR_20' ) start [2025-04-06 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844027', 'tblTempVendorCDR_20' ) end [2025-04-06 01:03:18] Production.INFO: ProcessCDR(1,14844027,1,1,2) [2025-04-06 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844027', 'tblTempUsageDetail_20' ) start [2025-04-06 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844027', 'tblTempUsageDetail_20' ) end [2025-04-06 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:03:23] Production.INFO: ==31367== Releasing lock... [2025-04-06 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:03:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:04:05 [end_date_ymd] => 2025-04-06 01:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:04:05' and `end` < '2025-04-06 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-04-06 01:04:18] Production.INFO: count ==835 [2025-04-06 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:04:05 - End Time 2025-04-06 01:04:05 [2025-04-06 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844032', 'tblTempUsageDetail_20' ) start [2025-04-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844032', 'tblTempUsageDetail_20' ) end [2025-04-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844032', 'tblTempVendorCDR_20' ) start [2025-04-06 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844032', 'tblTempVendorCDR_20' ) end [2025-04-06 01:04:19] Production.INFO: ProcessCDR(1,14844032,1,1,2) [2025-04-06 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844032', 'tblTempUsageDetail_20' ) start [2025-04-06 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844032', 'tblTempUsageDetail_20' ) end [2025-04-06 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:04:22] Production.INFO: ==31444== Releasing lock... [2025-04-06 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:04:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:05:05 [end_date_ymd] => 2025-04-06 01:05:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:05:05' and `end` < '2025-04-06 01: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-04-06 01:05:18] Production.INFO: count ==840 [2025-04-06 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:05:05 - End Time 2025-04-06 01:05:05 [2025-04-06 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844037', 'tblTempUsageDetail_20' ) start [2025-04-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844037', 'tblTempUsageDetail_20' ) end [2025-04-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844037', 'tblTempVendorCDR_20' ) start [2025-04-06 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844037', 'tblTempVendorCDR_20' ) end [2025-04-06 01:05:18] Production.INFO: ProcessCDR(1,14844037,1,1,2) [2025-04-06 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844037', 'tblTempUsageDetail_20' ) start [2025-04-06 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844037', 'tblTempUsageDetail_20' ) end [2025-04-06 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:05:23] Production.INFO: ==31513== Releasing lock... [2025-04-06 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:05:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:06:05 [end_date_ymd] => 2025-04-06 01:06:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:06:05' and `end` < '2025-04-06 01: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-04-06 01:06:18] Production.INFO: count ==832 [2025-04-06 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:06:05 - End Time 2025-04-06 01:06:05 [2025-04-06 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844042', 'tblTempUsageDetail_20' ) start [2025-04-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844042', 'tblTempUsageDetail_20' ) end [2025-04-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844042', 'tblTempVendorCDR_20' ) start [2025-04-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844042', 'tblTempVendorCDR_20' ) end [2025-04-06 01:06:18] Production.INFO: ProcessCDR(1,14844042,1,1,2) [2025-04-06 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844042', 'tblTempUsageDetail_20' ) start [2025-04-06 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844042', 'tblTempUsageDetail_20' ) end [2025-04-06 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:06:22] Production.INFO: ==31585== Releasing lock... [2025-04-06 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:06:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:07:05 [end_date_ymd] => 2025-04-06 01:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:07:05' and `end` < '2025-04-06 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-04-06 01:07:18] Production.INFO: count ==833 [2025-04-06 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:07:05 - End Time 2025-04-06 01:07:05 [2025-04-06 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844047', 'tblTempUsageDetail_20' ) start [2025-04-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844047', 'tblTempUsageDetail_20' ) end [2025-04-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844047', 'tblTempVendorCDR_20' ) start [2025-04-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844047', 'tblTempVendorCDR_20' ) end [2025-04-06 01:07:18] Production.INFO: ProcessCDR(1,14844047,1,1,2) [2025-04-06 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844047', 'tblTempUsageDetail_20' ) start [2025-04-06 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844047', 'tblTempUsageDetail_20' ) end [2025-04-06 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:07:23] Production.INFO: ==31657== Releasing lock... [2025-04-06 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:07:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:08:05 [end_date_ymd] => 2025-04-06 01:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:08:05' and `end` < '2025-04-06 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-04-06 01:08:18] Production.INFO: count ==828 [2025-04-06 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:08:05 - End Time 2025-04-06 01:08:05 [2025-04-06 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844052', 'tblTempUsageDetail_20' ) start [2025-04-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844052', 'tblTempUsageDetail_20' ) end [2025-04-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844052', 'tblTempVendorCDR_20' ) start [2025-04-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844052', 'tblTempVendorCDR_20' ) end [2025-04-06 01:08:18] Production.INFO: ProcessCDR(1,14844052,1,1,2) [2025-04-06 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844052', 'tblTempUsageDetail_20' ) start [2025-04-06 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844052', 'tblTempUsageDetail_20' ) end [2025-04-06 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:08:22] Production.INFO: ==31731== Releasing lock... [2025-04-06 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:09:04 [end_date_ymd] => 2025-04-06 01:09:04 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:09:04' and `end` < '2025-04-06 01: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-04-06 01:09:17] Production.INFO: count ==837 [2025-04-06 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:09:04 - End Time 2025-04-06 01:09:04 [2025-04-06 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844057', 'tblTempUsageDetail_20' ) start [2025-04-06 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844057', 'tblTempUsageDetail_20' ) end [2025-04-06 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844057', 'tblTempVendorCDR_20' ) start [2025-04-06 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844057', 'tblTempVendorCDR_20' ) end [2025-04-06 01:09:18] Production.INFO: ProcessCDR(1,14844057,1,1,2) [2025-04-06 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844057', 'tblTempUsageDetail_20' ) start [2025-04-06 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844057', 'tblTempUsageDetail_20' ) end [2025-04-06 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:09:23] Production.INFO: ==31801== Releasing lock... [2025-04-06 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:09:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:10:06 [end_date_ymd] => 2025-04-06 01:10:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:10:06' and `end` < '2025-04-06 01: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-04-06 01:10:19] Production.INFO: count ==835 [2025-04-06 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:10:06 - End Time 2025-04-06 01:10:06 [2025-04-06 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844063', 'tblTempUsageDetail_20' ) start [2025-04-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844063', 'tblTempUsageDetail_20' ) end [2025-04-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844063', 'tblTempVendorCDR_20' ) start [2025-04-06 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844063', 'tblTempVendorCDR_20' ) end [2025-04-06 01:10:19] Production.INFO: ProcessCDR(1,14844063,1,1,2) [2025-04-06 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844063', 'tblTempUsageDetail_20' ) start [2025-04-06 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844063', 'tblTempUsageDetail_20' ) end [2025-04-06 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:10:23] Production.INFO: ==31873== Releasing lock... [2025-04-06 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:11:06 [end_date_ymd] => 2025-04-06 01:11:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:11:06' and `end` < '2025-04-06 01: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-04-06 01:11:19] Production.INFO: count ==833 [2025-04-06 01:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:11:06 - End Time 2025-04-06 01:11:06 [2025-04-06 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844068', 'tblTempUsageDetail_20' ) start [2025-04-06 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844068', 'tblTempUsageDetail_20' ) end [2025-04-06 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844068', 'tblTempVendorCDR_20' ) start [2025-04-06 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844068', 'tblTempVendorCDR_20' ) end [2025-04-06 01:11:19] Production.INFO: ProcessCDR(1,14844068,1,1,2) [2025-04-06 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844068', 'tblTempUsageDetail_20' ) start [2025-04-06 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844068', 'tblTempUsageDetail_20' ) end [2025-04-06 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:11:22] Production.INFO: ==31948== Releasing lock... [2025-04-06 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:11:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:12:05 [end_date_ymd] => 2025-04-06 01:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:12:05' and `end` < '2025-04-06 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-04-06 01:12:18] Production.INFO: count ==831 [2025-04-06 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:12:05 - End Time 2025-04-06 01:12:05 [2025-04-06 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844073', 'tblTempUsageDetail_20' ) start [2025-04-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844073', 'tblTempUsageDetail_20' ) end [2025-04-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844073', 'tblTempVendorCDR_20' ) start [2025-04-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844073', 'tblTempVendorCDR_20' ) end [2025-04-06 01:12:18] Production.INFO: ProcessCDR(1,14844073,1,1,2) [2025-04-06 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844073', 'tblTempUsageDetail_20' ) start [2025-04-06 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844073', 'tblTempUsageDetail_20' ) end [2025-04-06 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:12:22] Production.INFO: ==32018== Releasing lock... [2025-04-06 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:13:06 [end_date_ymd] => 2025-04-06 01:13:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:13:06' and `end` < '2025-04-06 01: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-04-06 01:13:19] Production.INFO: count ==831 [2025-04-06 01:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:13:06 - End Time 2025-04-06 01:13:06 [2025-04-06 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844078', 'tblTempUsageDetail_20' ) start [2025-04-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844078', 'tblTempUsageDetail_20' ) end [2025-04-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844078', 'tblTempVendorCDR_20' ) start [2025-04-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844078', 'tblTempVendorCDR_20' ) end [2025-04-06 01:13:19] Production.INFO: ProcessCDR(1,14844078,1,1,2) [2025-04-06 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844078', 'tblTempUsageDetail_20' ) start [2025-04-06 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844078', 'tblTempUsageDetail_20' ) end [2025-04-06 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:13:23] Production.INFO: ==32130== Releasing lock... [2025-04-06 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:13:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:14:05 [end_date_ymd] => 2025-04-06 01:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:14:05' and `end` < '2025-04-06 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-04-06 01:14:18] Production.INFO: count ==830 [2025-04-06 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:14:05 - End Time 2025-04-06 01:14:05 [2025-04-06 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844083', 'tblTempUsageDetail_20' ) start [2025-04-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844083', 'tblTempUsageDetail_20' ) end [2025-04-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844083', 'tblTempVendorCDR_20' ) start [2025-04-06 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844083', 'tblTempVendorCDR_20' ) end [2025-04-06 01:14:18] Production.INFO: ProcessCDR(1,14844083,1,1,2) [2025-04-06 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844083', 'tblTempUsageDetail_20' ) start [2025-04-06 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844083', 'tblTempUsageDetail_20' ) end [2025-04-06 01:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:14:24] Production.INFO: ==32200== Releasing lock... [2025-04-06 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:14:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:15:06 [end_date_ymd] => 2025-04-06 01:15:06 [RateCDR] => 1 ) [2025-04-06 01:15: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-04-05 22:15:06' and `end` < '2025-04-06 01:15: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-04-06 01:15:19] Production.INFO: count ==833 [2025-04-06 01:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:15:06 - End Time 2025-04-06 01:15:06 [2025-04-06 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844088', 'tblTempUsageDetail_20' ) start [2025-04-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844088', 'tblTempUsageDetail_20' ) end [2025-04-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844088', 'tblTempVendorCDR_20' ) start [2025-04-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844088', 'tblTempVendorCDR_20' ) end [2025-04-06 01:15:19] Production.INFO: ProcessCDR(1,14844088,1,1,2) [2025-04-06 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844088', 'tblTempUsageDetail_20' ) start [2025-04-06 01:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844088', 'tblTempUsageDetail_20' ) end [2025-04-06 01:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:15:24] Production.INFO: ==32272== Releasing lock... [2025-04-06 01:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:15:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:16:05 [end_date_ymd] => 2025-04-06 01:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:16:05' and `end` < '2025-04-06 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-04-06 01:16:18] Production.INFO: count ==835 [2025-04-06 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:16:05 - End Time 2025-04-06 01:16:05 [2025-04-06 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844093', 'tblTempUsageDetail_20' ) start [2025-04-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844093', 'tblTempUsageDetail_20' ) end [2025-04-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844093', 'tblTempVendorCDR_20' ) start [2025-04-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844093', 'tblTempVendorCDR_20' ) end [2025-04-06 01:16:18] Production.INFO: ProcessCDR(1,14844093,1,1,2) [2025-04-06 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844093', 'tblTempUsageDetail_20' ) start [2025-04-06 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844093', 'tblTempUsageDetail_20' ) end [2025-04-06 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:16:22] Production.INFO: ==32341== Releasing lock... [2025-04-06 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:17:05 [end_date_ymd] => 2025-04-06 01:17:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:17:05' and `end` < '2025-04-06 01: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-04-06 01:17:19] Production.INFO: count ==821 [2025-04-06 01:17:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:17:05 - End Time 2025-04-06 01:17:05 [2025-04-06 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844098', 'tblTempUsageDetail_20' ) start [2025-04-06 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844098', 'tblTempUsageDetail_20' ) end [2025-04-06 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844098', 'tblTempVendorCDR_20' ) start [2025-04-06 01:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844098', 'tblTempVendorCDR_20' ) end [2025-04-06 01:17:20] Production.INFO: ProcessCDR(1,14844098,1,1,2) [2025-04-06 01:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844098', 'tblTempUsageDetail_20' ) start [2025-04-06 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844098', 'tblTempUsageDetail_20' ) end [2025-04-06 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:17:23] Production.INFO: ==32412== Releasing lock... [2025-04-06 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:17:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:18:05 [end_date_ymd] => 2025-04-06 01:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:18:05' and `end` < '2025-04-06 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-04-06 01:18:18] Production.INFO: count ==808 [2025-04-06 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:18:05 - End Time 2025-04-06 01:18:05 [2025-04-06 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844103', 'tblTempUsageDetail_20' ) start [2025-04-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844103', 'tblTempUsageDetail_20' ) end [2025-04-06 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844103', 'tblTempVendorCDR_20' ) start [2025-04-06 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844103', 'tblTempVendorCDR_20' ) end [2025-04-06 01:18:19] Production.INFO: ProcessCDR(1,14844103,1,1,2) [2025-04-06 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844103', 'tblTempUsageDetail_20' ) start [2025-04-06 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844103', 'tblTempUsageDetail_20' ) end [2025-04-06 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:18:22] Production.INFO: ==32496== Releasing lock... [2025-04-06 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:19:05 [end_date_ymd] => 2025-04-06 01:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:19:05' and `end` < '2025-04-06 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-04-06 01:19:18] Production.INFO: count ==799 [2025-04-06 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:19:05 - End Time 2025-04-06 01:19:05 [2025-04-06 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844108', 'tblTempUsageDetail_20' ) start [2025-04-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844108', 'tblTempUsageDetail_20' ) end [2025-04-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844108', 'tblTempVendorCDR_20' ) start [2025-04-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844108', 'tblTempVendorCDR_20' ) end [2025-04-06 01:19:18] Production.INFO: ProcessCDR(1,14844108,1,1,2) [2025-04-06 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844108', 'tblTempUsageDetail_20' ) start [2025-04-06 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844108', 'tblTempUsageDetail_20' ) end [2025-04-06 01:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:19:24] Production.INFO: ==32569== Releasing lock... [2025-04-06 01:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:19:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:20:06 [end_date_ymd] => 2025-04-06 01:20:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:20:06' and `end` < '2025-04-06 01: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-04-06 01:20:20] Production.INFO: count ==807 [2025-04-06 01:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 22:20:06 - End Time 2025-04-06 01:20:06 [2025-04-06 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844114', 'tblTempUsageDetail_20' ) start [2025-04-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844114', 'tblTempUsageDetail_20' ) end [2025-04-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844114', 'tblTempVendorCDR_20' ) start [2025-04-06 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844114', 'tblTempVendorCDR_20' ) end [2025-04-06 01:20:20] Production.INFO: ProcessCDR(1,14844114,1,1,2) [2025-04-06 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844114', 'tblTempUsageDetail_20' ) start [2025-04-06 01:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844114', 'tblTempUsageDetail_20' ) end [2025-04-06 01:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:20:25] Production.INFO: ==32644== Releasing lock... [2025-04-06 01:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:20:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:21:06 [end_date_ymd] => 2025-04-06 01:21:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:21:06' and `end` < '2025-04-06 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-04-06 01:21:18] Production.INFO: count ==805 [2025-04-06 01:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:21:06 - End Time 2025-04-06 01:21:06 [2025-04-06 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844119', 'tblTempUsageDetail_20' ) start [2025-04-06 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844119', 'tblTempUsageDetail_20' ) end [2025-04-06 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844119', 'tblTempVendorCDR_20' ) start [2025-04-06 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844119', 'tblTempVendorCDR_20' ) end [2025-04-06 01:21:19] Production.INFO: ProcessCDR(1,14844119,1,1,2) [2025-04-06 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844119', 'tblTempUsageDetail_20' ) start [2025-04-06 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844119', 'tblTempUsageDetail_20' ) end [2025-04-06 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:21:22] Production.INFO: ==32715== Releasing lock... [2025-04-06 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:22:05 [end_date_ymd] => 2025-04-06 01:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:22:05' and `end` < '2025-04-06 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-04-06 01:22:18] Production.INFO: count ==806 [2025-04-06 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:22:05 - End Time 2025-04-06 01:22:05 [2025-04-06 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844124', 'tblTempUsageDetail_20' ) start [2025-04-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844124', 'tblTempUsageDetail_20' ) end [2025-04-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844124', 'tblTempVendorCDR_20' ) start [2025-04-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844124', 'tblTempVendorCDR_20' ) end [2025-04-06 01:22:18] Production.INFO: ProcessCDR(1,14844124,1,1,2) [2025-04-06 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844124', 'tblTempUsageDetail_20' ) start [2025-04-06 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844124', 'tblTempUsageDetail_20' ) end [2025-04-06 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:22:22] Production.INFO: ==335== Releasing lock... [2025-04-06 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:22:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:23:05 [end_date_ymd] => 2025-04-06 01:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:23:05' and `end` < '2025-04-06 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-04-06 01:23:18] Production.INFO: count ==807 [2025-04-06 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:23:05 - End Time 2025-04-06 01:23:05 [2025-04-06 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844129', 'tblTempUsageDetail_20' ) start [2025-04-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844129', 'tblTempUsageDetail_20' ) end [2025-04-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844129', 'tblTempVendorCDR_20' ) start [2025-04-06 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844129', 'tblTempVendorCDR_20' ) end [2025-04-06 01:23:18] Production.INFO: ProcessCDR(1,14844129,1,1,2) [2025-04-06 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844129', 'tblTempUsageDetail_20' ) start [2025-04-06 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844129', 'tblTempUsageDetail_20' ) end [2025-04-06 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:23:22] Production.INFO: ==423== Releasing lock... [2025-04-06 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:23:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:24:06 [end_date_ymd] => 2025-04-06 01:24:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:24:06' and `end` < '2025-04-06 01: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-04-06 01:24:19] Production.INFO: count ==802 [2025-04-06 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:24:06 - End Time 2025-04-06 01:24:06 [2025-04-06 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844134', 'tblTempUsageDetail_20' ) start [2025-04-06 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844134', 'tblTempUsageDetail_20' ) end [2025-04-06 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844134', 'tblTempVendorCDR_20' ) start [2025-04-06 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844134', 'tblTempVendorCDR_20' ) end [2025-04-06 01:24:19] Production.INFO: ProcessCDR(1,14844134,1,1,2) [2025-04-06 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844134', 'tblTempUsageDetail_20' ) start [2025-04-06 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844134', 'tblTempUsageDetail_20' ) end [2025-04-06 01:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:24:24] Production.INFO: ==497== Releasing lock... [2025-04-06 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:24:24] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:25:05 [end_date_ymd] => 2025-04-06 01:25:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:25:05' and `end` < '2025-04-06 01: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-04-06 01:25:18] Production.INFO: count ==804 [2025-04-06 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:25:05 - End Time 2025-04-06 01:25:05 [2025-04-06 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844139', 'tblTempUsageDetail_20' ) start [2025-04-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844139', 'tblTempUsageDetail_20' ) end [2025-04-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844139', 'tblTempVendorCDR_20' ) start [2025-04-06 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844139', 'tblTempVendorCDR_20' ) end [2025-04-06 01:25:19] Production.INFO: ProcessCDR(1,14844139,1,1,2) [2025-04-06 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844139', 'tblTempUsageDetail_20' ) start [2025-04-06 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844139', 'tblTempUsageDetail_20' ) end [2025-04-06 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:25:24] Production.INFO: ==566== Releasing lock... [2025-04-06 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:25:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:26:06 [end_date_ymd] => 2025-04-06 01:26:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:26:06' and `end` < '2025-04-06 01: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-04-06 01:26:18] Production.INFO: count ==801 [2025-04-06 01:26:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:26:06 - End Time 2025-04-06 01:26:06 [2025-04-06 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844144', 'tblTempUsageDetail_20' ) start [2025-04-06 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844144', 'tblTempUsageDetail_20' ) end [2025-04-06 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844144', 'tblTempVendorCDR_20' ) start [2025-04-06 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844144', 'tblTempVendorCDR_20' ) end [2025-04-06 01:26:19] Production.INFO: ProcessCDR(1,14844144,1,1,2) [2025-04-06 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844144', 'tblTempUsageDetail_20' ) start [2025-04-06 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844144', 'tblTempUsageDetail_20' ) end [2025-04-06 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:26:22] Production.INFO: ==647== Releasing lock... [2025-04-06 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:27:05 [end_date_ymd] => 2025-04-06 01:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:27:05' and `end` < '2025-04-06 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-04-06 01:27:18] Production.INFO: count ==799 [2025-04-06 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:27:05 - End Time 2025-04-06 01:27:05 [2025-04-06 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844149', 'tblTempUsageDetail_20' ) start [2025-04-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844149', 'tblTempUsageDetail_20' ) end [2025-04-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844149', 'tblTempVendorCDR_20' ) start [2025-04-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844149', 'tblTempVendorCDR_20' ) end [2025-04-06 01:27:18] Production.INFO: ProcessCDR(1,14844149,1,1,2) [2025-04-06 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844149', 'tblTempUsageDetail_20' ) start [2025-04-06 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844149', 'tblTempUsageDetail_20' ) end [2025-04-06 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:27:23] Production.INFO: ==739== Releasing lock... [2025-04-06 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:27:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:28:06 [end_date_ymd] => 2025-04-06 01:28:06 [RateCDR] => 1 ) [2025-04-06 01:28: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-04-05 22:28:06' and `end` < '2025-04-06 01:28: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-04-06 01:28:18] Production.INFO: count ==801 [2025-04-06 01:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:28:06 - End Time 2025-04-06 01:28:06 [2025-04-06 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844154', 'tblTempUsageDetail_20' ) start [2025-04-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844154', 'tblTempUsageDetail_20' ) end [2025-04-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844154', 'tblTempVendorCDR_20' ) start [2025-04-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844154', 'tblTempVendorCDR_20' ) end [2025-04-06 01:28:19] Production.INFO: ProcessCDR(1,14844154,1,1,2) [2025-04-06 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844154', 'tblTempUsageDetail_20' ) start [2025-04-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844154', 'tblTempUsageDetail_20' ) end [2025-04-06 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:28:22] Production.INFO: ==856== Releasing lock... [2025-04-06 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:29:05 [end_date_ymd] => 2025-04-06 01:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:29:05' and `end` < '2025-04-06 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-04-06 01:29:19] Production.INFO: count ==811 [2025-04-06 01:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:29:05 - End Time 2025-04-06 01:29:05 [2025-04-06 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844159', 'tblTempUsageDetail_20' ) start [2025-04-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844159', 'tblTempUsageDetail_20' ) end [2025-04-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844159', 'tblTempVendorCDR_20' ) start [2025-04-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844159', 'tblTempVendorCDR_20' ) end [2025-04-06 01:29:19] Production.INFO: ProcessCDR(1,14844159,1,1,2) [2025-04-06 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844159', 'tblTempUsageDetail_20' ) start [2025-04-06 01:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844159', 'tblTempUsageDetail_20' ) end [2025-04-06 01:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:29:25] Production.INFO: ==926== Releasing lock... [2025-04-06 01:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:29:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:30:06 [end_date_ymd] => 2025-04-06 01:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:30:06' and `end` < '2025-04-06 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-04-06 01:30:19] Production.INFO: count ==809 [2025-04-06 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:30:06 - End Time 2025-04-06 01:30:06 [2025-04-06 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844165', 'tblTempUsageDetail_20' ) start [2025-04-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844165', 'tblTempUsageDetail_20' ) end [2025-04-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844165', 'tblTempVendorCDR_20' ) start [2025-04-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844165', 'tblTempVendorCDR_20' ) end [2025-04-06 01:30:19] Production.INFO: ProcessCDR(1,14844165,1,1,2) [2025-04-06 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844165', 'tblTempUsageDetail_20' ) start [2025-04-06 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844165', 'tblTempUsageDetail_20' ) end [2025-04-06 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:30:23] Production.INFO: ==1003== Releasing lock... [2025-04-06 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:30:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:31:05 [end_date_ymd] => 2025-04-06 01:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:31:05' and `end` < '2025-04-06 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-04-06 01:31:18] Production.INFO: count ==792 [2025-04-06 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:31:05 - End Time 2025-04-06 01:31:05 [2025-04-06 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844170', 'tblTempUsageDetail_20' ) start [2025-04-06 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844170', 'tblTempUsageDetail_20' ) end [2025-04-06 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844170', 'tblTempVendorCDR_20' ) start [2025-04-06 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844170', 'tblTempVendorCDR_20' ) end [2025-04-06 01:31:18] Production.INFO: ProcessCDR(1,14844170,1,1,2) [2025-04-06 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844170', 'tblTempUsageDetail_20' ) start [2025-04-06 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844170', 'tblTempUsageDetail_20' ) end [2025-04-06 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:31:21] Production.INFO: ==1076== Releasing lock... [2025-04-06 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:32:05 [end_date_ymd] => 2025-04-06 01:32:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:32:05' and `end` < '2025-04-06 01: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-04-06 01:32:18] Production.INFO: count ==789 [2025-04-06 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:32:05 - End Time 2025-04-06 01:32:05 [2025-04-06 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844175', 'tblTempUsageDetail_20' ) start [2025-04-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844175', 'tblTempUsageDetail_20' ) end [2025-04-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844175', 'tblTempVendorCDR_20' ) start [2025-04-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844175', 'tblTempVendorCDR_20' ) end [2025-04-06 01:32:18] Production.INFO: ProcessCDR(1,14844175,1,1,2) [2025-04-06 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844175', 'tblTempUsageDetail_20' ) start [2025-04-06 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844175', 'tblTempUsageDetail_20' ) end [2025-04-06 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:32:22] Production.INFO: ==1149== Releasing lock... [2025-04-06 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:32:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:33:05 [end_date_ymd] => 2025-04-06 01:33:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:33:05' and `end` < '2025-04-06 01: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-04-06 01:33:18] Production.INFO: count ==785 [2025-04-06 01:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:33:05 - End Time 2025-04-06 01:33:05 [2025-04-06 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844180', 'tblTempUsageDetail_20' ) start [2025-04-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844180', 'tblTempUsageDetail_20' ) end [2025-04-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844180', 'tblTempVendorCDR_20' ) start [2025-04-06 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844180', 'tblTempVendorCDR_20' ) end [2025-04-06 01:33:19] Production.INFO: ProcessCDR(1,14844180,1,1,2) [2025-04-06 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844180', 'tblTempUsageDetail_20' ) start [2025-04-06 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844180', 'tblTempUsageDetail_20' ) end [2025-04-06 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:33:22] Production.INFO: ==1223== Releasing lock... [2025-04-06 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:33:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:34:06 [end_date_ymd] => 2025-04-06 01:34:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:34:06' and `end` < '2025-04-06 01: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-04-06 01:34:19] Production.INFO: count ==783 [2025-04-06 01:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:34:06 - End Time 2025-04-06 01:34:06 [2025-04-06 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844185', 'tblTempUsageDetail_20' ) start [2025-04-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844185', 'tblTempUsageDetail_20' ) end [2025-04-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844185', 'tblTempVendorCDR_20' ) start [2025-04-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844185', 'tblTempVendorCDR_20' ) end [2025-04-06 01:34:19] Production.INFO: ProcessCDR(1,14844185,1,1,2) [2025-04-06 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844185', 'tblTempUsageDetail_20' ) start [2025-04-06 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844185', 'tblTempUsageDetail_20' ) end [2025-04-06 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:34:23] Production.INFO: ==1307== Releasing lock... [2025-04-06 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:34:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:35:06 [end_date_ymd] => 2025-04-06 01:35:06 [RateCDR] => 1 ) [2025-04-06 01:35: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-04-05 22:35:06' and `end` < '2025-04-06 01:35: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-04-06 01:35:19] Production.INFO: count ==783 [2025-04-06 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:35:06 - End Time 2025-04-06 01:35:06 [2025-04-06 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844190', 'tblTempUsageDetail_20' ) start [2025-04-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844190', 'tblTempUsageDetail_20' ) end [2025-04-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844190', 'tblTempVendorCDR_20' ) start [2025-04-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844190', 'tblTempVendorCDR_20' ) end [2025-04-06 01:35:19] Production.INFO: ProcessCDR(1,14844190,1,1,2) [2025-04-06 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844190', 'tblTempUsageDetail_20' ) start [2025-04-06 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844190', 'tblTempUsageDetail_20' ) end [2025-04-06 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:35:22] Production.INFO: ==1377== Releasing lock... [2025-04-06 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:35:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:36:05 [end_date_ymd] => 2025-04-06 01:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:36:05' and `end` < '2025-04-06 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-04-06 01:36:18] Production.INFO: count ==774 [2025-04-06 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:36:05 - End Time 2025-04-06 01:36:05 [2025-04-06 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844195', 'tblTempUsageDetail_20' ) start [2025-04-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844195', 'tblTempUsageDetail_20' ) end [2025-04-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844195', 'tblTempVendorCDR_20' ) start [2025-04-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844195', 'tblTempVendorCDR_20' ) end [2025-04-06 01:36:18] Production.INFO: ProcessCDR(1,14844195,1,1,2) [2025-04-06 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844195', 'tblTempUsageDetail_20' ) start [2025-04-06 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844195', 'tblTempUsageDetail_20' ) end [2025-04-06 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:36:22] Production.INFO: ==1447== Releasing lock... [2025-04-06 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:37:05 [end_date_ymd] => 2025-04-06 01:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:37:05' and `end` < '2025-04-06 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-04-06 01:37:18] Production.INFO: count ==758 [2025-04-06 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:37:05 - End Time 2025-04-06 01:37:05 [2025-04-06 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844200', 'tblTempUsageDetail_20' ) start [2025-04-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844200', 'tblTempUsageDetail_20' ) end [2025-04-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844200', 'tblTempVendorCDR_20' ) start [2025-04-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844200', 'tblTempVendorCDR_20' ) end [2025-04-06 01:37:18] Production.INFO: ProcessCDR(1,14844200,1,1,2) [2025-04-06 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844200', 'tblTempUsageDetail_20' ) start [2025-04-06 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844200', 'tblTempUsageDetail_20' ) end [2025-04-06 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:37:21] Production.INFO: ==1554== Releasing lock... [2025-04-06 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:37:21] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:38:06 [end_date_ymd] => 2025-04-06 01:38:06 [RateCDR] => 1 ) [2025-04-06 01:38: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-04-05 22:38:06' and `end` < '2025-04-06 01:38: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-04-06 01:38:18] Production.INFO: count ==746 [2025-04-06 01:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:38:06 - End Time 2025-04-06 01:38:06 [2025-04-06 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844205', 'tblTempUsageDetail_20' ) start [2025-04-06 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844205', 'tblTempUsageDetail_20' ) end [2025-04-06 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844205', 'tblTempVendorCDR_20' ) start [2025-04-06 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844205', 'tblTempVendorCDR_20' ) end [2025-04-06 01:38:19] Production.INFO: ProcessCDR(1,14844205,1,1,2) [2025-04-06 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844205', 'tblTempUsageDetail_20' ) start [2025-04-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844205', 'tblTempUsageDetail_20' ) end [2025-04-06 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:38:23] Production.INFO: ==1633== Releasing lock... [2025-04-06 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:38:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:39:05 [end_date_ymd] => 2025-04-06 01:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:39:05' and `end` < '2025-04-06 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-04-06 01:39:18] Production.INFO: count ==734 [2025-04-06 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:39:05 - End Time 2025-04-06 01:39:05 [2025-04-06 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844210', 'tblTempUsageDetail_20' ) start [2025-04-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844210', 'tblTempUsageDetail_20' ) end [2025-04-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844210', 'tblTempVendorCDR_20' ) start [2025-04-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844210', 'tblTempVendorCDR_20' ) end [2025-04-06 01:39:18] Production.INFO: ProcessCDR(1,14844210,1,1,2) [2025-04-06 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844210', 'tblTempUsageDetail_20' ) start [2025-04-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844210', 'tblTempUsageDetail_20' ) end [2025-04-06 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:39:22] Production.INFO: ==1702== Releasing lock... [2025-04-06 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:40:06 [end_date_ymd] => 2025-04-06 01:40:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:40:06' and `end` < '2025-04-06 01: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-04-06 01:40:19] Production.INFO: count ==735 [2025-04-06 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:40:06 - End Time 2025-04-06 01:40:06 [2025-04-06 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844216', 'tblTempUsageDetail_20' ) start [2025-04-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844216', 'tblTempUsageDetail_20' ) end [2025-04-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844216', 'tblTempVendorCDR_20' ) start [2025-04-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844216', 'tblTempVendorCDR_20' ) end [2025-04-06 01:40:20] Production.INFO: ProcessCDR(1,14844216,1,1,2) [2025-04-06 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844216', 'tblTempUsageDetail_20' ) start [2025-04-06 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844216', 'tblTempUsageDetail_20' ) end [2025-04-06 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:40:23] Production.INFO: ==1777== Releasing lock... [2025-04-06 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:41:05 [end_date_ymd] => 2025-04-06 01:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:41:05' and `end` < '2025-04-06 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-04-06 01:41:18] Production.INFO: count ==745 [2025-04-06 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:41:05 - End Time 2025-04-06 01:41:05 [2025-04-06 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844221', 'tblTempUsageDetail_20' ) start [2025-04-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844221', 'tblTempUsageDetail_20' ) end [2025-04-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844221', 'tblTempVendorCDR_20' ) start [2025-04-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844221', 'tblTempVendorCDR_20' ) end [2025-04-06 01:41:18] Production.INFO: ProcessCDR(1,14844221,1,1,2) [2025-04-06 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844221', 'tblTempUsageDetail_20' ) start [2025-04-06 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844221', 'tblTempUsageDetail_20' ) end [2025-04-06 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:41:22] Production.INFO: ==1853== Releasing lock... [2025-04-06 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:42:06 [end_date_ymd] => 2025-04-06 01:42:06 [RateCDR] => 1 ) [2025-04-06 01:42: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-04-05 22:42:06' and `end` < '2025-04-06 01:42: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-04-06 01:42:18] Production.INFO: count ==740 [2025-04-06 01:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:42:06 - End Time 2025-04-06 01:42:06 [2025-04-06 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844226', 'tblTempUsageDetail_20' ) start [2025-04-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844226', 'tblTempUsageDetail_20' ) end [2025-04-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844226', 'tblTempVendorCDR_20' ) start [2025-04-06 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844226', 'tblTempVendorCDR_20' ) end [2025-04-06 01:42:19] Production.INFO: ProcessCDR(1,14844226,1,1,2) [2025-04-06 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844226', 'tblTempUsageDetail_20' ) start [2025-04-06 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844226', 'tblTempUsageDetail_20' ) end [2025-04-06 01:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:42:24] Production.INFO: ==1928== Releasing lock... [2025-04-06 01:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:42:24] Production.INFO: 34 MB #Memory Used# [2025-04-06 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:43:05 [end_date_ymd] => 2025-04-06 01:43:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:43:05' and `end` < '2025-04-06 01: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-04-06 01:43:18] Production.INFO: count ==739 [2025-04-06 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:43:05 - End Time 2025-04-06 01:43:05 [2025-04-06 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844231', 'tblTempUsageDetail_20' ) start [2025-04-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844231', 'tblTempUsageDetail_20' ) end [2025-04-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844231', 'tblTempVendorCDR_20' ) start [2025-04-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844231', 'tblTempVendorCDR_20' ) end [2025-04-06 01:43:18] Production.INFO: ProcessCDR(1,14844231,1,1,2) [2025-04-06 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844231', 'tblTempUsageDetail_20' ) start [2025-04-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844231', 'tblTempUsageDetail_20' ) end [2025-04-06 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:43:22] Production.INFO: ==2001== Releasing lock... [2025-04-06 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:44:06 [end_date_ymd] => 2025-04-06 01:44:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:44:06' and `end` < '2025-04-06 01: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-04-06 01:44:19] Production.INFO: count ==735 [2025-04-06 01:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:44:06 - End Time 2025-04-06 01:44:06 [2025-04-06 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844236', 'tblTempUsageDetail_20' ) start [2025-04-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844236', 'tblTempUsageDetail_20' ) end [2025-04-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844236', 'tblTempVendorCDR_20' ) start [2025-04-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844236', 'tblTempVendorCDR_20' ) end [2025-04-06 01:44:19] Production.INFO: ProcessCDR(1,14844236,1,1,2) [2025-04-06 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844236', 'tblTempUsageDetail_20' ) start [2025-04-06 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844236', 'tblTempUsageDetail_20' ) end [2025-04-06 01:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:44:24] Production.INFO: ==2112== Releasing lock... [2025-04-06 01:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:44:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:45:05 [end_date_ymd] => 2025-04-06 01:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:45:05' and `end` < '2025-04-06 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-04-06 01:45:18] Production.INFO: count ==724 [2025-04-06 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:45:05 - End Time 2025-04-06 01:45:05 [2025-04-06 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844241', 'tblTempUsageDetail_20' ) start [2025-04-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844241', 'tblTempUsageDetail_20' ) end [2025-04-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844241', 'tblTempVendorCDR_20' ) start [2025-04-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844241', 'tblTempVendorCDR_20' ) end [2025-04-06 01:45:18] Production.INFO: ProcessCDR(1,14844241,1,1,2) [2025-04-06 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844241', 'tblTempUsageDetail_20' ) start [2025-04-06 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844241', 'tblTempUsageDetail_20' ) end [2025-04-06 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:45:23] Production.INFO: ==2182== Releasing lock... [2025-04-06 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:46:06 [end_date_ymd] => 2025-04-06 01:46:06 [RateCDR] => 1 ) [2025-04-06 01:46: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-04-05 22:46:06' and `end` < '2025-04-06 01:46: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-04-06 01:46:18] Production.INFO: count ==724 [2025-04-06 01:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:46:06 - End Time 2025-04-06 01:46:06 [2025-04-06 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844246', 'tblTempUsageDetail_20' ) start [2025-04-06 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844246', 'tblTempUsageDetail_20' ) end [2025-04-06 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844246', 'tblTempVendorCDR_20' ) start [2025-04-06 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844246', 'tblTempVendorCDR_20' ) end [2025-04-06 01:46:19] Production.INFO: ProcessCDR(1,14844246,1,1,2) [2025-04-06 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844246', 'tblTempUsageDetail_20' ) start [2025-04-06 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844246', 'tblTempUsageDetail_20' ) end [2025-04-06 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:46:22] Production.INFO: ==2254== Releasing lock... [2025-04-06 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:47:05 [end_date_ymd] => 2025-04-06 01:47:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:47:05' and `end` < '2025-04-06 01: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-04-06 01:47:18] Production.INFO: count ==705 [2025-04-06 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:47:05 - End Time 2025-04-06 01:47:05 [2025-04-06 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844251', 'tblTempUsageDetail_20' ) start [2025-04-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844251', 'tblTempUsageDetail_20' ) end [2025-04-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844251', 'tblTempVendorCDR_20' ) start [2025-04-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844251', 'tblTempVendorCDR_20' ) end [2025-04-06 01:47:18] Production.INFO: ProcessCDR(1,14844251,1,1,2) [2025-04-06 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844251', 'tblTempUsageDetail_20' ) start [2025-04-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844251', 'tblTempUsageDetail_20' ) end [2025-04-06 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:47:22] Production.INFO: ==2327== Releasing lock... [2025-04-06 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:48:05 [end_date_ymd] => 2025-04-06 01:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:48:05' and `end` < '2025-04-06 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-04-06 01:48:18] Production.INFO: count ==705 [2025-04-06 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:48:05 - End Time 2025-04-06 01:48:05 [2025-04-06 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844256', 'tblTempUsageDetail_20' ) start [2025-04-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844256', 'tblTempUsageDetail_20' ) end [2025-04-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844256', 'tblTempVendorCDR_20' ) start [2025-04-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844256', 'tblTempVendorCDR_20' ) end [2025-04-06 01:48:18] Production.INFO: ProcessCDR(1,14844256,1,1,2) [2025-04-06 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844256', 'tblTempUsageDetail_20' ) start [2025-04-06 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844256', 'tblTempUsageDetail_20' ) end [2025-04-06 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:48:22] Production.INFO: ==2400== Releasing lock... [2025-04-06 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:49:05 [end_date_ymd] => 2025-04-06 01:49:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:49:05' and `end` < '2025-04-06 01: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-04-06 01:49:18] Production.INFO: count ==709 [2025-04-06 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:49:05 - End Time 2025-04-06 01:49:05 [2025-04-06 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844258', 'tblTempUsageDetail_20' ) start [2025-04-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844258', 'tblTempUsageDetail_20' ) end [2025-04-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844258', 'tblTempVendorCDR_20' ) start [2025-04-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844258', 'tblTempVendorCDR_20' ) end [2025-04-06 01:49:18] Production.INFO: ProcessCDR(1,14844258,1,1,2) [2025-04-06 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844258', 'tblTempUsageDetail_20' ) start [2025-04-06 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844258', 'tblTempUsageDetail_20' ) end [2025-04-06 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:49:23] Production.INFO: ==2473== Releasing lock... [2025-04-06 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:49:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:50:06 [end_date_ymd] => 2025-04-06 01:50:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:50:06' and `end` < '2025-04-06 01: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-04-06 01:50:18] Production.INFO: count ==717 [2025-04-06 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:50:06 - End Time 2025-04-06 01:50:06 [2025-04-06 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844267', 'tblTempUsageDetail_20' ) start [2025-04-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844267', 'tblTempUsageDetail_20' ) end [2025-04-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844267', 'tblTempVendorCDR_20' ) start [2025-04-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844267', 'tblTempVendorCDR_20' ) end [2025-04-06 01:50:19] Production.INFO: ProcessCDR(1,14844267,1,1,2) [2025-04-06 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844267', 'tblTempUsageDetail_20' ) start [2025-04-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844267', 'tblTempUsageDetail_20' ) end [2025-04-06 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:50:22] Production.INFO: ==2548== Releasing lock... [2025-04-06 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:51:05 [end_date_ymd] => 2025-04-06 01:51:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:51:05' and `end` < '2025-04-06 01: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-04-06 01:51:18] Production.INFO: count ==723 [2025-04-06 01:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:51:05 - End Time 2025-04-06 01:51:05 [2025-04-06 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844272', 'tblTempUsageDetail_20' ) start [2025-04-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844272', 'tblTempUsageDetail_20' ) end [2025-04-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844272', 'tblTempVendorCDR_20' ) start [2025-04-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844272', 'tblTempVendorCDR_20' ) end [2025-04-06 01:51:19] Production.INFO: ProcessCDR(1,14844272,1,1,2) [2025-04-06 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844272', 'tblTempUsageDetail_20' ) start [2025-04-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844272', 'tblTempUsageDetail_20' ) end [2025-04-06 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:51:22] Production.INFO: ==2626== Releasing lock... [2025-04-06 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:52:05 [end_date_ymd] => 2025-04-06 01:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:52:05' and `end` < '2025-04-06 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-04-06 01:52:18] Production.INFO: count ==722 [2025-04-06 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:52:05 - End Time 2025-04-06 01:52:05 [2025-04-06 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844277', 'tblTempUsageDetail_20' ) start [2025-04-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844277', 'tblTempUsageDetail_20' ) end [2025-04-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844277', 'tblTempVendorCDR_20' ) start [2025-04-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844277', 'tblTempVendorCDR_20' ) end [2025-04-06 01:52:18] Production.INFO: ProcessCDR(1,14844277,1,1,2) [2025-04-06 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844277', 'tblTempUsageDetail_20' ) start [2025-04-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844277', 'tblTempUsageDetail_20' ) end [2025-04-06 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:52:22] Production.INFO: ==2701== Releasing lock... [2025-04-06 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:53:06 [end_date_ymd] => 2025-04-06 01:53:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:53:06' and `end` < '2025-04-06 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-04-06 01:53:18] Production.INFO: count ==720 [2025-04-06 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:53:06 - End Time 2025-04-06 01:53:06 [2025-04-06 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844282', 'tblTempUsageDetail_20' ) start [2025-04-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844282', 'tblTempUsageDetail_20' ) end [2025-04-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844282', 'tblTempVendorCDR_20' ) start [2025-04-06 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844282', 'tblTempVendorCDR_20' ) end [2025-04-06 01:53:19] Production.INFO: ProcessCDR(1,14844282,1,1,2) [2025-04-06 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844282', 'tblTempUsageDetail_20' ) start [2025-04-06 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844282', 'tblTempUsageDetail_20' ) end [2025-04-06 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:53:22] Production.INFO: ==2778== Releasing lock... [2025-04-06 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:54:05 [end_date_ymd] => 2025-04-06 01:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:54:05' and `end` < '2025-04-06 01: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-04-06 01:54:18] Production.INFO: count ==724 [2025-04-06 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:54:05 - End Time 2025-04-06 01:54:05 [2025-04-06 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844287', 'tblTempUsageDetail_20' ) start [2025-04-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844287', 'tblTempUsageDetail_20' ) end [2025-04-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844287', 'tblTempVendorCDR_20' ) start [2025-04-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844287', 'tblTempVendorCDR_20' ) end [2025-04-06 01:54:18] Production.INFO: ProcessCDR(1,14844287,1,1,2) [2025-04-06 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844287', 'tblTempUsageDetail_20' ) start [2025-04-06 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844287', 'tblTempUsageDetail_20' ) end [2025-04-06 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:54:22] Production.INFO: ==2848== Releasing lock... [2025-04-06 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:55:05 [end_date_ymd] => 2025-04-06 01:55:05 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:55:05' and `end` < '2025-04-06 01: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-04-06 01:55:18] Production.INFO: count ==724 [2025-04-06 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:55:05 - End Time 2025-04-06 01:55:05 [2025-04-06 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844292', 'tblTempUsageDetail_20' ) start [2025-04-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844292', 'tblTempUsageDetail_20' ) end [2025-04-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844292', 'tblTempVendorCDR_20' ) start [2025-04-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844292', 'tblTempVendorCDR_20' ) end [2025-04-06 01:55:18] Production.INFO: ProcessCDR(1,14844292,1,1,2) [2025-04-06 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844292', 'tblTempUsageDetail_20' ) start [2025-04-06 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844292', 'tblTempUsageDetail_20' ) end [2025-04-06 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:55:22] Production.INFO: ==2924== Releasing lock... [2025-04-06 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:56:06 [end_date_ymd] => 2025-04-06 01:56:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:56:06' and `end` < '2025-04-06 01: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-04-06 01:56:18] Production.INFO: count ==720 [2025-04-06 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:56:06 - End Time 2025-04-06 01:56:06 [2025-04-06 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844297', 'tblTempUsageDetail_20' ) start [2025-04-06 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844297', 'tblTempUsageDetail_20' ) end [2025-04-06 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844297', 'tblTempVendorCDR_20' ) start [2025-04-06 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844297', 'tblTempVendorCDR_20' ) end [2025-04-06 01:56:19] Production.INFO: ProcessCDR(1,14844297,1,1,2) [2025-04-06 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844297', 'tblTempUsageDetail_20' ) start [2025-04-06 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844297', 'tblTempUsageDetail_20' ) end [2025-04-06 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:56:22] Production.INFO: ==2998== Releasing lock... [2025-04-06 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:57:05 [end_date_ymd] => 2025-04-06 01:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:57:05' and `end` < '2025-04-06 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-04-06 01:57:18] Production.INFO: count ==720 [2025-04-06 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:57:05 - End Time 2025-04-06 01:57:05 [2025-04-06 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844302', 'tblTempUsageDetail_20' ) start [2025-04-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844302', 'tblTempUsageDetail_20' ) end [2025-04-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844302', 'tblTempVendorCDR_20' ) start [2025-04-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844302', 'tblTempVendorCDR_20' ) end [2025-04-06 01:57:18] Production.INFO: ProcessCDR(1,14844302,1,1,2) [2025-04-06 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844302', 'tblTempUsageDetail_20' ) start [2025-04-06 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844302', 'tblTempUsageDetail_20' ) end [2025-04-06 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:57:22] Production.INFO: ==3071== Releasing lock... [2025-04-06 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:58:06 [end_date_ymd] => 2025-04-06 01:58:06 [RateCDR] => 1 ) [2025-04-06 01: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-04-05 22:58:06' and `end` < '2025-04-06 01: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-04-06 01:58:18] Production.INFO: count ==717 [2025-04-06 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 22:58:06 - End Time 2025-04-06 01:58:06 [2025-04-06 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844307', 'tblTempUsageDetail_20' ) start [2025-04-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844307', 'tblTempUsageDetail_20' ) end [2025-04-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844307', 'tblTempVendorCDR_20' ) start [2025-04-06 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844307', 'tblTempVendorCDR_20' ) end [2025-04-06 01:58:19] Production.INFO: ProcessCDR(1,14844307,1,1,2) [2025-04-06 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844307', 'tblTempUsageDetail_20' ) start [2025-04-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844307', 'tblTempUsageDetail_20' ) end [2025-04-06 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:58:22] Production.INFO: ==3144== Releasing lock... [2025-04-06 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 22:59:05 [end_date_ymd] => 2025-04-06 01:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 22:59:05' and `end` < '2025-04-06 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-04-06 01:59:18] Production.INFO: count ==716 [2025-04-06 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 22:59:05 - End Time 2025-04-06 01:59:05 [2025-04-06 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844312', 'tblTempUsageDetail_20' ) start [2025-04-06 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844312', 'tblTempUsageDetail_20' ) end [2025-04-06 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844312', 'tblTempVendorCDR_20' ) start [2025-04-06 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844312', 'tblTempVendorCDR_20' ) end [2025-04-06 01:59:18] Production.INFO: ProcessCDR(1,14844312,1,1,2) [2025-04-06 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844312', 'tblTempUsageDetail_20' ) start [2025-04-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844312', 'tblTempUsageDetail_20' ) end [2025-04-06 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 01:59:22] Production.INFO: ==3260== Releasing lock... [2025-04-06 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 01:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:00:06 [end_date_ymd] => 2025-04-06 02:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:00:06' and `end` < '2025-04-06 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-04-06 02:00:19] Production.INFO: count ==732 [2025-04-06 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:00:06 - End Time 2025-04-06 02:00:06 [2025-04-06 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844318', 'tblTempUsageDetail_20' ) start [2025-04-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844318', 'tblTempUsageDetail_20' ) end [2025-04-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844318', 'tblTempVendorCDR_20' ) start [2025-04-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844318', 'tblTempVendorCDR_20' ) end [2025-04-06 02:00:19] Production.INFO: ProcessCDR(1,14844318,1,1,2) [2025-04-06 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844318', 'tblTempUsageDetail_20' ) start [2025-04-06 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844318', 'tblTempUsageDetail_20' ) end [2025-04-06 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:00:22] Production.INFO: ==3341== Releasing lock... [2025-04-06 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:01:06 [end_date_ymd] => 2025-04-06 02:01:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:01:06' and `end` < '2025-04-06 02: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-04-06 02:01:18] Production.INFO: count ==743 [2025-04-06 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:01:06 - End Time 2025-04-06 02:01:06 [2025-04-06 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844323', 'tblTempUsageDetail_20' ) start [2025-04-06 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844323', 'tblTempUsageDetail_20' ) end [2025-04-06 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844323', 'tblTempVendorCDR_20' ) start [2025-04-06 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844323', 'tblTempVendorCDR_20' ) end [2025-04-06 02:01:19] Production.INFO: ProcessCDR(1,14844323,1,1,2) [2025-04-06 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844323', 'tblTempUsageDetail_20' ) start [2025-04-06 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844323', 'tblTempUsageDetail_20' ) end [2025-04-06 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:01:22] Production.INFO: ==3431== Releasing lock... [2025-04-06 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:02:05 [end_date_ymd] => 2025-04-06 02:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:02:05' and `end` < '2025-04-06 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-04-06 02:02:18] Production.INFO: count ==739 [2025-04-06 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:02:05 - End Time 2025-04-06 02:02:05 [2025-04-06 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844328', 'tblTempUsageDetail_20' ) start [2025-04-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844328', 'tblTempUsageDetail_20' ) end [2025-04-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844328', 'tblTempVendorCDR_20' ) start [2025-04-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844328', 'tblTempVendorCDR_20' ) end [2025-04-06 02:02:18] Production.INFO: ProcessCDR(1,14844328,1,1,2) [2025-04-06 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844328', 'tblTempUsageDetail_20' ) start [2025-04-06 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844328', 'tblTempUsageDetail_20' ) end [2025-04-06 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:02:21] Production.INFO: ==3596== Releasing lock... [2025-04-06 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:02:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:03:05 [end_date_ymd] => 2025-04-06 02:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:03:05' and `end` < '2025-04-06 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-04-06 02:03:18] Production.INFO: count ==740 [2025-04-06 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:03:05 - End Time 2025-04-06 02:03:05 [2025-04-06 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844333', 'tblTempUsageDetail_20' ) start [2025-04-06 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844333', 'tblTempUsageDetail_20' ) end [2025-04-06 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844333', 'tblTempVendorCDR_20' ) start [2025-04-06 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844333', 'tblTempVendorCDR_20' ) end [2025-04-06 02:03:18] Production.INFO: ProcessCDR(1,14844333,1,1,2) [2025-04-06 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844333', 'tblTempUsageDetail_20' ) start [2025-04-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844333', 'tblTempUsageDetail_20' ) end [2025-04-06 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:03:22] Production.INFO: ==3669== Releasing lock... [2025-04-06 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:03:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:04:05 [end_date_ymd] => 2025-04-06 02:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:04:05' and `end` < '2025-04-06 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-04-06 02:04:18] Production.INFO: count ==743 [2025-04-06 02:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:04:05 - End Time 2025-04-06 02:04:05 [2025-04-06 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844338', 'tblTempUsageDetail_20' ) start [2025-04-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844338', 'tblTempUsageDetail_20' ) end [2025-04-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844338', 'tblTempVendorCDR_20' ) start [2025-04-06 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844338', 'tblTempVendorCDR_20' ) end [2025-04-06 02:04:19] Production.INFO: ProcessCDR(1,14844338,1,1,2) [2025-04-06 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844338', 'tblTempUsageDetail_20' ) start [2025-04-06 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844338', 'tblTempUsageDetail_20' ) end [2025-04-06 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:04:22] Production.INFO: ==3742== Releasing lock... [2025-04-06 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:05:06 [end_date_ymd] => 2025-04-06 02:05:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:05:06' and `end` < '2025-04-06 02: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-04-06 02:05:19] Production.INFO: count ==743 [2025-04-06 02:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:05:06 - End Time 2025-04-06 02:05:06 [2025-04-06 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844343', 'tblTempUsageDetail_20' ) start [2025-04-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844343', 'tblTempUsageDetail_20' ) end [2025-04-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844343', 'tblTempVendorCDR_20' ) start [2025-04-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844343', 'tblTempVendorCDR_20' ) end [2025-04-06 02:05:19] Production.INFO: ProcessCDR(1,14844343,1,1,2) [2025-04-06 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844343', 'tblTempUsageDetail_20' ) start [2025-04-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844343', 'tblTempUsageDetail_20' ) end [2025-04-06 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:05:22] Production.INFO: ==3815== Releasing lock... [2025-04-06 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:06:05 [end_date_ymd] => 2025-04-06 02:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:06:05' and `end` < '2025-04-06 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-04-06 02:06:18] Production.INFO: count ==744 [2025-04-06 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:06:05 - End Time 2025-04-06 02:06:05 [2025-04-06 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844348', 'tblTempUsageDetail_20' ) start [2025-04-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844348', 'tblTempUsageDetail_20' ) end [2025-04-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844348', 'tblTempVendorCDR_20' ) start [2025-04-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844348', 'tblTempVendorCDR_20' ) end [2025-04-06 02:06:18] Production.INFO: ProcessCDR(1,14844348,1,1,2) [2025-04-06 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844348', 'tblTempUsageDetail_20' ) start [2025-04-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844348', 'tblTempUsageDetail_20' ) end [2025-04-06 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:06:22] Production.INFO: ==3887== Releasing lock... [2025-04-06 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:07:06 [end_date_ymd] => 2025-04-06 02:07:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:07:06' and `end` < '2025-04-06 02:07: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-04-06 02:07:18] Production.INFO: count ==741 [2025-04-06 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:07:06 - End Time 2025-04-06 02:07:06 [2025-04-06 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844353', 'tblTempUsageDetail_20' ) start [2025-04-06 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844353', 'tblTempUsageDetail_20' ) end [2025-04-06 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844353', 'tblTempVendorCDR_20' ) start [2025-04-06 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844353', 'tblTempVendorCDR_20' ) end [2025-04-06 02:07:19] Production.INFO: ProcessCDR(1,14844353,1,1,2) [2025-04-06 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844353', 'tblTempUsageDetail_20' ) start [2025-04-06 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844353', 'tblTempUsageDetail_20' ) end [2025-04-06 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:07:22] Production.INFO: ==3959== Releasing lock... [2025-04-06 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:08:05 [end_date_ymd] => 2025-04-06 02:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:08:05' and `end` < '2025-04-06 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-04-06 02:08:18] Production.INFO: count ==737 [2025-04-06 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:08:05 - End Time 2025-04-06 02:08:05 [2025-04-06 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844358', 'tblTempUsageDetail_20' ) start [2025-04-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844358', 'tblTempUsageDetail_20' ) end [2025-04-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844358', 'tblTempVendorCDR_20' ) start [2025-04-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844358', 'tblTempVendorCDR_20' ) end [2025-04-06 02:08:18] Production.INFO: ProcessCDR(1,14844358,1,1,2) [2025-04-06 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844358', 'tblTempUsageDetail_20' ) start [2025-04-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844358', 'tblTempUsageDetail_20' ) end [2025-04-06 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:08:21] Production.INFO: ==4035== Releasing lock... [2025-04-06 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:08:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:09:06 [end_date_ymd] => 2025-04-06 02:09:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:09:06' and `end` < '2025-04-06 02: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-04-06 02:09:18] Production.INFO: count ==733 [2025-04-06 02:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:09:06 - End Time 2025-04-06 02:09:06 [2025-04-06 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844363', 'tblTempUsageDetail_20' ) start [2025-04-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844363', 'tblTempUsageDetail_20' ) end [2025-04-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844363', 'tblTempVendorCDR_20' ) start [2025-04-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844363', 'tblTempVendorCDR_20' ) end [2025-04-06 02:09:19] Production.INFO: ProcessCDR(1,14844363,1,1,2) [2025-04-06 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844363', 'tblTempUsageDetail_20' ) start [2025-04-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844363', 'tblTempUsageDetail_20' ) end [2025-04-06 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:09:22] Production.INFO: ==4110== Releasing lock... [2025-04-06 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:10:06 [end_date_ymd] => 2025-04-06 02:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:10:06' and `end` < '2025-04-06 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-04-06 02:10:18] Production.INFO: count ==752 [2025-04-06 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:10:06 - End Time 2025-04-06 02:10:06 [2025-04-06 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844368', 'tblTempUsageDetail_20' ) start [2025-04-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844368', 'tblTempUsageDetail_20' ) end [2025-04-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844368', 'tblTempVendorCDR_20' ) start [2025-04-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844368', 'tblTempVendorCDR_20' ) end [2025-04-06 02:10:19] Production.INFO: ProcessCDR(1,14844368,1,1,2) [2025-04-06 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844368', 'tblTempUsageDetail_20' ) start [2025-04-06 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844368', 'tblTempUsageDetail_20' ) end [2025-04-06 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:10:22] Production.INFO: ==4182== Releasing lock... [2025-04-06 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:11:06 [end_date_ymd] => 2025-04-06 02:11:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:11:06' and `end` < '2025-04-06 02: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-04-06 02:11:19] Production.INFO: count ==768 [2025-04-06 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:11:06 - End Time 2025-04-06 02:11:06 [2025-04-06 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844374', 'tblTempUsageDetail_20' ) start [2025-04-06 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844374', 'tblTempUsageDetail_20' ) end [2025-04-06 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844374', 'tblTempVendorCDR_20' ) start [2025-04-06 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844374', 'tblTempVendorCDR_20' ) end [2025-04-06 02:11:20] Production.INFO: ProcessCDR(1,14844374,1,1,2) [2025-04-06 02:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844374', 'tblTempUsageDetail_20' ) start [2025-04-06 02:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844374', 'tblTempUsageDetail_20' ) end [2025-04-06 02:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:11:24] Production.INFO: ==4258== Releasing lock... [2025-04-06 02:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:11:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:12:05 [end_date_ymd] => 2025-04-06 02:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:12:05' and `end` < '2025-04-06 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-04-06 02:12:18] Production.INFO: count ==767 [2025-04-06 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:12:05 - End Time 2025-04-06 02:12:05 [2025-04-06 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844379', 'tblTempUsageDetail_20' ) start [2025-04-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844379', 'tblTempUsageDetail_20' ) end [2025-04-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844379', 'tblTempVendorCDR_20' ) start [2025-04-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844379', 'tblTempVendorCDR_20' ) end [2025-04-06 02:12:18] Production.INFO: ProcessCDR(1,14844379,1,1,2) [2025-04-06 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844379', 'tblTempUsageDetail_20' ) start [2025-04-06 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844379', 'tblTempUsageDetail_20' ) end [2025-04-06 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:12:22] Production.INFO: ==4330== Releasing lock... [2025-04-06 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:13:05 [end_date_ymd] => 2025-04-06 02:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:13:05' and `end` < '2025-04-06 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-04-06 02:13:18] Production.INFO: count ==780 [2025-04-06 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:13:05 - End Time 2025-04-06 02:13:05 [2025-04-06 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844384', 'tblTempUsageDetail_20' ) start [2025-04-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844384', 'tblTempUsageDetail_20' ) end [2025-04-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844384', 'tblTempVendorCDR_20' ) start [2025-04-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844384', 'tblTempVendorCDR_20' ) end [2025-04-06 02:13:18] Production.INFO: ProcessCDR(1,14844384,1,1,2) [2025-04-06 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844384', 'tblTempUsageDetail_20' ) start [2025-04-06 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844384', 'tblTempUsageDetail_20' ) end [2025-04-06 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:13:22] Production.INFO: ==4401== Releasing lock... [2025-04-06 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:14:06 [end_date_ymd] => 2025-04-06 02:14:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:14:06' and `end` < '2025-04-06 02: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-04-06 02:14:19] Production.INFO: count ==794 [2025-04-06 02:14:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:14:06 - End Time 2025-04-06 02:14:06 [2025-04-06 02:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844389', 'tblTempUsageDetail_20' ) start [2025-04-06 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844389', 'tblTempUsageDetail_20' ) end [2025-04-06 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844389', 'tblTempVendorCDR_20' ) start [2025-04-06 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844389', 'tblTempVendorCDR_20' ) end [2025-04-06 02:14:20] Production.INFO: ProcessCDR(1,14844389,1,1,2) [2025-04-06 02:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844389', 'tblTempUsageDetail_20' ) start [2025-04-06 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844389', 'tblTempUsageDetail_20' ) end [2025-04-06 02:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:14:23] Production.INFO: ==4474== Releasing lock... [2025-04-06 02:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:14:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:15:05 [end_date_ymd] => 2025-04-06 02:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:15:05' and `end` < '2025-04-06 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-04-06 02:15:18] Production.INFO: count ==800 [2025-04-06 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:15:05 - End Time 2025-04-06 02:15:05 [2025-04-06 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844394', 'tblTempUsageDetail_20' ) start [2025-04-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844394', 'tblTempUsageDetail_20' ) end [2025-04-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844394', 'tblTempVendorCDR_20' ) start [2025-04-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844394', 'tblTempVendorCDR_20' ) end [2025-04-06 02:15:18] Production.INFO: ProcessCDR(1,14844394,1,1,2) [2025-04-06 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844394', 'tblTempUsageDetail_20' ) start [2025-04-06 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844394', 'tblTempUsageDetail_20' ) end [2025-04-06 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:15:22] Production.INFO: ==4593== Releasing lock... [2025-04-06 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:15:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:16:06 [end_date_ymd] => 2025-04-06 02:16:06 [RateCDR] => 1 ) [2025-04-06 02:16: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-04-05 23:16:06' and `end` < '2025-04-06 02:16: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-04-06 02:16:18] Production.INFO: count ==796 [2025-04-06 02:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:16:06 - End Time 2025-04-06 02:16:06 [2025-04-06 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844399', 'tblTempUsageDetail_20' ) start [2025-04-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844399', 'tblTempUsageDetail_20' ) end [2025-04-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844399', 'tblTempVendorCDR_20' ) start [2025-04-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844399', 'tblTempVendorCDR_20' ) end [2025-04-06 02:16:19] Production.INFO: ProcessCDR(1,14844399,1,1,2) [2025-04-06 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844399', 'tblTempUsageDetail_20' ) start [2025-04-06 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844399', 'tblTempUsageDetail_20' ) end [2025-04-06 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:16:22] Production.INFO: ==4668== Releasing lock... [2025-04-06 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:16:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:17:05 [end_date_ymd] => 2025-04-06 02:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:17:05' and `end` < '2025-04-06 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-04-06 02:17:18] Production.INFO: count ==808 [2025-04-06 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:17:05 - End Time 2025-04-06 02:17:05 [2025-04-06 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844404', 'tblTempUsageDetail_20' ) start [2025-04-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844404', 'tblTempUsageDetail_20' ) end [2025-04-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844404', 'tblTempVendorCDR_20' ) start [2025-04-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844404', 'tblTempVendorCDR_20' ) end [2025-04-06 02:17:18] Production.INFO: ProcessCDR(1,14844404,1,1,2) [2025-04-06 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844404', 'tblTempUsageDetail_20' ) start [2025-04-06 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844404', 'tblTempUsageDetail_20' ) end [2025-04-06 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:17:22] Production.INFO: ==4740== Releasing lock... [2025-04-06 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:17:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:18:06 [end_date_ymd] => 2025-04-06 02:18:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:18:06' and `end` < '2025-04-06 02: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-04-06 02:18:19] Production.INFO: count ==807 [2025-04-06 02:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:18:06 - End Time 2025-04-06 02:18:06 [2025-04-06 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844409', 'tblTempUsageDetail_20' ) start [2025-04-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844409', 'tblTempUsageDetail_20' ) end [2025-04-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844409', 'tblTempVendorCDR_20' ) start [2025-04-06 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844409', 'tblTempVendorCDR_20' ) end [2025-04-06 02:18:19] Production.INFO: ProcessCDR(1,14844409,1,1,2) [2025-04-06 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844409', 'tblTempUsageDetail_20' ) start [2025-04-06 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844409', 'tblTempUsageDetail_20' ) end [2025-04-06 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:18:23] Production.INFO: ==4811== Releasing lock... [2025-04-06 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:18:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:19:05 [end_date_ymd] => 2025-04-06 02:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:19:05' and `end` < '2025-04-06 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-04-06 02:19:18] Production.INFO: count ==805 [2025-04-06 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:19:05 - End Time 2025-04-06 02:19:05 [2025-04-06 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844414', 'tblTempUsageDetail_20' ) start [2025-04-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844414', 'tblTempUsageDetail_20' ) end [2025-04-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844414', 'tblTempVendorCDR_20' ) start [2025-04-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844414', 'tblTempVendorCDR_20' ) end [2025-04-06 02:19:18] Production.INFO: ProcessCDR(1,14844414,1,1,2) [2025-04-06 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844414', 'tblTempUsageDetail_20' ) start [2025-04-06 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844414', 'tblTempUsageDetail_20' ) end [2025-04-06 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:19:22] Production.INFO: ==4886== Releasing lock... [2025-04-06 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:20:06 [end_date_ymd] => 2025-04-06 02:20:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:20:06' and `end` < '2025-04-06 02: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-04-06 02:20:19] Production.INFO: count ==805 [2025-04-06 02:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:20:06 - End Time 2025-04-06 02:20:06 [2025-04-06 02:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844420', 'tblTempUsageDetail_20' ) start [2025-04-06 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844420', 'tblTempUsageDetail_20' ) end [2025-04-06 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844420', 'tblTempVendorCDR_20' ) start [2025-04-06 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844420', 'tblTempVendorCDR_20' ) end [2025-04-06 02:20:20] Production.INFO: ProcessCDR(1,14844420,1,1,2) [2025-04-06 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844420', 'tblTempUsageDetail_20' ) start [2025-04-06 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844420', 'tblTempUsageDetail_20' ) end [2025-04-06 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:20:23] Production.INFO: ==4963== Releasing lock... [2025-04-06 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:21:05 [end_date_ymd] => 2025-04-06 02:21:05 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:21:05' and `end` < '2025-04-06 02: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-04-06 02:21:17] Production.INFO: count ==805 [2025-04-06 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:21:05 - End Time 2025-04-06 02:21:05 [2025-04-06 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844425', 'tblTempUsageDetail_20' ) start [2025-04-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844425', 'tblTempUsageDetail_20' ) end [2025-04-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844425', 'tblTempVendorCDR_20' ) start [2025-04-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844425', 'tblTempVendorCDR_20' ) end [2025-04-06 02:21:18] Production.INFO: ProcessCDR(1,14844425,1,1,2) [2025-04-06 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844425', 'tblTempUsageDetail_20' ) start [2025-04-06 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844425', 'tblTempUsageDetail_20' ) end [2025-04-06 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:21:21] Production.INFO: ==5040== Releasing lock... [2025-04-06 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:22:06 [end_date_ymd] => 2025-04-06 02:22:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:22:06' and `end` < '2025-04-06 02: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-04-06 02:22:18] Production.INFO: count ==810 [2025-04-06 02:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:22:06 - End Time 2025-04-06 02:22:06 [2025-04-06 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844430', 'tblTempUsageDetail_20' ) start [2025-04-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844430', 'tblTempUsageDetail_20' ) end [2025-04-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844430', 'tblTempVendorCDR_20' ) start [2025-04-06 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844430', 'tblTempVendorCDR_20' ) end [2025-04-06 02:22:19] Production.INFO: ProcessCDR(1,14844430,1,1,2) [2025-04-06 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844430', 'tblTempUsageDetail_20' ) start [2025-04-06 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844430', 'tblTempUsageDetail_20' ) end [2025-04-06 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:22:22] Production.INFO: ==5112== Releasing lock... [2025-04-06 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:22:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:23:05 [end_date_ymd] => 2025-04-06 02:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:23:05' and `end` < '2025-04-06 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-04-06 02:23:19] Production.INFO: count ==806 [2025-04-06 02:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:23:05 - End Time 2025-04-06 02:23:05 [2025-04-06 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844435', 'tblTempUsageDetail_20' ) start [2025-04-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844435', 'tblTempUsageDetail_20' ) end [2025-04-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844435', 'tblTempVendorCDR_20' ) start [2025-04-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844435', 'tblTempVendorCDR_20' ) end [2025-04-06 02:23:19] Production.INFO: ProcessCDR(1,14844435,1,1,2) [2025-04-06 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844435', 'tblTempUsageDetail_20' ) start [2025-04-06 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844435', 'tblTempUsageDetail_20' ) end [2025-04-06 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:23:23] Production.INFO: ==5192== Releasing lock... [2025-04-06 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:23:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:24:06 [end_date_ymd] => 2025-04-06 02:24:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:24:06' and `end` < '2025-04-06 02: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-04-06 02:24:18] Production.INFO: count ==805 [2025-04-06 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:24:06 - End Time 2025-04-06 02:24:06 [2025-04-06 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844440', 'tblTempUsageDetail_20' ) start [2025-04-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844440', 'tblTempUsageDetail_20' ) end [2025-04-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844440', 'tblTempVendorCDR_20' ) start [2025-04-06 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844440', 'tblTempVendorCDR_20' ) end [2025-04-06 02:24:19] Production.INFO: ProcessCDR(1,14844440,1,1,2) [2025-04-06 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844440', 'tblTempUsageDetail_20' ) start [2025-04-06 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844440', 'tblTempUsageDetail_20' ) end [2025-04-06 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:24:22] Production.INFO: ==5262== Releasing lock... [2025-04-06 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:24:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:25:05 [end_date_ymd] => 2025-04-06 02:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:25:05' and `end` < '2025-04-06 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-04-06 02:25:18] Production.INFO: count ==802 [2025-04-06 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:25:05 - End Time 2025-04-06 02:25:05 [2025-04-06 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844445', 'tblTempUsageDetail_20' ) start [2025-04-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844445', 'tblTempUsageDetail_20' ) end [2025-04-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844445', 'tblTempVendorCDR_20' ) start [2025-04-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844445', 'tblTempVendorCDR_20' ) end [2025-04-06 02:25:18] Production.INFO: ProcessCDR(1,14844445,1,1,2) [2025-04-06 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844445', 'tblTempUsageDetail_20' ) start [2025-04-06 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844445', 'tblTempUsageDetail_20' ) end [2025-04-06 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:25:22] Production.INFO: ==5334== Releasing lock... [2025-04-06 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:25:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:26:05 [end_date_ymd] => 2025-04-06 02:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:26:05' and `end` < '2025-04-06 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-04-06 02:26:18] Production.INFO: count ==803 [2025-04-06 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:26:05 - End Time 2025-04-06 02:26:05 [2025-04-06 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844450', 'tblTempUsageDetail_20' ) start [2025-04-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844450', 'tblTempUsageDetail_20' ) end [2025-04-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844450', 'tblTempVendorCDR_20' ) start [2025-04-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844450', 'tblTempVendorCDR_20' ) end [2025-04-06 02:26:18] Production.INFO: ProcessCDR(1,14844450,1,1,2) [2025-04-06 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844450', 'tblTempUsageDetail_20' ) start [2025-04-06 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844450', 'tblTempUsageDetail_20' ) end [2025-04-06 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:26:22] Production.INFO: ==5407== Releasing lock... [2025-04-06 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:27:05 [end_date_ymd] => 2025-04-06 02:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:27:05' and `end` < '2025-04-06 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-04-06 02:27:17] Production.INFO: count ==806 [2025-04-06 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:27:05 - End Time 2025-04-06 02:27:05 [2025-04-06 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844455', 'tblTempUsageDetail_20' ) start [2025-04-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844455', 'tblTempUsageDetail_20' ) end [2025-04-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844455', 'tblTempVendorCDR_20' ) start [2025-04-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844455', 'tblTempVendorCDR_20' ) end [2025-04-06 02:27:18] Production.INFO: ProcessCDR(1,14844455,1,1,2) [2025-04-06 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844455', 'tblTempUsageDetail_20' ) start [2025-04-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844455', 'tblTempUsageDetail_20' ) end [2025-04-06 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:27:21] Production.INFO: ==5478== Releasing lock... [2025-04-06 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:27:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:28:05 [end_date_ymd] => 2025-04-06 02:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:28:05' and `end` < '2025-04-06 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-04-06 02:28:18] Production.INFO: count ==821 [2025-04-06 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:28:05 - End Time 2025-04-06 02:28:05 [2025-04-06 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844460', 'tblTempUsageDetail_20' ) start [2025-04-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844460', 'tblTempUsageDetail_20' ) end [2025-04-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844460', 'tblTempVendorCDR_20' ) start [2025-04-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844460', 'tblTempVendorCDR_20' ) end [2025-04-06 02:28:18] Production.INFO: ProcessCDR(1,14844460,1,1,2) [2025-04-06 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844460', 'tblTempUsageDetail_20' ) start [2025-04-06 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844460', 'tblTempUsageDetail_20' ) end [2025-04-06 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:28:22] Production.INFO: ==5552== Releasing lock... [2025-04-06 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:29:05 [end_date_ymd] => 2025-04-06 02:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:29:05' and `end` < '2025-04-06 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-04-06 02:29:18] Production.INFO: count ==825 [2025-04-06 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:29:05 - End Time 2025-04-06 02:29:05 [2025-04-06 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844465', 'tblTempUsageDetail_20' ) start [2025-04-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844465', 'tblTempUsageDetail_20' ) end [2025-04-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844465', 'tblTempVendorCDR_20' ) start [2025-04-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844465', 'tblTempVendorCDR_20' ) end [2025-04-06 02:29:18] Production.INFO: ProcessCDR(1,14844465,1,1,2) [2025-04-06 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844465', 'tblTempUsageDetail_20' ) start [2025-04-06 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844465', 'tblTempUsageDetail_20' ) end [2025-04-06 02:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:29:23] Production.INFO: ==5626== Releasing lock... [2025-04-06 02:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:29:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:30:06 [end_date_ymd] => 2025-04-06 02:30:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:30:06' and `end` < '2025-04-06 02: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-04-06 02:30:19] Production.INFO: count ==830 [2025-04-06 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:30:06 - End Time 2025-04-06 02:30:06 [2025-04-06 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844470', 'tblTempUsageDetail_20' ) start [2025-04-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844470', 'tblTempUsageDetail_20' ) end [2025-04-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844470', 'tblTempVendorCDR_20' ) start [2025-04-06 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844470', 'tblTempVendorCDR_20' ) end [2025-04-06 02:30:19] Production.INFO: ProcessCDR(1,14844470,1,1,2) [2025-04-06 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844470', 'tblTempUsageDetail_20' ) start [2025-04-06 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844470', 'tblTempUsageDetail_20' ) end [2025-04-06 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:30:23] Production.INFO: ==5739== Releasing lock... [2025-04-06 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:30:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:31:06 [end_date_ymd] => 2025-04-06 02:31:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:31:06' and `end` < '2025-04-06 02: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-04-06 02:31:19] Production.INFO: count ==829 [2025-04-06 02:31:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:31:06 - End Time 2025-04-06 02:31:06 [2025-04-06 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844476', 'tblTempUsageDetail_20' ) start [2025-04-06 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844476', 'tblTempUsageDetail_20' ) end [2025-04-06 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844476', 'tblTempVendorCDR_20' ) start [2025-04-06 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844476', 'tblTempVendorCDR_20' ) end [2025-04-06 02:31:19] Production.INFO: ProcessCDR(1,14844476,1,1,2) [2025-04-06 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844476', 'tblTempUsageDetail_20' ) start [2025-04-06 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844476', 'tblTempUsageDetail_20' ) end [2025-04-06 02:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:31:23] Production.INFO: ==5815== Releasing lock... [2025-04-06 02:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:32:05 [end_date_ymd] => 2025-04-06 02:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:32:05' and `end` < '2025-04-06 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-04-06 02:32:18] Production.INFO: count ==824 [2025-04-06 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:32:05 - End Time 2025-04-06 02:32:05 [2025-04-06 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844481', 'tblTempUsageDetail_20' ) start [2025-04-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844481', 'tblTempUsageDetail_20' ) end [2025-04-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844481', 'tblTempVendorCDR_20' ) start [2025-04-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844481', 'tblTempVendorCDR_20' ) end [2025-04-06 02:32:18] Production.INFO: ProcessCDR(1,14844481,1,1,2) [2025-04-06 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844481', 'tblTempUsageDetail_20' ) start [2025-04-06 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844481', 'tblTempUsageDetail_20' ) end [2025-04-06 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:32:22] Production.INFO: ==5887== Releasing lock... [2025-04-06 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:33:05 [end_date_ymd] => 2025-04-06 02:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:33:05' and `end` < '2025-04-06 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-04-06 02:33:18] Production.INFO: count ==827 [2025-04-06 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:33:05 - End Time 2025-04-06 02:33:05 [2025-04-06 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844486', 'tblTempUsageDetail_20' ) start [2025-04-06 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844486', 'tblTempUsageDetail_20' ) end [2025-04-06 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844486', 'tblTempVendorCDR_20' ) start [2025-04-06 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844486', 'tblTempVendorCDR_20' ) end [2025-04-06 02:33:19] Production.INFO: ProcessCDR(1,14844486,1,1,2) [2025-04-06 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844486', 'tblTempUsageDetail_20' ) start [2025-04-06 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844486', 'tblTempUsageDetail_20' ) end [2025-04-06 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:33:22] Production.INFO: ==5958== Releasing lock... [2025-04-06 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:34:06 [end_date_ymd] => 2025-04-06 02:34:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:34:06' and `end` < '2025-04-06 02: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-04-06 02:34:19] Production.INFO: count ==836 [2025-04-06 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:34:06 - End Time 2025-04-06 02:34:06 [2025-04-06 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844491', 'tblTempUsageDetail_20' ) start [2025-04-06 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844491', 'tblTempUsageDetail_20' ) end [2025-04-06 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844491', 'tblTempVendorCDR_20' ) start [2025-04-06 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844491', 'tblTempVendorCDR_20' ) end [2025-04-06 02:34:19] Production.INFO: ProcessCDR(1,14844491,1,1,2) [2025-04-06 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844491', 'tblTempUsageDetail_20' ) start [2025-04-06 02:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844491', 'tblTempUsageDetail_20' ) end [2025-04-06 02:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:34:25] Production.INFO: ==6033== Releasing lock... [2025-04-06 02:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:34:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:35:06 [end_date_ymd] => 2025-04-06 02:35:06 [RateCDR] => 1 ) [2025-04-06 02:35: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-04-05 23:35:06' and `end` < '2025-04-06 02:35: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-04-06 02:35:19] Production.INFO: count ==838 [2025-04-06 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:35:06 - End Time 2025-04-06 02:35:06 [2025-04-06 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844496', 'tblTempUsageDetail_20' ) start [2025-04-06 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844496', 'tblTempUsageDetail_20' ) end [2025-04-06 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844496', 'tblTempVendorCDR_20' ) start [2025-04-06 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844496', 'tblTempVendorCDR_20' ) end [2025-04-06 02:35:19] Production.INFO: ProcessCDR(1,14844496,1,1,2) [2025-04-06 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844496', 'tblTempUsageDetail_20' ) start [2025-04-06 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844496', 'tblTempUsageDetail_20' ) end [2025-04-06 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:35:23] Production.INFO: ==6105== Releasing lock... [2025-04-06 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:35:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:36:06 [end_date_ymd] => 2025-04-06 02:36:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:36:06' and `end` < '2025-04-06 02: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-04-06 02:36:19] Production.INFO: count ==838 [2025-04-06 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:36:06 - End Time 2025-04-06 02:36:06 [2025-04-06 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844501', 'tblTempUsageDetail_20' ) start [2025-04-06 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844501', 'tblTempUsageDetail_20' ) end [2025-04-06 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844501', 'tblTempVendorCDR_20' ) start [2025-04-06 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844501', 'tblTempVendorCDR_20' ) end [2025-04-06 02:36:19] Production.INFO: ProcessCDR(1,14844501,1,1,2) [2025-04-06 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844501', 'tblTempUsageDetail_20' ) start [2025-04-06 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844501', 'tblTempUsageDetail_20' ) end [2025-04-06 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:36:23] Production.INFO: ==6175== Releasing lock... [2025-04-06 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:36:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:37:06 [end_date_ymd] => 2025-04-06 02:37:06 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:37:06' and `end` < '2025-04-06 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-04-06 02:37:18] Production.INFO: count ==840 [2025-04-06 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:37:06 - End Time 2025-04-06 02:37:06 [2025-04-06 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844506', 'tblTempUsageDetail_20' ) start [2025-04-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844506', 'tblTempUsageDetail_20' ) end [2025-04-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844506', 'tblTempVendorCDR_20' ) start [2025-04-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844506', 'tblTempVendorCDR_20' ) end [2025-04-06 02:37:19] Production.INFO: ProcessCDR(1,14844506,1,1,2) [2025-04-06 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844506', 'tblTempUsageDetail_20' ) start [2025-04-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844506', 'tblTempUsageDetail_20' ) end [2025-04-06 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:37:22] Production.INFO: ==6247== Releasing lock... [2025-04-06 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:38:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:38:07 [end_date_ymd] => 2025-04-06 02:38:07 [RateCDR] => 1 ) [2025-04-06 02:38: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-04-05 23:38:07' and `end` < '2025-04-06 02:38: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-04-06 02:38:19] Production.INFO: count ==842 [2025-04-06 02:38:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:38:07 - End Time 2025-04-06 02:38:07 [2025-04-06 02:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844511', 'tblTempUsageDetail_20' ) start [2025-04-06 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844511', 'tblTempUsageDetail_20' ) end [2025-04-06 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844511', 'tblTempVendorCDR_20' ) start [2025-04-06 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844511', 'tblTempVendorCDR_20' ) end [2025-04-06 02:38:20] Production.INFO: ProcessCDR(1,14844511,1,1,2) [2025-04-06 02:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844511', 'tblTempUsageDetail_20' ) start [2025-04-06 02:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844511', 'tblTempUsageDetail_20' ) end [2025-04-06 02:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:38:24] Production.INFO: ==6328== Releasing lock... [2025-04-06 02:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:38:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:39:05 [end_date_ymd] => 2025-04-06 02:39:05 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:39:05' and `end` < '2025-04-06 02: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-04-06 02:39:18] Production.INFO: count ==833 [2025-04-06 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:39:05 - End Time 2025-04-06 02:39:05 [2025-04-06 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844516', 'tblTempUsageDetail_20' ) start [2025-04-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844516', 'tblTempUsageDetail_20' ) end [2025-04-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844516', 'tblTempVendorCDR_20' ) start [2025-04-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844516', 'tblTempVendorCDR_20' ) end [2025-04-06 02:39:18] Production.INFO: ProcessCDR(1,14844516,1,1,2) [2025-04-06 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844516', 'tblTempUsageDetail_20' ) start [2025-04-06 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844516', 'tblTempUsageDetail_20' ) end [2025-04-06 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:39:22] Production.INFO: ==6400== Releasing lock... [2025-04-06 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:40:06 [end_date_ymd] => 2025-04-06 02:40:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:40:06' and `end` < '2025-04-06 02: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-04-06 02:40:19] Production.INFO: count ==846 [2025-04-06 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:40:06 - End Time 2025-04-06 02:40:06 [2025-04-06 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844522', 'tblTempUsageDetail_20' ) start [2025-04-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844522', 'tblTempUsageDetail_20' ) end [2025-04-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844522', 'tblTempVendorCDR_20' ) start [2025-04-06 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844522', 'tblTempVendorCDR_20' ) end [2025-04-06 02:40:20] Production.INFO: ProcessCDR(1,14844522,1,1,2) [2025-04-06 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844522', 'tblTempUsageDetail_20' ) start [2025-04-06 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844522', 'tblTempUsageDetail_20' ) end [2025-04-06 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:40:24] Production.INFO: ==6479== Releasing lock... [2025-04-06 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:40:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:41:05 [end_date_ymd] => 2025-04-06 02:41:05 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:41:05' and `end` < '2025-04-06 02: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-04-06 02:41:18] Production.INFO: count ==867 [2025-04-06 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:41:05 - End Time 2025-04-06 02:41:05 [2025-04-06 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844527', 'tblTempUsageDetail_20' ) start [2025-04-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844527', 'tblTempUsageDetail_20' ) end [2025-04-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844527', 'tblTempVendorCDR_20' ) start [2025-04-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844527', 'tblTempVendorCDR_20' ) end [2025-04-06 02:41:18] Production.INFO: ProcessCDR(1,14844527,1,1,2) [2025-04-06 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844527', 'tblTempUsageDetail_20' ) start [2025-04-06 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844527', 'tblTempUsageDetail_20' ) end [2025-04-06 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:41:22] Production.INFO: ==6554== Releasing lock... [2025-04-06 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:42:06 [end_date_ymd] => 2025-04-06 02:42:06 [RateCDR] => 1 ) [2025-04-06 02:42: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-04-05 23:42:06' and `end` < '2025-04-06 02:42: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-04-06 02:42:19] Production.INFO: count ==885 [2025-04-06 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:42:06 - End Time 2025-04-06 02:42:06 [2025-04-06 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844532', 'tblTempUsageDetail_20' ) start [2025-04-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844532', 'tblTempUsageDetail_20' ) end [2025-04-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844532', 'tblTempVendorCDR_20' ) start [2025-04-06 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844532', 'tblTempVendorCDR_20' ) end [2025-04-06 02:42:19] Production.INFO: ProcessCDR(1,14844532,1,1,2) [2025-04-06 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844532', 'tblTempUsageDetail_20' ) start [2025-04-06 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844532', 'tblTempUsageDetail_20' ) end [2025-04-06 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:42:23] Production.INFO: ==6627== Releasing lock... [2025-04-06 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:42:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:43:06 [end_date_ymd] => 2025-04-06 02:43:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:43:06' and `end` < '2025-04-06 02: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-04-06 02:43:19] Production.INFO: count ==885 [2025-04-06 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:43:06 - End Time 2025-04-06 02:43:06 [2025-04-06 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844537', 'tblTempUsageDetail_20' ) start [2025-04-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844537', 'tblTempUsageDetail_20' ) end [2025-04-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844537', 'tblTempVendorCDR_20' ) start [2025-04-06 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844537', 'tblTempVendorCDR_20' ) end [2025-04-06 02:43:19] Production.INFO: ProcessCDR(1,14844537,1,1,2) [2025-04-06 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844537', 'tblTempUsageDetail_20' ) start [2025-04-06 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844537', 'tblTempUsageDetail_20' ) end [2025-04-06 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:43:23] Production.INFO: ==6699== Releasing lock... [2025-04-06 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:43:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:44:06 [end_date_ymd] => 2025-04-06 02:44:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:44:06' and `end` < '2025-04-06 02: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-04-06 02:44:19] Production.INFO: count ==879 [2025-04-06 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:44:06 - End Time 2025-04-06 02:44:06 [2025-04-06 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844542', 'tblTempUsageDetail_20' ) start [2025-04-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844542', 'tblTempUsageDetail_20' ) end [2025-04-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844542', 'tblTempVendorCDR_20' ) start [2025-04-06 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844542', 'tblTempVendorCDR_20' ) end [2025-04-06 02:44:19] Production.INFO: ProcessCDR(1,14844542,1,1,2) [2025-04-06 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844542', 'tblTempUsageDetail_20' ) start [2025-04-06 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844542', 'tblTempUsageDetail_20' ) end [2025-04-06 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:44:23] Production.INFO: ==6768== Releasing lock... [2025-04-06 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:45:05 [end_date_ymd] => 2025-04-06 02:45:05 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:45:05' and `end` < '2025-04-06 02: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-04-06 02:45:18] Production.INFO: count ==885 [2025-04-06 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:45:05 - End Time 2025-04-06 02:45:05 [2025-04-06 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844547', 'tblTempUsageDetail_20' ) start [2025-04-06 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844547', 'tblTempUsageDetail_20' ) end [2025-04-06 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844547', 'tblTempVendorCDR_20' ) start [2025-04-06 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844547', 'tblTempVendorCDR_20' ) end [2025-04-06 02:45:19] Production.INFO: ProcessCDR(1,14844547,1,1,2) [2025-04-06 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844547', 'tblTempUsageDetail_20' ) start [2025-04-06 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844547', 'tblTempUsageDetail_20' ) end [2025-04-06 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:45:23] Production.INFO: ==6879== Releasing lock... [2025-04-06 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:45:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:46:06 [end_date_ymd] => 2025-04-06 02:46:06 [RateCDR] => 1 ) [2025-04-06 02:46: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-04-05 23:46:06' and `end` < '2025-04-06 02:46: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-04-06 02:46:19] Production.INFO: count ==886 [2025-04-06 02:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:46:06 - End Time 2025-04-06 02:46:06 [2025-04-06 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844552', 'tblTempUsageDetail_20' ) start [2025-04-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844552', 'tblTempUsageDetail_20' ) end [2025-04-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844552', 'tblTempVendorCDR_20' ) start [2025-04-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844552', 'tblTempVendorCDR_20' ) end [2025-04-06 02:46:19] Production.INFO: ProcessCDR(1,14844552,1,1,2) [2025-04-06 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844552', 'tblTempUsageDetail_20' ) start [2025-04-06 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844552', 'tblTempUsageDetail_20' ) end [2025-04-06 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:46:23] Production.INFO: ==6952== Releasing lock... [2025-04-06 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:46:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:47:05 [end_date_ymd] => 2025-04-06 02:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:47:05' and `end` < '2025-04-06 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-04-06 02:47:18] Production.INFO: count ==889 [2025-04-06 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:47:05 - End Time 2025-04-06 02:47:05 [2025-04-06 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844557', 'tblTempUsageDetail_20' ) start [2025-04-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844557', 'tblTempUsageDetail_20' ) end [2025-04-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844557', 'tblTempVendorCDR_20' ) start [2025-04-06 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844557', 'tblTempVendorCDR_20' ) end [2025-04-06 02:47:19] Production.INFO: ProcessCDR(1,14844557,1,1,2) [2025-04-06 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844557', 'tblTempUsageDetail_20' ) start [2025-04-06 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844557', 'tblTempUsageDetail_20' ) end [2025-04-06 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:47:23] Production.INFO: ==7022== Releasing lock... [2025-04-06 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:47:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:48:06 [end_date_ymd] => 2025-04-06 02:48:06 [RateCDR] => 1 ) [2025-04-06 02:48: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-04-05 23:48:06' and `end` < '2025-04-06 02:48: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-04-06 02:48:19] Production.INFO: count ==888 [2025-04-06 02:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:48:06 - End Time 2025-04-06 02:48:06 [2025-04-06 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844562', 'tblTempUsageDetail_20' ) start [2025-04-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844562', 'tblTempUsageDetail_20' ) end [2025-04-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844562', 'tblTempVendorCDR_20' ) start [2025-04-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844562', 'tblTempVendorCDR_20' ) end [2025-04-06 02:48:19] Production.INFO: ProcessCDR(1,14844562,1,1,2) [2025-04-06 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844562', 'tblTempUsageDetail_20' ) start [2025-04-06 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844562', 'tblTempUsageDetail_20' ) end [2025-04-06 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:48:23] Production.INFO: ==7095== Releasing lock... [2025-04-06 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:48:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:49:05 [end_date_ymd] => 2025-04-06 02:49:05 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:49:05' and `end` < '2025-04-06 02: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-04-06 02:49:18] Production.INFO: count ==884 [2025-04-06 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:49:05 - End Time 2025-04-06 02:49:05 [2025-04-06 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844567', 'tblTempUsageDetail_20' ) start [2025-04-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844567', 'tblTempUsageDetail_20' ) end [2025-04-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844567', 'tblTempVendorCDR_20' ) start [2025-04-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844567', 'tblTempVendorCDR_20' ) end [2025-04-06 02:49:18] Production.INFO: ProcessCDR(1,14844567,1,1,2) [2025-04-06 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844567', 'tblTempUsageDetail_20' ) start [2025-04-06 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844567', 'tblTempUsageDetail_20' ) end [2025-04-06 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:49:22] Production.INFO: ==7170== Releasing lock... [2025-04-06 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:50:07 [end_date_ymd] => 2025-04-06 02:50:07 [RateCDR] => 1 ) [2025-04-06 02:50: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-04-05 23:50:07' and `end` < '2025-04-06 02:50: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-04-06 02:50:20] Production.INFO: count ==900 [2025-04-06 02:50:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:50:07 - End Time 2025-04-06 02:50:07 [2025-04-06 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844573', 'tblTempUsageDetail_20' ) start [2025-04-06 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844573', 'tblTempUsageDetail_20' ) end [2025-04-06 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844573', 'tblTempVendorCDR_20' ) start [2025-04-06 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844573', 'tblTempVendorCDR_20' ) end [2025-04-06 02:50:20] Production.INFO: ProcessCDR(1,14844573,1,1,2) [2025-04-06 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844573', 'tblTempUsageDetail_20' ) start [2025-04-06 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844573', 'tblTempUsageDetail_20' ) end [2025-04-06 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:50:24] Production.INFO: ==7243== Releasing lock... [2025-04-06 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:50:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:51:05 [end_date_ymd] => 2025-04-06 02:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:51:05' and `end` < '2025-04-06 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-04-06 02:51:17] Production.INFO: count ==917 [2025-04-06 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:51:05 - End Time 2025-04-06 02:51:05 [2025-04-06 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844578', 'tblTempUsageDetail_20' ) start [2025-04-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844578', 'tblTempUsageDetail_20' ) end [2025-04-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844578', 'tblTempVendorCDR_20' ) start [2025-04-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844578', 'tblTempVendorCDR_20' ) end [2025-04-06 02:51:18] Production.INFO: ProcessCDR(1,14844578,1,1,2) [2025-04-06 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844578', 'tblTempUsageDetail_20' ) start [2025-04-06 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844578', 'tblTempUsageDetail_20' ) end [2025-04-06 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:51:22] Production.INFO: ==7319== Releasing lock... [2025-04-06 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:51:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:52:06 [end_date_ymd] => 2025-04-06 02:52:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:52:06' and `end` < '2025-04-06 02: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-04-06 02:52:19] Production.INFO: count ==936 [2025-04-06 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:52:06 - End Time 2025-04-06 02:52:06 [2025-04-06 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844583', 'tblTempUsageDetail_20' ) start [2025-04-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844583', 'tblTempUsageDetail_20' ) end [2025-04-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844583', 'tblTempVendorCDR_20' ) start [2025-04-06 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844583', 'tblTempVendorCDR_20' ) end [2025-04-06 02:52:19] Production.INFO: ProcessCDR(1,14844583,1,1,2) [2025-04-06 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844583', 'tblTempUsageDetail_20' ) start [2025-04-06 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844583', 'tblTempUsageDetail_20' ) end [2025-04-06 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:52:23] Production.INFO: ==7390== Releasing lock... [2025-04-06 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:52:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:53:05 [end_date_ymd] => 2025-04-06 02:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:53:05' and `end` < '2025-04-06 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-04-06 02:53:18] Production.INFO: count ==936 [2025-04-06 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:53:05 - End Time 2025-04-06 02:53:05 [2025-04-06 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844588', 'tblTempUsageDetail_20' ) start [2025-04-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844588', 'tblTempUsageDetail_20' ) end [2025-04-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844588', 'tblTempVendorCDR_20' ) start [2025-04-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844588', 'tblTempVendorCDR_20' ) end [2025-04-06 02:53:19] Production.INFO: ProcessCDR(1,14844588,1,1,2) [2025-04-06 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844588', 'tblTempUsageDetail_20' ) start [2025-04-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844588', 'tblTempUsageDetail_20' ) end [2025-04-06 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:53:22] Production.INFO: ==7460== Releasing lock... [2025-04-06 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:54:06 [end_date_ymd] => 2025-04-06 02:54:06 [RateCDR] => 1 ) [2025-04-06 02:54: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-04-05 23:54:06' and `end` < '2025-04-06 02:54: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-04-06 02:54:19] Production.INFO: count ==936 [2025-04-06 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:54:06 - End Time 2025-04-06 02:54:06 [2025-04-06 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844593', 'tblTempUsageDetail_20' ) start [2025-04-06 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844593', 'tblTempUsageDetail_20' ) end [2025-04-06 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844593', 'tblTempVendorCDR_20' ) start [2025-04-06 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844593', 'tblTempVendorCDR_20' ) end [2025-04-06 02:54:19] Production.INFO: ProcessCDR(1,14844593,1,1,2) [2025-04-06 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844593', 'tblTempUsageDetail_20' ) start [2025-04-06 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844593', 'tblTempUsageDetail_20' ) end [2025-04-06 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:54:23] Production.INFO: ==7539== Releasing lock... [2025-04-06 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:54:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:55:06 [end_date_ymd] => 2025-04-06 02:55:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:55:06' and `end` < '2025-04-06 02: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-04-06 02:55:20] Production.INFO: count ==937 [2025-04-06 02:55:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:55:06 - End Time 2025-04-06 02:55:06 [2025-04-06 02:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844598', 'tblTempUsageDetail_20' ) start [2025-04-06 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844598', 'tblTempUsageDetail_20' ) end [2025-04-06 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844598', 'tblTempVendorCDR_20' ) start [2025-04-06 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844598', 'tblTempVendorCDR_20' ) end [2025-04-06 02:55:20] Production.INFO: ProcessCDR(1,14844598,1,1,2) [2025-04-06 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844598', 'tblTempUsageDetail_20' ) start [2025-04-06 02:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844598', 'tblTempUsageDetail_20' ) end [2025-04-06 02:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:55:26] Production.INFO: ==7610== Releasing lock... [2025-04-06 02:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:55:26] Production.INFO: 36 MB #Memory Used# [2025-04-06 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:56:06 [end_date_ymd] => 2025-04-06 02:56:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:56:06' and `end` < '2025-04-06 02: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-04-06 02:56:19] Production.INFO: count ==939 [2025-04-06 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:56:06 - End Time 2025-04-06 02:56:06 [2025-04-06 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844603', 'tblTempUsageDetail_20' ) start [2025-04-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844603', 'tblTempUsageDetail_20' ) end [2025-04-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844603', 'tblTempVendorCDR_20' ) start [2025-04-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844603', 'tblTempVendorCDR_20' ) end [2025-04-06 02:56:19] Production.INFO: ProcessCDR(1,14844603,1,1,2) [2025-04-06 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844603', 'tblTempUsageDetail_20' ) start [2025-04-06 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844603', 'tblTempUsageDetail_20' ) end [2025-04-06 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:56:23] Production.INFO: ==7687== Releasing lock... [2025-04-06 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:56:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:57:05 [end_date_ymd] => 2025-04-06 02:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-05 23:57:05' and `end` < '2025-04-06 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-04-06 02:57:18] Production.INFO: count ==951 [2025-04-06 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 23:57:05 - End Time 2025-04-06 02:57:05 [2025-04-06 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844608', 'tblTempUsageDetail_20' ) start [2025-04-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844608', 'tblTempUsageDetail_20' ) end [2025-04-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844608', 'tblTempVendorCDR_20' ) start [2025-04-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844608', 'tblTempVendorCDR_20' ) end [2025-04-06 02:57:18] Production.INFO: ProcessCDR(1,14844608,1,1,2) [2025-04-06 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844608', 'tblTempUsageDetail_20' ) start [2025-04-06 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844608', 'tblTempUsageDetail_20' ) end [2025-04-06 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:57:22] Production.INFO: ==7760== Releasing lock... [2025-04-06 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:57:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:58:06 [end_date_ymd] => 2025-04-06 02:58:06 [RateCDR] => 1 ) [2025-04-06 02: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-04-05 23:58:06' and `end` < '2025-04-06 02: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-04-06 02:58:19] Production.INFO: count ==952 [2025-04-06 02:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 23:58:06 - End Time 2025-04-06 02:58:06 [2025-04-06 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844613', 'tblTempUsageDetail_20' ) start [2025-04-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844613', 'tblTempUsageDetail_20' ) end [2025-04-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844613', 'tblTempVendorCDR_20' ) start [2025-04-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844613', 'tblTempVendorCDR_20' ) end [2025-04-06 02:58:19] Production.INFO: ProcessCDR(1,14844613,1,1,2) [2025-04-06 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844613', 'tblTempUsageDetail_20' ) start [2025-04-06 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844613', 'tblTempUsageDetail_20' ) end [2025-04-06 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:58:23] Production.INFO: ==7833== Releasing lock... [2025-04-06 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:58:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 02:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 23:59:07 [end_date_ymd] => 2025-04-06 02:59:07 [RateCDR] => 1 ) [2025-04-06 02:59: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-04-05 23:59:07' and `end` < '2025-04-06 02:59: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-04-06 02:59:19] Production.INFO: count ==963 [2025-04-06 02:59:20] Production.ERROR: pbx CDR StartTime 2025-04-05 23:59:07 - End Time 2025-04-06 02:59:07 [2025-04-06 02:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844618', 'tblTempUsageDetail_20' ) start [2025-04-06 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844618', 'tblTempUsageDetail_20' ) end [2025-04-06 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844618', 'tblTempVendorCDR_20' ) start [2025-04-06 02:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844618', 'tblTempVendorCDR_20' ) end [2025-04-06 02:59:20] Production.INFO: ProcessCDR(1,14844618,1,1,2) [2025-04-06 02:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 02:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 02:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844618', 'tblTempUsageDetail_20' ) start [2025-04-06 02:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844618', 'tblTempUsageDetail_20' ) end [2025-04-06 02:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 02:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 02:59:25] Production.INFO: ==7904== Releasing lock... [2025-04-06 02:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 02:59:25] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:00:06 [end_date_ymd] => 2025-04-06 03:00:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:00:06' and `end` < '2025-04-06 03: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-04-06 03:00:19] Production.INFO: count ==980 [2025-04-06 03:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:00:06 - End Time 2025-04-06 03:00:06 [2025-04-06 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844624', 'tblTempUsageDetail_20' ) start [2025-04-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844624', 'tblTempUsageDetail_20' ) end [2025-04-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844624', 'tblTempVendorCDR_20' ) start [2025-04-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844624', 'tblTempVendorCDR_20' ) end [2025-04-06 03:00:20] Production.INFO: ProcessCDR(1,14844624,1,1,2) [2025-04-06 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844624', 'tblTempUsageDetail_20' ) start [2025-04-06 03:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844624', 'tblTempUsageDetail_20' ) end [2025-04-06 03:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:00:25] Production.INFO: ==7982== Releasing lock... [2025-04-06 03:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:00:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:01:06 [end_date_ymd] => 2025-04-06 03:01:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:01:06' and `end` < '2025-04-06 03: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-04-06 03:01:19] Production.INFO: count ==986 [2025-04-06 03:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:01:06 - End Time 2025-04-06 03:01:06 [2025-04-06 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844629', 'tblTempUsageDetail_20' ) start [2025-04-06 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844629', 'tblTempUsageDetail_20' ) end [2025-04-06 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844629', 'tblTempVendorCDR_20' ) start [2025-04-06 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844629', 'tblTempVendorCDR_20' ) end [2025-04-06 03:01:19] Production.INFO: ProcessCDR(1,14844629,1,1,2) [2025-04-06 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844629', 'tblTempUsageDetail_20' ) start [2025-04-06 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844629', 'tblTempUsageDetail_20' ) end [2025-04-06 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:01:23] Production.INFO: ==8107== Releasing lock... [2025-04-06 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:01:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:02:06 [end_date_ymd] => 2025-04-06 03:02:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:02:06' and `end` < '2025-04-06 03: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-04-06 03:02:19] Production.INFO: count ==990 [2025-04-06 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:02:06 - End Time 2025-04-06 03:02:06 [2025-04-06 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844634', 'tblTempUsageDetail_20' ) start [2025-04-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844634', 'tblTempUsageDetail_20' ) end [2025-04-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844634', 'tblTempVendorCDR_20' ) start [2025-04-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844634', 'tblTempVendorCDR_20' ) end [2025-04-06 03:02:19] Production.INFO: ProcessCDR(1,14844634,1,1,2) [2025-04-06 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844634', 'tblTempUsageDetail_20' ) start [2025-04-06 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844634', 'tblTempUsageDetail_20' ) end [2025-04-06 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:02:23] Production.INFO: ==8255== Releasing lock... [2025-04-06 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:02:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:03:05 [end_date_ymd] => 2025-04-06 03:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:03:05' and `end` < '2025-04-06 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-04-06 03:03:18] Production.INFO: count ==1002 [2025-04-06 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:03:05 - End Time 2025-04-06 03:03:05 [2025-04-06 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844639', 'tblTempUsageDetail_20' ) start [2025-04-06 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844639', 'tblTempUsageDetail_20' ) end [2025-04-06 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844639', 'tblTempVendorCDR_20' ) start [2025-04-06 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844639', 'tblTempVendorCDR_20' ) end [2025-04-06 03:03:18] Production.INFO: ProcessCDR(1,14844639,1,1,2) [2025-04-06 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844639', 'tblTempUsageDetail_20' ) start [2025-04-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844639', 'tblTempUsageDetail_20' ) end [2025-04-06 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:03:22] Production.INFO: ==8322== Releasing lock... [2025-04-06 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:04:05 [end_date_ymd] => 2025-04-06 03:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:04:05' and `end` < '2025-04-06 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-04-06 03:04:18] Production.INFO: count ==1020 [2025-04-06 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:04:05 - End Time 2025-04-06 03:04:05 [2025-04-06 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844644', 'tblTempUsageDetail_20' ) start [2025-04-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844644', 'tblTempUsageDetail_20' ) end [2025-04-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844644', 'tblTempVendorCDR_20' ) start [2025-04-06 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844644', 'tblTempVendorCDR_20' ) end [2025-04-06 03:04:19] Production.INFO: ProcessCDR(1,14844644,1,1,2) [2025-04-06 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844644', 'tblTempUsageDetail_20' ) start [2025-04-06 03:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844644', 'tblTempUsageDetail_20' ) end [2025-04-06 03:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:04:24] Production.INFO: ==8392== Releasing lock... [2025-04-06 03:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:04:24] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:05:05 [end_date_ymd] => 2025-04-06 03:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:05:05' and `end` < '2025-04-06 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-04-06 03:05:18] Production.INFO: count ==1027 [2025-04-06 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:05:05 - End Time 2025-04-06 03:05:05 [2025-04-06 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844649', 'tblTempUsageDetail_20' ) start [2025-04-06 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844649', 'tblTempUsageDetail_20' ) end [2025-04-06 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844649', 'tblTempVendorCDR_20' ) start [2025-04-06 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844649', 'tblTempVendorCDR_20' ) end [2025-04-06 03:05:19] Production.INFO: ProcessCDR(1,14844649,1,1,2) [2025-04-06 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844649', 'tblTempUsageDetail_20' ) start [2025-04-06 03:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844649', 'tblTempUsageDetail_20' ) end [2025-04-06 03:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:05:24] Production.INFO: ==8461== Releasing lock... [2025-04-06 03:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:05:24] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:06:06 [end_date_ymd] => 2025-04-06 03:06:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:06:06' and `end` < '2025-04-06 03: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-04-06 03:06:19] Production.INFO: count ==1036 [2025-04-06 03:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:06:06 - End Time 2025-04-06 03:06:06 [2025-04-06 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844654', 'tblTempUsageDetail_20' ) start [2025-04-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844654', 'tblTempUsageDetail_20' ) end [2025-04-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844654', 'tblTempVendorCDR_20' ) start [2025-04-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844654', 'tblTempVendorCDR_20' ) end [2025-04-06 03:06:19] Production.INFO: ProcessCDR(1,14844654,1,1,2) [2025-04-06 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844654', 'tblTempUsageDetail_20' ) start [2025-04-06 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844654', 'tblTempUsageDetail_20' ) end [2025-04-06 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:06:22] Production.INFO: ==8607== Releasing lock... [2025-04-06 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:07:05 [end_date_ymd] => 2025-04-06 03:07:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:07:05' and `end` < '2025-04-06 03: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-04-06 03:07:18] Production.INFO: count ==1037 [2025-04-06 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:07:05 - End Time 2025-04-06 03:07:05 [2025-04-06 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844659', 'tblTempUsageDetail_20' ) start [2025-04-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844659', 'tblTempUsageDetail_20' ) end [2025-04-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844659', 'tblTempVendorCDR_20' ) start [2025-04-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844659', 'tblTempVendorCDR_20' ) end [2025-04-06 03:07:18] Production.INFO: ProcessCDR(1,14844659,1,1,2) [2025-04-06 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844659', 'tblTempUsageDetail_20' ) start [2025-04-06 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844659', 'tblTempUsageDetail_20' ) end [2025-04-06 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:07:22] Production.INFO: ==8678== Releasing lock... [2025-04-06 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:08:05 [end_date_ymd] => 2025-04-06 03:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:08:05' and `end` < '2025-04-06 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-04-06 03:08:18] Production.INFO: count ==1046 [2025-04-06 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:08:05 - End Time 2025-04-06 03:08:05 [2025-04-06 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844664', 'tblTempUsageDetail_20' ) start [2025-04-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844664', 'tblTempUsageDetail_20' ) end [2025-04-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844664', 'tblTempVendorCDR_20' ) start [2025-04-06 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844664', 'tblTempVendorCDR_20' ) end [2025-04-06 03:08:19] Production.INFO: ProcessCDR(1,14844664,1,1,2) [2025-04-06 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844664', 'tblTempUsageDetail_20' ) start [2025-04-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844664', 'tblTempUsageDetail_20' ) end [2025-04-06 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:08:22] Production.INFO: ==8751== Releasing lock... [2025-04-06 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:08:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:09:05 [end_date_ymd] => 2025-04-06 03:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:09:05' and `end` < '2025-04-06 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-04-06 03:09:18] Production.INFO: count ==1039 [2025-04-06 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:09:05 - End Time 2025-04-06 03:09:05 [2025-04-06 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844669', 'tblTempUsageDetail_20' ) start [2025-04-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844669', 'tblTempUsageDetail_20' ) end [2025-04-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844669', 'tblTempVendorCDR_20' ) start [2025-04-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844669', 'tblTempVendorCDR_20' ) end [2025-04-06 03:09:18] Production.INFO: ProcessCDR(1,14844669,1,1,2) [2025-04-06 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844669', 'tblTempUsageDetail_20' ) start [2025-04-06 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844669', 'tblTempUsageDetail_20' ) end [2025-04-06 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:09:23] Production.INFO: ==8901== Releasing lock... [2025-04-06 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:09:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:10:06 [end_date_ymd] => 2025-04-06 03:10:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:10:06' and `end` < '2025-04-06 03: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-04-06 03:10:19] Production.INFO: count ==1039 [2025-04-06 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:10:06 - End Time 2025-04-06 03:10:06 [2025-04-06 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844675', 'tblTempUsageDetail_20' ) start [2025-04-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844675', 'tblTempUsageDetail_20' ) end [2025-04-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844675', 'tblTempVendorCDR_20' ) start [2025-04-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844675', 'tblTempVendorCDR_20' ) end [2025-04-06 03:10:19] Production.INFO: ProcessCDR(1,14844675,1,1,2) [2025-04-06 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844675', 'tblTempUsageDetail_20' ) start [2025-04-06 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844675', 'tblTempUsageDetail_20' ) end [2025-04-06 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:10:23] Production.INFO: ==8977== Releasing lock... [2025-04-06 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:10:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:11:06 [end_date_ymd] => 2025-04-06 03:11:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:11:06' and `end` < '2025-04-06 03: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-04-06 03:11:19] Production.INFO: count ==1032 [2025-04-06 03:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:11:06 - End Time 2025-04-06 03:11:06 [2025-04-06 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844680', 'tblTempUsageDetail_20' ) start [2025-04-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844680', 'tblTempUsageDetail_20' ) end [2025-04-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844680', 'tblTempVendorCDR_20' ) start [2025-04-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844680', 'tblTempVendorCDR_20' ) end [2025-04-06 03:11:19] Production.INFO: ProcessCDR(1,14844680,1,1,2) [2025-04-06 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844680', 'tblTempUsageDetail_20' ) start [2025-04-06 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844680', 'tblTempUsageDetail_20' ) end [2025-04-06 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:11:23] Production.INFO: ==9050== Releasing lock... [2025-04-06 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:11:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:12:06 [end_date_ymd] => 2025-04-06 03:12:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:12:06' and `end` < '2025-04-06 03: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-04-06 03:12:18] Production.INFO: count ==1028 [2025-04-06 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:12:06 - End Time 2025-04-06 03:12:06 [2025-04-06 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844682', 'tblTempUsageDetail_20' ) start [2025-04-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844682', 'tblTempUsageDetail_20' ) end [2025-04-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844682', 'tblTempVendorCDR_20' ) start [2025-04-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844682', 'tblTempVendorCDR_20' ) end [2025-04-06 03:12:19] Production.INFO: ProcessCDR(1,14844682,1,1,2) [2025-04-06 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844682', 'tblTempUsageDetail_20' ) start [2025-04-06 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844682', 'tblTempUsageDetail_20' ) end [2025-04-06 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:12:22] Production.INFO: ==9121== Releasing lock... [2025-04-06 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:13:05 [end_date_ymd] => 2025-04-06 03:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:13:05' and `end` < '2025-04-06 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-04-06 03:13:18] Production.INFO: count ==1020 [2025-04-06 03:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:13:05 - End Time 2025-04-06 03:13:05 [2025-04-06 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844690', 'tblTempUsageDetail_20' ) start [2025-04-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844690', 'tblTempUsageDetail_20' ) end [2025-04-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844690', 'tblTempVendorCDR_20' ) start [2025-04-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844690', 'tblTempVendorCDR_20' ) end [2025-04-06 03:13:19] Production.INFO: ProcessCDR(1,14844690,1,1,2) [2025-04-06 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844690', 'tblTempUsageDetail_20' ) start [2025-04-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844690', 'tblTempUsageDetail_20' ) end [2025-04-06 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:13:22] Production.INFO: ==9271== Releasing lock... [2025-04-06 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:14:05 [end_date_ymd] => 2025-04-06 03:14:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:14:05' and `end` < '2025-04-06 03: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-04-06 03:14:18] Production.INFO: count ==1018 [2025-04-06 03:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:14:05 - End Time 2025-04-06 03:14:05 [2025-04-06 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844695', 'tblTempUsageDetail_20' ) start [2025-04-06 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844695', 'tblTempUsageDetail_20' ) end [2025-04-06 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844695', 'tblTempVendorCDR_20' ) start [2025-04-06 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844695', 'tblTempVendorCDR_20' ) end [2025-04-06 03:14:19] Production.INFO: ProcessCDR(1,14844695,1,1,2) [2025-04-06 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844695', 'tblTempUsageDetail_20' ) start [2025-04-06 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844695', 'tblTempUsageDetail_20' ) end [2025-04-06 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:14:22] Production.INFO: ==9342== Releasing lock... [2025-04-06 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:14:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:15:05 [end_date_ymd] => 2025-04-06 03:15:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:15:05' and `end` < '2025-04-06 03: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-04-06 03:15:19] Production.INFO: count ==1015 [2025-04-06 03:15:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:15:05 - End Time 2025-04-06 03:15:05 [2025-04-06 03:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844700', 'tblTempUsageDetail_20' ) start [2025-04-06 03:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844700', 'tblTempUsageDetail_20' ) end [2025-04-06 03:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844700', 'tblTempVendorCDR_20' ) start [2025-04-06 03:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844700', 'tblTempVendorCDR_20' ) end [2025-04-06 03:15:20] Production.INFO: ProcessCDR(1,14844700,1,1,2) [2025-04-06 03:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844700', 'tblTempUsageDetail_20' ) start [2025-04-06 03:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844700', 'tblTempUsageDetail_20' ) end [2025-04-06 03:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:15:24] Production.INFO: ==9415== Releasing lock... [2025-04-06 03:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:15:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:16:05 [end_date_ymd] => 2025-04-06 03:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:16:05' and `end` < '2025-04-06 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-04-06 03:16:18] Production.INFO: count ==1013 [2025-04-06 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:16:05 - End Time 2025-04-06 03:16:05 [2025-04-06 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844705', 'tblTempUsageDetail_20' ) start [2025-04-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844705', 'tblTempUsageDetail_20' ) end [2025-04-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844705', 'tblTempVendorCDR_20' ) start [2025-04-06 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844705', 'tblTempVendorCDR_20' ) end [2025-04-06 03:16:19] Production.INFO: ProcessCDR(1,14844705,1,1,2) [2025-04-06 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844705', 'tblTempUsageDetail_20' ) start [2025-04-06 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844705', 'tblTempUsageDetail_20' ) end [2025-04-06 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:16:22] Production.INFO: ==9488== Releasing lock... [2025-04-06 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:17:06 [end_date_ymd] => 2025-04-06 03:17:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:17:06' and `end` < '2025-04-06 03: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-04-06 03:17:19] Production.INFO: count ==1010 [2025-04-06 03:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:17:06 - End Time 2025-04-06 03:17:06 [2025-04-06 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844710', 'tblTempUsageDetail_20' ) start [2025-04-06 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844710', 'tblTempUsageDetail_20' ) end [2025-04-06 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844710', 'tblTempVendorCDR_20' ) start [2025-04-06 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844710', 'tblTempVendorCDR_20' ) end [2025-04-06 03:17:19] Production.INFO: ProcessCDR(1,14844710,1,1,2) [2025-04-06 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844710', 'tblTempUsageDetail_20' ) start [2025-04-06 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844710', 'tblTempUsageDetail_20' ) end [2025-04-06 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:17:22] Production.INFO: ==9644== Releasing lock... [2025-04-06 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:18:05 [end_date_ymd] => 2025-04-06 03:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:18:05' and `end` < '2025-04-06 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-04-06 03:18:18] Production.INFO: count ==1011 [2025-04-06 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:18:05 - End Time 2025-04-06 03:18:05 [2025-04-06 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844715', 'tblTempUsageDetail_20' ) start [2025-04-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844715', 'tblTempUsageDetail_20' ) end [2025-04-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844715', 'tblTempVendorCDR_20' ) start [2025-04-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844715', 'tblTempVendorCDR_20' ) end [2025-04-06 03:18:18] Production.INFO: ProcessCDR(1,14844715,1,1,2) [2025-04-06 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844715', 'tblTempUsageDetail_20' ) start [2025-04-06 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844715', 'tblTempUsageDetail_20' ) end [2025-04-06 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:18:22] Production.INFO: ==9754== Releasing lock... [2025-04-06 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:18:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:19:05 [end_date_ymd] => 2025-04-06 03:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:19:05' and `end` < '2025-04-06 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-04-06 03:19:18] Production.INFO: count ==1009 [2025-04-06 03:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:19:05 - End Time 2025-04-06 03:19:05 [2025-04-06 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844720', 'tblTempUsageDetail_20' ) start [2025-04-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844720', 'tblTempUsageDetail_20' ) end [2025-04-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844720', 'tblTempVendorCDR_20' ) start [2025-04-06 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844720', 'tblTempVendorCDR_20' ) end [2025-04-06 03:19:19] Production.INFO: ProcessCDR(1,14844720,1,1,2) [2025-04-06 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844720', 'tblTempUsageDetail_20' ) start [2025-04-06 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844720', 'tblTempUsageDetail_20' ) end [2025-04-06 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:19:22] Production.INFO: ==9831== Releasing lock... [2025-04-06 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:19:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:20:06 [end_date_ymd] => 2025-04-06 03:20:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:20:06' and `end` < '2025-04-06 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-04-06 03:20:19] Production.INFO: count ==994 [2025-04-06 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:20:06 - End Time 2025-04-06 03:20:06 [2025-04-06 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844726', 'tblTempUsageDetail_20' ) start [2025-04-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844726', 'tblTempUsageDetail_20' ) end [2025-04-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844726', 'tblTempVendorCDR_20' ) start [2025-04-06 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844726', 'tblTempVendorCDR_20' ) end [2025-04-06 03:20:19] Production.INFO: ProcessCDR(1,14844726,1,1,2) [2025-04-06 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844726', 'tblTempUsageDetail_20' ) start [2025-04-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844726', 'tblTempUsageDetail_20' ) end [2025-04-06 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:20:23] Production.INFO: ==9904== Releasing lock... [2025-04-06 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:21:05 [end_date_ymd] => 2025-04-06 03:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:21:05' and `end` < '2025-04-06 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-04-06 03:21:18] Production.INFO: count ==978 [2025-04-06 03:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:21:05 - End Time 2025-04-06 03:21:05 [2025-04-06 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844731', 'tblTempUsageDetail_20' ) start [2025-04-06 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844731', 'tblTempUsageDetail_20' ) end [2025-04-06 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844731', 'tblTempVendorCDR_20' ) start [2025-04-06 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844731', 'tblTempVendorCDR_20' ) end [2025-04-06 03:21:19] Production.INFO: ProcessCDR(1,14844731,1,1,2) [2025-04-06 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844731', 'tblTempUsageDetail_20' ) start [2025-04-06 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844731', 'tblTempUsageDetail_20' ) end [2025-04-06 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:21:22] Production.INFO: ==9981== Releasing lock... [2025-04-06 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:21:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:22:06 [end_date_ymd] => 2025-04-06 03:22:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:22:06' and `end` < '2025-04-06 03: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-04-06 03:22:19] Production.INFO: count ==977 [2025-04-06 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:22:06 - End Time 2025-04-06 03:22:06 [2025-04-06 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844736', 'tblTempUsageDetail_20' ) start [2025-04-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844736', 'tblTempUsageDetail_20' ) end [2025-04-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844736', 'tblTempVendorCDR_20' ) start [2025-04-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844736', 'tblTempVendorCDR_20' ) end [2025-04-06 03:22:19] Production.INFO: ProcessCDR(1,14844736,1,1,2) [2025-04-06 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844736', 'tblTempUsageDetail_20' ) start [2025-04-06 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844736', 'tblTempUsageDetail_20' ) end [2025-04-06 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:22:22] Production.INFO: ==10057== Releasing lock... [2025-04-06 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:22:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:23:05 [end_date_ymd] => 2025-04-06 03:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:23:05' and `end` < '2025-04-06 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-04-06 03:23:18] Production.INFO: count ==977 [2025-04-06 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:23:05 - End Time 2025-04-06 03:23:05 [2025-04-06 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844741', 'tblTempUsageDetail_20' ) start [2025-04-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844741', 'tblTempUsageDetail_20' ) end [2025-04-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844741', 'tblTempVendorCDR_20' ) start [2025-04-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844741', 'tblTempVendorCDR_20' ) end [2025-04-06 03:23:18] Production.INFO: ProcessCDR(1,14844741,1,1,2) [2025-04-06 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844741', 'tblTempUsageDetail_20' ) start [2025-04-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844741', 'tblTempUsageDetail_20' ) end [2025-04-06 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:23:22] Production.INFO: ==10129== Releasing lock... [2025-04-06 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:23:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:24:05 [end_date_ymd] => 2025-04-06 03:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:24:05' and `end` < '2025-04-06 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-04-06 03:24:18] Production.INFO: count ==981 [2025-04-06 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:24:05 - End Time 2025-04-06 03:24:05 [2025-04-06 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844746', 'tblTempUsageDetail_20' ) start [2025-04-06 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844746', 'tblTempUsageDetail_20' ) end [2025-04-06 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844746', 'tblTempVendorCDR_20' ) start [2025-04-06 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844746', 'tblTempVendorCDR_20' ) end [2025-04-06 03:24:19] Production.INFO: ProcessCDR(1,14844746,1,1,2) [2025-04-06 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844746', 'tblTempUsageDetail_20' ) start [2025-04-06 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844746', 'tblTempUsageDetail_20' ) end [2025-04-06 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:24:22] Production.INFO: ==10206== Releasing lock... [2025-04-06 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:25:05 [end_date_ymd] => 2025-04-06 03:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:25:05' and `end` < '2025-04-06 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-04-06 03:25:18] Production.INFO: count ==981 [2025-04-06 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:25:05 - End Time 2025-04-06 03:25:05 [2025-04-06 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844751', 'tblTempUsageDetail_20' ) start [2025-04-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844751', 'tblTempUsageDetail_20' ) end [2025-04-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844751', 'tblTempVendorCDR_20' ) start [2025-04-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844751', 'tblTempVendorCDR_20' ) end [2025-04-06 03:25:18] Production.INFO: ProcessCDR(1,14844751,1,1,2) [2025-04-06 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844751', 'tblTempUsageDetail_20' ) start [2025-04-06 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844751', 'tblTempUsageDetail_20' ) end [2025-04-06 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:25:22] Production.INFO: ==10287== Releasing lock... [2025-04-06 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:25:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:26:05 [end_date_ymd] => 2025-04-06 03:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:26:05' and `end` < '2025-04-06 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-04-06 03:26:18] Production.INFO: count ==989 [2025-04-06 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:26:05 - End Time 2025-04-06 03:26:05 [2025-04-06 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844756', 'tblTempUsageDetail_20' ) start [2025-04-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844756', 'tblTempUsageDetail_20' ) end [2025-04-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844756', 'tblTempVendorCDR_20' ) start [2025-04-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844756', 'tblTempVendorCDR_20' ) end [2025-04-06 03:26:18] Production.INFO: ProcessCDR(1,14844756,1,1,2) [2025-04-06 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844756', 'tblTempUsageDetail_20' ) start [2025-04-06 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844756', 'tblTempUsageDetail_20' ) end [2025-04-06 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:26:22] Production.INFO: ==10365== Releasing lock... [2025-04-06 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:27:05 [end_date_ymd] => 2025-04-06 03:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:27:05' and `end` < '2025-04-06 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-04-06 03:27:18] Production.INFO: count ==989 [2025-04-06 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:27:05 - End Time 2025-04-06 03:27:05 [2025-04-06 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844761', 'tblTempUsageDetail_20' ) start [2025-04-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844761', 'tblTempUsageDetail_20' ) end [2025-04-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844761', 'tblTempVendorCDR_20' ) start [2025-04-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844761', 'tblTempVendorCDR_20' ) end [2025-04-06 03:27:18] Production.INFO: ProcessCDR(1,14844761,1,1,2) [2025-04-06 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844761', 'tblTempUsageDetail_20' ) start [2025-04-06 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844761', 'tblTempUsageDetail_20' ) end [2025-04-06 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:27:22] Production.INFO: ==10436== Releasing lock... [2025-04-06 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:27:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:28:05 [end_date_ymd] => 2025-04-06 03:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:28:05' and `end` < '2025-04-06 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-04-06 03:28:18] Production.INFO: count ==987 [2025-04-06 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:28:05 - End Time 2025-04-06 03:28:05 [2025-04-06 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844766', 'tblTempUsageDetail_20' ) start [2025-04-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844766', 'tblTempUsageDetail_20' ) end [2025-04-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844766', 'tblTempVendorCDR_20' ) start [2025-04-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844766', 'tblTempVendorCDR_20' ) end [2025-04-06 03:28:18] Production.INFO: ProcessCDR(1,14844766,1,1,2) [2025-04-06 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844766', 'tblTempUsageDetail_20' ) start [2025-04-06 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844766', 'tblTempUsageDetail_20' ) end [2025-04-06 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:28:22] Production.INFO: ==10514== Releasing lock... [2025-04-06 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:29:05 [end_date_ymd] => 2025-04-06 03:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:29:05' and `end` < '2025-04-06 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-04-06 03:29:18] Production.INFO: count ==992 [2025-04-06 03:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:29:05 - End Time 2025-04-06 03:29:05 [2025-04-06 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844771', 'tblTempUsageDetail_20' ) start [2025-04-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844771', 'tblTempUsageDetail_20' ) end [2025-04-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844771', 'tblTempVendorCDR_20' ) start [2025-04-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844771', 'tblTempVendorCDR_20' ) end [2025-04-06 03:29:19] Production.INFO: ProcessCDR(1,14844771,1,1,2) [2025-04-06 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844771', 'tblTempUsageDetail_20' ) start [2025-04-06 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844771', 'tblTempUsageDetail_20' ) end [2025-04-06 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:29:22] Production.INFO: ==10588== Releasing lock... [2025-04-06 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:29:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:30:06 [end_date_ymd] => 2025-04-06 03:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:30:06' and `end` < '2025-04-06 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-04-06 03:30:19] Production.INFO: count ==995 [2025-04-06 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:30:06 - End Time 2025-04-06 03:30:06 [2025-04-06 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844776', 'tblTempUsageDetail_20' ) start [2025-04-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844776', 'tblTempUsageDetail_20' ) end [2025-04-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844776', 'tblTempVendorCDR_20' ) start [2025-04-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844776', 'tblTempVendorCDR_20' ) end [2025-04-06 03:30:19] Production.INFO: ProcessCDR(1,14844776,1,1,2) [2025-04-06 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844776', 'tblTempUsageDetail_20' ) start [2025-04-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844776', 'tblTempUsageDetail_20' ) end [2025-04-06 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:30:22] Production.INFO: ==10668== Releasing lock... [2025-04-06 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:30:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:31:06 [end_date_ymd] => 2025-04-06 03:31:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:31:06' and `end` < '2025-04-06 03: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-04-06 03:31:19] Production.INFO: count ==977 [2025-04-06 03:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:31:06 - End Time 2025-04-06 03:31:06 [2025-04-06 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844782', 'tblTempUsageDetail_20' ) start [2025-04-06 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844782', 'tblTempUsageDetail_20' ) end [2025-04-06 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844782', 'tblTempVendorCDR_20' ) start [2025-04-06 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844782', 'tblTempVendorCDR_20' ) end [2025-04-06 03:31:19] Production.INFO: ProcessCDR(1,14844782,1,1,2) [2025-04-06 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844782', 'tblTempUsageDetail_20' ) start [2025-04-06 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844782', 'tblTempUsageDetail_20' ) end [2025-04-06 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:31:23] Production.INFO: ==10770== Releasing lock... [2025-04-06 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:31:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:32:05 [end_date_ymd] => 2025-04-06 03:32:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:32:05' and `end` < '2025-04-06 03: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-04-06 03:32:19] Production.INFO: count ==980 [2025-04-06 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:32:05 - End Time 2025-04-06 03:32:05 [2025-04-06 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844787', 'tblTempUsageDetail_20' ) start [2025-04-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844787', 'tblTempUsageDetail_20' ) end [2025-04-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844787', 'tblTempVendorCDR_20' ) start [2025-04-06 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844787', 'tblTempVendorCDR_20' ) end [2025-04-06 03:32:19] Production.INFO: ProcessCDR(1,14844787,1,1,2) [2025-04-06 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844787', 'tblTempUsageDetail_20' ) start [2025-04-06 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844787', 'tblTempUsageDetail_20' ) end [2025-04-06 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:32:23] Production.INFO: ==10871== Releasing lock... [2025-04-06 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:32:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:33:05 [end_date_ymd] => 2025-04-06 03:33:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:33:05' and `end` < '2025-04-06 03: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-04-06 03:33:18] Production.INFO: count ==992 [2025-04-06 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:33:05 - End Time 2025-04-06 03:33:05 [2025-04-06 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844792', 'tblTempUsageDetail_20' ) start [2025-04-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844792', 'tblTempUsageDetail_20' ) end [2025-04-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844792', 'tblTempVendorCDR_20' ) start [2025-04-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844792', 'tblTempVendorCDR_20' ) end [2025-04-06 03:33:18] Production.INFO: ProcessCDR(1,14844792,1,1,2) [2025-04-06 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844792', 'tblTempUsageDetail_20' ) start [2025-04-06 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844792', 'tblTempUsageDetail_20' ) end [2025-04-06 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:33:22] Production.INFO: ==10987== Releasing lock... [2025-04-06 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:34:05 [end_date_ymd] => 2025-04-06 03:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:34:05' and `end` < '2025-04-06 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-04-06 03:34:18] Production.INFO: count ==995 [2025-04-06 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:34:05 - End Time 2025-04-06 03:34:05 [2025-04-06 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844797', 'tblTempUsageDetail_20' ) start [2025-04-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844797', 'tblTempUsageDetail_20' ) end [2025-04-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844797', 'tblTempVendorCDR_20' ) start [2025-04-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844797', 'tblTempVendorCDR_20' ) end [2025-04-06 03:34:18] Production.INFO: ProcessCDR(1,14844797,1,1,2) [2025-04-06 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844797', 'tblTempUsageDetail_20' ) start [2025-04-06 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844797', 'tblTempUsageDetail_20' ) end [2025-04-06 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:34:22] Production.INFO: ==11063== Releasing lock... [2025-04-06 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:35:05 [end_date_ymd] => 2025-04-06 03:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:35:05' and `end` < '2025-04-06 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-04-06 03:35:18] Production.INFO: count ==996 [2025-04-06 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:35:05 - End Time 2025-04-06 03:35:05 [2025-04-06 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844802', 'tblTempUsageDetail_20' ) start [2025-04-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844802', 'tblTempUsageDetail_20' ) end [2025-04-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844802', 'tblTempVendorCDR_20' ) start [2025-04-06 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844802', 'tblTempVendorCDR_20' ) end [2025-04-06 03:35:18] Production.INFO: ProcessCDR(1,14844802,1,1,2) [2025-04-06 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844802', 'tblTempUsageDetail_20' ) start [2025-04-06 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844802', 'tblTempUsageDetail_20' ) end [2025-04-06 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:35:22] Production.INFO: ==11137== Releasing lock... [2025-04-06 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:35:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:36:05 [end_date_ymd] => 2025-04-06 03:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:36:05' and `end` < '2025-04-06 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-04-06 03:36:19] Production.INFO: count ==1002 [2025-04-06 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:36:05 - End Time 2025-04-06 03:36:05 [2025-04-06 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844807', 'tblTempUsageDetail_20' ) start [2025-04-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844807', 'tblTempUsageDetail_20' ) end [2025-04-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844807', 'tblTempVendorCDR_20' ) start [2025-04-06 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844807', 'tblTempVendorCDR_20' ) end [2025-04-06 03:36:19] Production.INFO: ProcessCDR(1,14844807,1,1,2) [2025-04-06 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844807', 'tblTempUsageDetail_20' ) start [2025-04-06 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844807', 'tblTempUsageDetail_20' ) end [2025-04-06 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:36:22] Production.INFO: ==11212== Releasing lock... [2025-04-06 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:36:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:37:06 [end_date_ymd] => 2025-04-06 03:37:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:37:06' and `end` < '2025-04-06 03: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-04-06 03:37:20] Production.INFO: count ==1008 [2025-04-06 03:37:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:37:06 - End Time 2025-04-06 03:37:06 [2025-04-06 03:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844812', 'tblTempUsageDetail_20' ) start [2025-04-06 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844812', 'tblTempUsageDetail_20' ) end [2025-04-06 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844812', 'tblTempVendorCDR_20' ) start [2025-04-06 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844812', 'tblTempVendorCDR_20' ) end [2025-04-06 03:37:20] Production.INFO: ProcessCDR(1,14844812,1,1,2) [2025-04-06 03:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844812', 'tblTempUsageDetail_20' ) start [2025-04-06 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844812', 'tblTempUsageDetail_20' ) end [2025-04-06 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:37:23] Production.INFO: ==11297== Releasing lock... [2025-04-06 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:37:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:38:05 [end_date_ymd] => 2025-04-06 03:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:38:05' and `end` < '2025-04-06 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-04-06 03:38:18] Production.INFO: count ==1019 [2025-04-06 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:38:05 - End Time 2025-04-06 03:38:05 [2025-04-06 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844817', 'tblTempUsageDetail_20' ) start [2025-04-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844817', 'tblTempUsageDetail_20' ) end [2025-04-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844817', 'tblTempVendorCDR_20' ) start [2025-04-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844817', 'tblTempVendorCDR_20' ) end [2025-04-06 03:38:18] Production.INFO: ProcessCDR(1,14844817,1,1,2) [2025-04-06 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844817', 'tblTempUsageDetail_20' ) start [2025-04-06 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844817', 'tblTempUsageDetail_20' ) end [2025-04-06 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:38:22] Production.INFO: ==11379== Releasing lock... [2025-04-06 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:39:06 [end_date_ymd] => 2025-04-06 03:39:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:39:06' and `end` < '2025-04-06 03: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-04-06 03:39:19] Production.INFO: count ==1023 [2025-04-06 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:39:06 - End Time 2025-04-06 03:39:06 [2025-04-06 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844822', 'tblTempUsageDetail_20' ) start [2025-04-06 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844822', 'tblTempUsageDetail_20' ) end [2025-04-06 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844822', 'tblTempVendorCDR_20' ) start [2025-04-06 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844822', 'tblTempVendorCDR_20' ) end [2025-04-06 03:39:19] Production.INFO: ProcessCDR(1,14844822,1,1,2) [2025-04-06 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844822', 'tblTempUsageDetail_20' ) start [2025-04-06 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844822', 'tblTempUsageDetail_20' ) end [2025-04-06 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:39:22] Production.INFO: ==11452== Releasing lock... [2025-04-06 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:39:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:40:06 [end_date_ymd] => 2025-04-06 03:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:40:06' and `end` < '2025-04-06 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-04-06 03:40:19] Production.INFO: count ==1035 [2025-04-06 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:40:06 - End Time 2025-04-06 03:40:06 [2025-04-06 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844828', 'tblTempUsageDetail_20' ) start [2025-04-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844828', 'tblTempUsageDetail_20' ) end [2025-04-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844828', 'tblTempVendorCDR_20' ) start [2025-04-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844828', 'tblTempVendorCDR_20' ) end [2025-04-06 03:40:19] Production.INFO: ProcessCDR(1,14844828,1,1,2) [2025-04-06 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844828', 'tblTempUsageDetail_20' ) start [2025-04-06 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844828', 'tblTempUsageDetail_20' ) end [2025-04-06 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:40:23] Production.INFO: ==11534== Releasing lock... [2025-04-06 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:40:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:41:05 [end_date_ymd] => 2025-04-06 03:41:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:41:05' and `end` < '2025-04-06 03: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-04-06 03:41:18] Production.INFO: count ==1031 [2025-04-06 03:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:41:05 - End Time 2025-04-06 03:41:05 [2025-04-06 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844833', 'tblTempUsageDetail_20' ) start [2025-04-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844833', 'tblTempUsageDetail_20' ) end [2025-04-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844833', 'tblTempVendorCDR_20' ) start [2025-04-06 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844833', 'tblTempVendorCDR_20' ) end [2025-04-06 03:41:19] Production.INFO: ProcessCDR(1,14844833,1,1,2) [2025-04-06 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844833', 'tblTempUsageDetail_20' ) start [2025-04-06 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844833', 'tblTempUsageDetail_20' ) end [2025-04-06 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:41:22] Production.INFO: ==11614== Releasing lock... [2025-04-06 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:41:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:42:05 [end_date_ymd] => 2025-04-06 03:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:42:05' and `end` < '2025-04-06 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-04-06 03:42:18] Production.INFO: count ==1038 [2025-04-06 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:42:05 - End Time 2025-04-06 03:42:05 [2025-04-06 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844838', 'tblTempUsageDetail_20' ) start [2025-04-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844838', 'tblTempUsageDetail_20' ) end [2025-04-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844838', 'tblTempVendorCDR_20' ) start [2025-04-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844838', 'tblTempVendorCDR_20' ) end [2025-04-06 03:42:18] Production.INFO: ProcessCDR(1,14844838,1,1,2) [2025-04-06 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844838', 'tblTempUsageDetail_20' ) start [2025-04-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844838', 'tblTempUsageDetail_20' ) end [2025-04-06 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:42:22] Production.INFO: ==11690== Releasing lock... [2025-04-06 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:42:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:43:05 [end_date_ymd] => 2025-04-06 03:43:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:43:05' and `end` < '2025-04-06 03: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-04-06 03:43:18] Production.INFO: count ==1049 [2025-04-06 03:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:43:05 - End Time 2025-04-06 03:43:05 [2025-04-06 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844843', 'tblTempUsageDetail_20' ) start [2025-04-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844843', 'tblTempUsageDetail_20' ) end [2025-04-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844843', 'tblTempVendorCDR_20' ) start [2025-04-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844843', 'tblTempVendorCDR_20' ) end [2025-04-06 03:43:19] Production.INFO: ProcessCDR(1,14844843,1,1,2) [2025-04-06 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844843', 'tblTempUsageDetail_20' ) start [2025-04-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844843', 'tblTempUsageDetail_20' ) end [2025-04-06 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:43:22] Production.INFO: ==11766== Releasing lock... [2025-04-06 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:43:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:44:05 [end_date_ymd] => 2025-04-06 03:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:44:05' and `end` < '2025-04-06 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-04-06 03:44:18] Production.INFO: count ==1049 [2025-04-06 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:44:05 - End Time 2025-04-06 03:44:05 [2025-04-06 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844848', 'tblTempUsageDetail_20' ) start [2025-04-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844848', 'tblTempUsageDetail_20' ) end [2025-04-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844848', 'tblTempVendorCDR_20' ) start [2025-04-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844848', 'tblTempVendorCDR_20' ) end [2025-04-06 03:44:18] Production.INFO: ProcessCDR(1,14844848,1,1,2) [2025-04-06 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844848', 'tblTempUsageDetail_20' ) start [2025-04-06 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844848', 'tblTempUsageDetail_20' ) end [2025-04-06 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:44:22] Production.INFO: ==11844== Releasing lock... [2025-04-06 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:45:05 [end_date_ymd] => 2025-04-06 03:45:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:45:05' and `end` < '2025-04-06 03: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-04-06 03:45:18] Production.INFO: count ==1054 [2025-04-06 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:45:05 - End Time 2025-04-06 03:45:05 [2025-04-06 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844853', 'tblTempUsageDetail_20' ) start [2025-04-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844853', 'tblTempUsageDetail_20' ) end [2025-04-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844853', 'tblTempVendorCDR_20' ) start [2025-04-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844853', 'tblTempVendorCDR_20' ) end [2025-04-06 03:45:18] Production.INFO: ProcessCDR(1,14844853,1,1,2) [2025-04-06 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844853', 'tblTempUsageDetail_20' ) start [2025-04-06 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844853', 'tblTempUsageDetail_20' ) end [2025-04-06 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:45:22] Production.INFO: ==11924== Releasing lock... [2025-04-06 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:45:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:46:06 [end_date_ymd] => 2025-04-06 03:46:06 [RateCDR] => 1 ) [2025-04-06 03:46: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-04-06 00:46:06' and `end` < '2025-04-06 03:46: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-04-06 03:46:19] Production.INFO: count ==1060 [2025-04-06 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:46:06 - End Time 2025-04-06 03:46:06 [2025-04-06 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844858', 'tblTempUsageDetail_20' ) start [2025-04-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844858', 'tblTempUsageDetail_20' ) end [2025-04-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844858', 'tblTempVendorCDR_20' ) start [2025-04-06 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844858', 'tblTempVendorCDR_20' ) end [2025-04-06 03:46:20] Production.INFO: ProcessCDR(1,14844858,1,1,2) [2025-04-06 03:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844858', 'tblTempUsageDetail_20' ) start [2025-04-06 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844858', 'tblTempUsageDetail_20' ) end [2025-04-06 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:46:23] Production.INFO: ==12000== Releasing lock... [2025-04-06 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:46:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:47:05 [end_date_ymd] => 2025-04-06 03:47:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:47:05' and `end` < '2025-04-06 03: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-04-06 03:47:19] Production.INFO: count ==1064 [2025-04-06 03:47:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:47:05 - End Time 2025-04-06 03:47:05 [2025-04-06 03:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844863', 'tblTempUsageDetail_20' ) start [2025-04-06 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844863', 'tblTempUsageDetail_20' ) end [2025-04-06 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844863', 'tblTempVendorCDR_20' ) start [2025-04-06 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844863', 'tblTempVendorCDR_20' ) end [2025-04-06 03:47:20] Production.INFO: ProcessCDR(1,14844863,1,1,2) [2025-04-06 03:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844863', 'tblTempUsageDetail_20' ) start [2025-04-06 03:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844863', 'tblTempUsageDetail_20' ) end [2025-04-06 03:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:47:25] Production.INFO: ==12074== Releasing lock... [2025-04-06 03:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:47:25] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:48:06 [end_date_ymd] => 2025-04-06 03:48:06 [RateCDR] => 1 ) [2025-04-06 03:48: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-04-06 00:48:06' and `end` < '2025-04-06 03:48: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-04-06 03:48:19] Production.INFO: count ==1066 [2025-04-06 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:48:06 - End Time 2025-04-06 03:48:06 [2025-04-06 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844868', 'tblTempUsageDetail_20' ) start [2025-04-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844868', 'tblTempUsageDetail_20' ) end [2025-04-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844868', 'tblTempVendorCDR_20' ) start [2025-04-06 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844868', 'tblTempVendorCDR_20' ) end [2025-04-06 03:48:19] Production.INFO: ProcessCDR(1,14844868,1,1,2) [2025-04-06 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844868', 'tblTempUsageDetail_20' ) start [2025-04-06 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844868', 'tblTempUsageDetail_20' ) end [2025-04-06 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:48:23] Production.INFO: ==12154== Releasing lock... [2025-04-06 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:48:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:49:05 [end_date_ymd] => 2025-04-06 03:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:49:05' and `end` < '2025-04-06 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-04-06 03:49:18] Production.INFO: count ==1071 [2025-04-06 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:49:05 - End Time 2025-04-06 03:49:05 [2025-04-06 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844873', 'tblTempUsageDetail_20' ) start [2025-04-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844873', 'tblTempUsageDetail_20' ) end [2025-04-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844873', 'tblTempVendorCDR_20' ) start [2025-04-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844873', 'tblTempVendorCDR_20' ) end [2025-04-06 03:49:18] Production.INFO: ProcessCDR(1,14844873,1,1,2) [2025-04-06 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844873', 'tblTempUsageDetail_20' ) start [2025-04-06 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844873', 'tblTempUsageDetail_20' ) end [2025-04-06 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:49:22] Production.INFO: ==12271== Releasing lock... [2025-04-06 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:49:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:50:07 [end_date_ymd] => 2025-04-06 03:50:07 [RateCDR] => 1 ) [2025-04-06 03:50: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-04-06 00:50:07' and `end` < '2025-04-06 03:50: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-04-06 03:50:20] Production.INFO: count ==1095 [2025-04-06 03:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:50:07 - End Time 2025-04-06 03:50:07 [2025-04-06 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844879', 'tblTempUsageDetail_20' ) start [2025-04-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844879', 'tblTempUsageDetail_20' ) end [2025-04-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844879', 'tblTempVendorCDR_20' ) start [2025-04-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844879', 'tblTempVendorCDR_20' ) end [2025-04-06 03:50:20] Production.INFO: ProcessCDR(1,14844879,1,1,2) [2025-04-06 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844879', 'tblTempUsageDetail_20' ) start [2025-04-06 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844879', 'tblTempUsageDetail_20' ) end [2025-04-06 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:50:24] Production.INFO: ==12349== Releasing lock... [2025-04-06 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:50:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:51:06 [end_date_ymd] => 2025-04-06 03:51:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:51:06' and `end` < '2025-04-06 03: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-04-06 03:51:18] Production.INFO: count ==1112 [2025-04-06 03:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:51:06 - End Time 2025-04-06 03:51:06 [2025-04-06 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844884', 'tblTempUsageDetail_20' ) start [2025-04-06 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844884', 'tblTempUsageDetail_20' ) end [2025-04-06 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844884', 'tblTempVendorCDR_20' ) start [2025-04-06 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844884', 'tblTempVendorCDR_20' ) end [2025-04-06 03:51:19] Production.INFO: ProcessCDR(1,14844884,1,1,2) [2025-04-06 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844884', 'tblTempUsageDetail_20' ) start [2025-04-06 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844884', 'tblTempUsageDetail_20' ) end [2025-04-06 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:51:23] Production.INFO: ==12427== Releasing lock... [2025-04-06 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:51:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:52:05 [end_date_ymd] => 2025-04-06 03:52:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:52:05' and `end` < '2025-04-06 03: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-04-06 03:52:19] Production.INFO: count ==1104 [2025-04-06 03:52:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:52:05 - End Time 2025-04-06 03:52:05 [2025-04-06 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844889', 'tblTempUsageDetail_20' ) start [2025-04-06 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844889', 'tblTempUsageDetail_20' ) end [2025-04-06 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844889', 'tblTempVendorCDR_20' ) start [2025-04-06 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844889', 'tblTempVendorCDR_20' ) end [2025-04-06 03:52:20] Production.INFO: ProcessCDR(1,14844889,1,1,2) [2025-04-06 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844889', 'tblTempUsageDetail_20' ) start [2025-04-06 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844889', 'tblTempUsageDetail_20' ) end [2025-04-06 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:52:23] Production.INFO: ==12504== Releasing lock... [2025-04-06 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:52:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:53:05 [end_date_ymd] => 2025-04-06 03:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:53:05' and `end` < '2025-04-06 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-04-06 03:53:18] Production.INFO: count ==1107 [2025-04-06 03:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:53:05 - End Time 2025-04-06 03:53:05 [2025-04-06 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844894', 'tblTempUsageDetail_20' ) start [2025-04-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844894', 'tblTempUsageDetail_20' ) end [2025-04-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844894', 'tblTempVendorCDR_20' ) start [2025-04-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844894', 'tblTempVendorCDR_20' ) end [2025-04-06 03:53:19] Production.INFO: ProcessCDR(1,14844894,1,1,2) [2025-04-06 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844894', 'tblTempUsageDetail_20' ) start [2025-04-06 03:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844894', 'tblTempUsageDetail_20' ) end [2025-04-06 03:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:53:24] Production.INFO: ==12579== Releasing lock... [2025-04-06 03:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:53:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:54:06 [end_date_ymd] => 2025-04-06 03:54:06 [RateCDR] => 1 ) [2025-04-06 03:54: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-04-06 00:54:06' and `end` < '2025-04-06 03:54: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-04-06 03:54:18] Production.INFO: count ==1103 [2025-04-06 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:54:06 - End Time 2025-04-06 03:54:06 [2025-04-06 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844899', 'tblTempUsageDetail_20' ) start [2025-04-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844899', 'tblTempUsageDetail_20' ) end [2025-04-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844899', 'tblTempVendorCDR_20' ) start [2025-04-06 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844899', 'tblTempVendorCDR_20' ) end [2025-04-06 03:54:19] Production.INFO: ProcessCDR(1,14844899,1,1,2) [2025-04-06 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844899', 'tblTempUsageDetail_20' ) start [2025-04-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844899', 'tblTempUsageDetail_20' ) end [2025-04-06 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:54:22] Production.INFO: ==12657== Releasing lock... [2025-04-06 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:55:05 [end_date_ymd] => 2025-04-06 03:55:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:55:05' and `end` < '2025-04-06 03: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-04-06 03:55:18] Production.INFO: count ==1101 [2025-04-06 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:55:05 - End Time 2025-04-06 03:55:05 [2025-04-06 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844904', 'tblTempUsageDetail_20' ) start [2025-04-06 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844904', 'tblTempUsageDetail_20' ) end [2025-04-06 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844904', 'tblTempVendorCDR_20' ) start [2025-04-06 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844904', 'tblTempVendorCDR_20' ) end [2025-04-06 03:55:19] Production.INFO: ProcessCDR(1,14844904,1,1,2) [2025-04-06 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844904', 'tblTempUsageDetail_20' ) start [2025-04-06 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844904', 'tblTempUsageDetail_20' ) end [2025-04-06 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:55:22] Production.INFO: ==12741== Releasing lock... [2025-04-06 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:56:06 [end_date_ymd] => 2025-04-06 03:56:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:56:06' and `end` < '2025-04-06 03: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-04-06 03:56:20] Production.INFO: count ==1103 [2025-04-06 03:56:20] Production.ERROR: pbx CDR StartTime 2025-04-06 00:56:06 - End Time 2025-04-06 03:56:06 [2025-04-06 03:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844909', 'tblTempUsageDetail_20' ) start [2025-04-06 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844909', 'tblTempUsageDetail_20' ) end [2025-04-06 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844909', 'tblTempVendorCDR_20' ) start [2025-04-06 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844909', 'tblTempVendorCDR_20' ) end [2025-04-06 03:56:20] Production.INFO: ProcessCDR(1,14844909,1,1,2) [2025-04-06 03:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844909', 'tblTempUsageDetail_20' ) start [2025-04-06 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844909', 'tblTempUsageDetail_20' ) end [2025-04-06 03:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:56:24] Production.INFO: ==12826== Releasing lock... [2025-04-06 03:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:56:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:57:05 [end_date_ymd] => 2025-04-06 03:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 00:57:05' and `end` < '2025-04-06 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-04-06 03:57:18] Production.INFO: count ==1098 [2025-04-06 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:57:05 - End Time 2025-04-06 03:57:05 [2025-04-06 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844914', 'tblTempUsageDetail_20' ) start [2025-04-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844914', 'tblTempUsageDetail_20' ) end [2025-04-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844914', 'tblTempVendorCDR_20' ) start [2025-04-06 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844914', 'tblTempVendorCDR_20' ) end [2025-04-06 03:57:19] Production.INFO: ProcessCDR(1,14844914,1,1,2) [2025-04-06 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844914', 'tblTempUsageDetail_20' ) start [2025-04-06 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844914', 'tblTempUsageDetail_20' ) end [2025-04-06 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:57:22] Production.INFO: ==12907== Releasing lock... [2025-04-06 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:58:06 [end_date_ymd] => 2025-04-06 03:58:06 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:58:06' and `end` < '2025-04-06 03: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-04-06 03:58:18] Production.INFO: count ==1098 [2025-04-06 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 00:58:06 - End Time 2025-04-06 03:58:06 [2025-04-06 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844919', 'tblTempUsageDetail_20' ) start [2025-04-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844919', 'tblTempUsageDetail_20' ) end [2025-04-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844919', 'tblTempVendorCDR_20' ) start [2025-04-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844919', 'tblTempVendorCDR_20' ) end [2025-04-06 03:58:19] Production.INFO: ProcessCDR(1,14844919,1,1,2) [2025-04-06 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844919', 'tblTempUsageDetail_20' ) start [2025-04-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844919', 'tblTempUsageDetail_20' ) end [2025-04-06 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:58:22] Production.INFO: ==12994== Releasing lock... [2025-04-06 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 00:59:05 [end_date_ymd] => 2025-04-06 03:59:05 [RateCDR] => 1 ) [2025-04-06 03: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-04-06 00:59:05' and `end` < '2025-04-06 03: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-04-06 03:59:17] Production.INFO: count ==1096 [2025-04-06 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 00:59:05 - End Time 2025-04-06 03:59:05 [2025-04-06 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844924', 'tblTempUsageDetail_20' ) start [2025-04-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844924', 'tblTempUsageDetail_20' ) end [2025-04-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844924', 'tblTempVendorCDR_20' ) start [2025-04-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844924', 'tblTempVendorCDR_20' ) end [2025-04-06 03:59:18] Production.INFO: ProcessCDR(1,14844924,1,1,2) [2025-04-06 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844924', 'tblTempUsageDetail_20' ) start [2025-04-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844924', 'tblTempUsageDetail_20' ) end [2025-04-06 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 03:59:21] Production.INFO: ==13072== Releasing lock... [2025-04-06 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 03:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:00:06 [end_date_ymd] => 2025-04-06 04:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:00:06' and `end` < '2025-04-06 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-04-06 04:00:19] Production.INFO: count ==1083 [2025-04-06 04:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:00:06 - End Time 2025-04-06 04:00:06 [2025-04-06 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844929', 'tblTempUsageDetail_20' ) start [2025-04-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844929', 'tblTempUsageDetail_20' ) end [2025-04-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844929', 'tblTempVendorCDR_20' ) start [2025-04-06 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844929', 'tblTempVendorCDR_20' ) end [2025-04-06 04:00:20] Production.INFO: ProcessCDR(1,14844929,1,1,2) [2025-04-06 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844929', 'tblTempUsageDetail_20' ) start [2025-04-06 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844929', 'tblTempUsageDetail_20' ) end [2025-04-06 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:00:23] Production.INFO: ==13157== Releasing lock... [2025-04-06 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:01:05 [end_date_ymd] => 2025-04-06 04:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:01:05' and `end` < '2025-04-06 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-04-06 04:01:18] Production.INFO: count ==1053 [2025-04-06 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:01:05 - End Time 2025-04-06 04:01:05 [2025-04-06 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844936', 'tblTempUsageDetail_20' ) start [2025-04-06 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844936', 'tblTempUsageDetail_20' ) end [2025-04-06 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844936', 'tblTempVendorCDR_20' ) start [2025-04-06 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844936', 'tblTempVendorCDR_20' ) end [2025-04-06 04:01:19] Production.INFO: ProcessCDR(1,14844936,1,1,2) [2025-04-06 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844936', 'tblTempUsageDetail_20' ) start [2025-04-06 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844936', 'tblTempUsageDetail_20' ) end [2025-04-06 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:01:23] Production.INFO: ==13258== Releasing lock... [2025-04-06 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:01:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:02:06 [end_date_ymd] => 2025-04-06 04:02:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:02:06' and `end` < '2025-04-06 04: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-04-06 04:02:19] Production.INFO: count ==1051 [2025-04-06 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:02:06 - End Time 2025-04-06 04:02:06 [2025-04-06 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844941', 'tblTempUsageDetail_20' ) start [2025-04-06 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844941', 'tblTempUsageDetail_20' ) end [2025-04-06 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844941', 'tblTempVendorCDR_20' ) start [2025-04-06 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844941', 'tblTempVendorCDR_20' ) end [2025-04-06 04:02:19] Production.INFO: ProcessCDR(1,14844941,1,1,2) [2025-04-06 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844941', 'tblTempUsageDetail_20' ) start [2025-04-06 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844941', 'tblTempUsageDetail_20' ) end [2025-04-06 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:02:23] Production.INFO: ==13339== Releasing lock... [2025-04-06 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:02:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:03:05 [end_date_ymd] => 2025-04-06 04:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:03:05' and `end` < '2025-04-06 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-04-06 04:03:18] Production.INFO: count ==1049 [2025-04-06 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:03:05 - End Time 2025-04-06 04:03:05 [2025-04-06 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844946', 'tblTempUsageDetail_20' ) start [2025-04-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844946', 'tblTempUsageDetail_20' ) end [2025-04-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844946', 'tblTempVendorCDR_20' ) start [2025-04-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844946', 'tblTempVendorCDR_20' ) end [2025-04-06 04:03:18] Production.INFO: ProcessCDR(1,14844946,1,1,2) [2025-04-06 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844946', 'tblTempUsageDetail_20' ) start [2025-04-06 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844946', 'tblTempUsageDetail_20' ) end [2025-04-06 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:03:22] Production.INFO: ==13416== Releasing lock... [2025-04-06 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:04:06 [end_date_ymd] => 2025-04-06 04:04:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:04:06' and `end` < '2025-04-06 04: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-04-06 04:04:19] Production.INFO: count ==1043 [2025-04-06 04:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:04:06 - End Time 2025-04-06 04:04:06 [2025-04-06 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844951', 'tblTempUsageDetail_20' ) start [2025-04-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844951', 'tblTempUsageDetail_20' ) end [2025-04-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844951', 'tblTempVendorCDR_20' ) start [2025-04-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844951', 'tblTempVendorCDR_20' ) end [2025-04-06 04:04:19] Production.INFO: ProcessCDR(1,14844951,1,1,2) [2025-04-06 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844951', 'tblTempUsageDetail_20' ) start [2025-04-06 04:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844951', 'tblTempUsageDetail_20' ) end [2025-04-06 04:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:04:23] Production.INFO: ==13540== Releasing lock... [2025-04-06 04:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:04:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:05:05 [end_date_ymd] => 2025-04-06 04:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:05:05' and `end` < '2025-04-06 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-04-06 04:05:18] Production.INFO: count ==1038 [2025-04-06 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:05:05 - End Time 2025-04-06 04:05:05 [2025-04-06 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844956', 'tblTempUsageDetail_20' ) start [2025-04-06 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844956', 'tblTempUsageDetail_20' ) end [2025-04-06 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844956', 'tblTempVendorCDR_20' ) start [2025-04-06 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844956', 'tblTempVendorCDR_20' ) end [2025-04-06 04:05:18] Production.INFO: ProcessCDR(1,14844956,1,1,2) [2025-04-06 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844956', 'tblTempUsageDetail_20' ) start [2025-04-06 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844956', 'tblTempUsageDetail_20' ) end [2025-04-06 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:05:22] Production.INFO: ==13622== Releasing lock... [2025-04-06 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:05:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:06:05 [end_date_ymd] => 2025-04-06 04:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:06:05' and `end` < '2025-04-06 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-04-06 04:06:19] Production.INFO: count ==1043 [2025-04-06 04:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:06:05 - End Time 2025-04-06 04:06:05 [2025-04-06 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844961', 'tblTempUsageDetail_20' ) start [2025-04-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844961', 'tblTempUsageDetail_20' ) end [2025-04-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844961', 'tblTempVendorCDR_20' ) start [2025-04-06 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844961', 'tblTempVendorCDR_20' ) end [2025-04-06 04:06:19] Production.INFO: ProcessCDR(1,14844961,1,1,2) [2025-04-06 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844961', 'tblTempUsageDetail_20' ) start [2025-04-06 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844961', 'tblTempUsageDetail_20' ) end [2025-04-06 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:06:23] Production.INFO: ==13706== Releasing lock... [2025-04-06 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:06:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:07:05 [end_date_ymd] => 2025-04-06 04:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:07:05' and `end` < '2025-04-06 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-04-06 04:07:18] Production.INFO: count ==1041 [2025-04-06 04:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:07:05 - End Time 2025-04-06 04:07:05 [2025-04-06 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844966', 'tblTempUsageDetail_20' ) start [2025-04-06 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844966', 'tblTempUsageDetail_20' ) end [2025-04-06 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844966', 'tblTempVendorCDR_20' ) start [2025-04-06 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844966', 'tblTempVendorCDR_20' ) end [2025-04-06 04:07:19] Production.INFO: ProcessCDR(1,14844966,1,1,2) [2025-04-06 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844966', 'tblTempUsageDetail_20' ) start [2025-04-06 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844966', 'tblTempUsageDetail_20' ) end [2025-04-06 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:07:22] Production.INFO: ==13786== Releasing lock... [2025-04-06 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:08:06 [end_date_ymd] => 2025-04-06 04:08:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:08:06' and `end` < '2025-04-06 04: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-04-06 04:08:18] Production.INFO: count ==1038 [2025-04-06 04:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:08:06 - End Time 2025-04-06 04:08:06 [2025-04-06 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844971', 'tblTempUsageDetail_20' ) start [2025-04-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844971', 'tblTempUsageDetail_20' ) end [2025-04-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844971', 'tblTempVendorCDR_20' ) start [2025-04-06 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844971', 'tblTempVendorCDR_20' ) end [2025-04-06 04:08:19] Production.INFO: ProcessCDR(1,14844971,1,1,2) [2025-04-06 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844971', 'tblTempUsageDetail_20' ) start [2025-04-06 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844971', 'tblTempUsageDetail_20' ) end [2025-04-06 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:08:22] Production.INFO: ==13872== Releasing lock... [2025-04-06 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:08:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:09:05 [end_date_ymd] => 2025-04-06 04:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:09:05' and `end` < '2025-04-06 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-04-06 04:09:18] Production.INFO: count ==1031 [2025-04-06 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:09:05 - End Time 2025-04-06 04:09:05 [2025-04-06 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844976', 'tblTempUsageDetail_20' ) start [2025-04-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844976', 'tblTempUsageDetail_20' ) end [2025-04-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844976', 'tblTempVendorCDR_20' ) start [2025-04-06 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844976', 'tblTempVendorCDR_20' ) end [2025-04-06 04:09:18] Production.INFO: ProcessCDR(1,14844976,1,1,2) [2025-04-06 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844976', 'tblTempUsageDetail_20' ) start [2025-04-06 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844976', 'tblTempUsageDetail_20' ) end [2025-04-06 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:09:22] Production.INFO: ==13953== Releasing lock... [2025-04-06 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:09:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:10:06 [end_date_ymd] => 2025-04-06 04:10:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:10:06' and `end` < '2025-04-06 04: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-04-06 04:10:19] Production.INFO: count ==1031 [2025-04-06 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:10:06 - End Time 2025-04-06 04:10:06 [2025-04-06 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844982', 'tblTempUsageDetail_20' ) start [2025-04-06 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844982', 'tblTempUsageDetail_20' ) end [2025-04-06 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844982', 'tblTempVendorCDR_20' ) start [2025-04-06 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844982', 'tblTempVendorCDR_20' ) end [2025-04-06 04:10:19] Production.INFO: ProcessCDR(1,14844982,1,1,2) [2025-04-06 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844982', 'tblTempUsageDetail_20' ) start [2025-04-06 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844982', 'tblTempUsageDetail_20' ) end [2025-04-06 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:10:23] Production.INFO: ==14039== Releasing lock... [2025-04-06 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:10:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:11:05 [end_date_ymd] => 2025-04-06 04:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:11:05' and `end` < '2025-04-06 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-04-06 04:11:18] Production.INFO: count ==1031 [2025-04-06 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:11:05 - End Time 2025-04-06 04:11:05 [2025-04-06 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844987', 'tblTempUsageDetail_20' ) start [2025-04-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844987', 'tblTempUsageDetail_20' ) end [2025-04-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844987', 'tblTempVendorCDR_20' ) start [2025-04-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844987', 'tblTempVendorCDR_20' ) end [2025-04-06 04:11:18] Production.INFO: ProcessCDR(1,14844987,1,1,2) [2025-04-06 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844987', 'tblTempUsageDetail_20' ) start [2025-04-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844987', 'tblTempUsageDetail_20' ) end [2025-04-06 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:11:21] Production.INFO: ==14130== Releasing lock... [2025-04-06 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:11:21] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:12:05 [end_date_ymd] => 2025-04-06 04:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:12:05' and `end` < '2025-04-06 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-04-06 04:12:18] Production.INFO: count ==1031 [2025-04-06 04:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:12:05 - End Time 2025-04-06 04:12:05 [2025-04-06 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844992', 'tblTempUsageDetail_20' ) start [2025-04-06 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844992', 'tblTempUsageDetail_20' ) end [2025-04-06 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844992', 'tblTempVendorCDR_20' ) start [2025-04-06 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844992', 'tblTempVendorCDR_20' ) end [2025-04-06 04:12:19] Production.INFO: ProcessCDR(1,14844992,1,1,2) [2025-04-06 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844992', 'tblTempUsageDetail_20' ) start [2025-04-06 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844992', 'tblTempUsageDetail_20' ) end [2025-04-06 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:12:22] Production.INFO: ==14210== Releasing lock... [2025-04-06 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:12:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:13:05 [end_date_ymd] => 2025-04-06 04:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:13:05' and `end` < '2025-04-06 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-04-06 04:13:18] Production.INFO: count ==1031 [2025-04-06 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:13:05 - End Time 2025-04-06 04:13:05 [2025-04-06 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844997', 'tblTempUsageDetail_20' ) start [2025-04-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14844997', 'tblTempUsageDetail_20' ) end [2025-04-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844997', 'tblTempVendorCDR_20' ) start [2025-04-06 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14844997', 'tblTempVendorCDR_20' ) end [2025-04-06 04:13:18] Production.INFO: ProcessCDR(1,14844997,1,1,2) [2025-04-06 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14844997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14844997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14844997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14844997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844997', 'tblTempUsageDetail_20' ) start [2025-04-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14844997', 'tblTempUsageDetail_20' ) end [2025-04-06 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:13:22] Production.INFO: ==14292== Releasing lock... [2025-04-06 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:13:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:14:05 [end_date_ymd] => 2025-04-06 04:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:14:05' and `end` < '2025-04-06 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-04-06 04:14:19] Production.INFO: count ==1030 [2025-04-06 04:14:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:14:05 - End Time 2025-04-06 04:14:05 [2025-04-06 04:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845002', 'tblTempUsageDetail_20' ) start [2025-04-06 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845002', 'tblTempUsageDetail_20' ) end [2025-04-06 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845002', 'tblTempVendorCDR_20' ) start [2025-04-06 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845002', 'tblTempVendorCDR_20' ) end [2025-04-06 04:14:20] Production.INFO: ProcessCDR(1,14845002,1,1,2) [2025-04-06 04:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845002', 'tblTempUsageDetail_20' ) start [2025-04-06 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845002', 'tblTempUsageDetail_20' ) end [2025-04-06 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:14:23] Production.INFO: ==14388== Releasing lock... [2025-04-06 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:14:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:15:06 [end_date_ymd] => 2025-04-06 04:15:06 [RateCDR] => 1 ) [2025-04-06 04:15: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-04-06 01:15:06' and `end` < '2025-04-06 04:15: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-04-06 04:15:19] Production.INFO: count ==1025 [2025-04-06 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:15:06 - End Time 2025-04-06 04:15:06 [2025-04-06 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845007', 'tblTempUsageDetail_20' ) start [2025-04-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845007', 'tblTempUsageDetail_20' ) end [2025-04-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845007', 'tblTempVendorCDR_20' ) start [2025-04-06 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845007', 'tblTempVendorCDR_20' ) end [2025-04-06 04:15:19] Production.INFO: ProcessCDR(1,14845007,1,1,2) [2025-04-06 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845007', 'tblTempUsageDetail_20' ) start [2025-04-06 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845007', 'tblTempUsageDetail_20' ) end [2025-04-06 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:15:23] Production.INFO: ==14487== Releasing lock... [2025-04-06 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:16:06 [end_date_ymd] => 2025-04-06 04:16:06 [RateCDR] => 1 ) [2025-04-06 04:16: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-04-06 01:16:06' and `end` < '2025-04-06 04:16: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-04-06 04:16:18] Production.INFO: count ==1029 [2025-04-06 04:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:16:06 - End Time 2025-04-06 04:16:06 [2025-04-06 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845012', 'tblTempUsageDetail_20' ) start [2025-04-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845012', 'tblTempUsageDetail_20' ) end [2025-04-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845012', 'tblTempVendorCDR_20' ) start [2025-04-06 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845012', 'tblTempVendorCDR_20' ) end [2025-04-06 04:16:19] Production.INFO: ProcessCDR(1,14845012,1,1,2) [2025-04-06 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845012', 'tblTempUsageDetail_20' ) start [2025-04-06 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845012', 'tblTempUsageDetail_20' ) end [2025-04-06 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:16:22] Production.INFO: ==14593== Releasing lock... [2025-04-06 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:17:06 [end_date_ymd] => 2025-04-06 04:17:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:17:06' and `end` < '2025-04-06 04: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-04-06 04:17:18] Production.INFO: count ==1032 [2025-04-06 04:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:17:06 - End Time 2025-04-06 04:17:06 [2025-04-06 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845017', 'tblTempUsageDetail_20' ) start [2025-04-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845017', 'tblTempUsageDetail_20' ) end [2025-04-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845017', 'tblTempVendorCDR_20' ) start [2025-04-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845017', 'tblTempVendorCDR_20' ) end [2025-04-06 04:17:19] Production.INFO: ProcessCDR(1,14845017,1,1,2) [2025-04-06 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845017', 'tblTempUsageDetail_20' ) start [2025-04-06 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845017', 'tblTempUsageDetail_20' ) end [2025-04-06 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:17:22] Production.INFO: ==14708== Releasing lock... [2025-04-06 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:17:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:18:05 [end_date_ymd] => 2025-04-06 04:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:18:05' and `end` < '2025-04-06 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-04-06 04:18:19] Production.INFO: count ==1039 [2025-04-06 04:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:18:05 - End Time 2025-04-06 04:18:05 [2025-04-06 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845018', 'tblTempUsageDetail_20' ) start [2025-04-06 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845018', 'tblTempUsageDetail_20' ) end [2025-04-06 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845018', 'tblTempVendorCDR_20' ) start [2025-04-06 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845018', 'tblTempVendorCDR_20' ) end [2025-04-06 04:18:19] Production.INFO: ProcessCDR(1,14845018,1,1,2) [2025-04-06 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845018', 'tblTempUsageDetail_20' ) start [2025-04-06 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845018', 'tblTempUsageDetail_20' ) end [2025-04-06 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:18:23] Production.INFO: ==14799== Releasing lock... [2025-04-06 04:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:18:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:19:05 [end_date_ymd] => 2025-04-06 04:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:19:05' and `end` < '2025-04-06 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-04-06 04:19:18] Production.INFO: count ==1037 [2025-04-06 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:19:05 - End Time 2025-04-06 04:19:05 [2025-04-06 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845027', 'tblTempUsageDetail_20' ) start [2025-04-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845027', 'tblTempUsageDetail_20' ) end [2025-04-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845027', 'tblTempVendorCDR_20' ) start [2025-04-06 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845027', 'tblTempVendorCDR_20' ) end [2025-04-06 04:19:19] Production.INFO: ProcessCDR(1,14845027,1,1,2) [2025-04-06 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845027', 'tblTempUsageDetail_20' ) start [2025-04-06 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845027', 'tblTempUsageDetail_20' ) end [2025-04-06 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:19:22] Production.INFO: ==14881== Releasing lock... [2025-04-06 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:19:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:20:06 [end_date_ymd] => 2025-04-06 04:20:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:20:06' and `end` < '2025-04-06 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-04-06 04:20:19] Production.INFO: count ==1033 [2025-04-06 04:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:20:06 - End Time 2025-04-06 04:20:06 [2025-04-06 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845033', 'tblTempUsageDetail_20' ) start [2025-04-06 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845033', 'tblTempUsageDetail_20' ) end [2025-04-06 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845033', 'tblTempVendorCDR_20' ) start [2025-04-06 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845033', 'tblTempVendorCDR_20' ) end [2025-04-06 04:20:20] Production.INFO: ProcessCDR(1,14845033,1,1,2) [2025-04-06 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845033', 'tblTempUsageDetail_20' ) start [2025-04-06 04:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845033', 'tblTempUsageDetail_20' ) end [2025-04-06 04:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:20:25] Production.INFO: ==15008== Releasing lock... [2025-04-06 04:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:20:25] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:21:05 [end_date_ymd] => 2025-04-06 04:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:21:05' and `end` < '2025-04-06 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-04-06 04:21:18] Production.INFO: count ==1030 [2025-04-06 04:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:21:05 - End Time 2025-04-06 04:21:05 [2025-04-06 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845038', 'tblTempUsageDetail_20' ) start [2025-04-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845038', 'tblTempUsageDetail_20' ) end [2025-04-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845038', 'tblTempVendorCDR_20' ) start [2025-04-06 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845038', 'tblTempVendorCDR_20' ) end [2025-04-06 04:21:19] Production.INFO: ProcessCDR(1,14845038,1,1,2) [2025-04-06 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845038', 'tblTempUsageDetail_20' ) start [2025-04-06 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845038', 'tblTempUsageDetail_20' ) end [2025-04-06 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:21:22] Production.INFO: ==15098== Releasing lock... [2025-04-06 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:22:05 [end_date_ymd] => 2025-04-06 04:22:05 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:22:05' and `end` < '2025-04-06 04: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-04-06 04:22:18] Production.INFO: count ==1022 [2025-04-06 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:22:05 - End Time 2025-04-06 04:22:05 [2025-04-06 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845043', 'tblTempUsageDetail_20' ) start [2025-04-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845043', 'tblTempUsageDetail_20' ) end [2025-04-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845043', 'tblTempVendorCDR_20' ) start [2025-04-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845043', 'tblTempVendorCDR_20' ) end [2025-04-06 04:22:18] Production.INFO: ProcessCDR(1,14845043,1,1,2) [2025-04-06 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845043', 'tblTempUsageDetail_20' ) start [2025-04-06 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845043', 'tblTempUsageDetail_20' ) end [2025-04-06 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:22:22] Production.INFO: ==15175== Releasing lock... [2025-04-06 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:22:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:23:05 [end_date_ymd] => 2025-04-06 04:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:23:05' and `end` < '2025-04-06 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-04-06 04:23:18] Production.INFO: count ==1025 [2025-04-06 04:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:23:05 - End Time 2025-04-06 04:23:05 [2025-04-06 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845048', 'tblTempUsageDetail_20' ) start [2025-04-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845048', 'tblTempUsageDetail_20' ) end [2025-04-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845048', 'tblTempVendorCDR_20' ) start [2025-04-06 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845048', 'tblTempVendorCDR_20' ) end [2025-04-06 04:23:19] Production.INFO: ProcessCDR(1,14845048,1,1,2) [2025-04-06 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845048', 'tblTempUsageDetail_20' ) start [2025-04-06 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845048', 'tblTempUsageDetail_20' ) end [2025-04-06 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:23:22] Production.INFO: ==15258== Releasing lock... [2025-04-06 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:23:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:24:05 [end_date_ymd] => 2025-04-06 04:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:24:05' and `end` < '2025-04-06 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-04-06 04:24:18] Production.INFO: count ==1025 [2025-04-06 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:24:05 - End Time 2025-04-06 04:24:05 [2025-04-06 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845053', 'tblTempUsageDetail_20' ) start [2025-04-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845053', 'tblTempUsageDetail_20' ) end [2025-04-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845053', 'tblTempVendorCDR_20' ) start [2025-04-06 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845053', 'tblTempVendorCDR_20' ) end [2025-04-06 04:24:19] Production.INFO: ProcessCDR(1,14845053,1,1,2) [2025-04-06 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845053', 'tblTempUsageDetail_20' ) start [2025-04-06 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845053', 'tblTempUsageDetail_20' ) end [2025-04-06 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:24:23] Production.INFO: ==15371== Releasing lock... [2025-04-06 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:24:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:25:05 [end_date_ymd] => 2025-04-06 04:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:25:05' and `end` < '2025-04-06 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-04-06 04:25:18] Production.INFO: count ==1020 [2025-04-06 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:25:05 - End Time 2025-04-06 04:25:05 [2025-04-06 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845058', 'tblTempUsageDetail_20' ) start [2025-04-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845058', 'tblTempUsageDetail_20' ) end [2025-04-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845058', 'tblTempVendorCDR_20' ) start [2025-04-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845058', 'tblTempVendorCDR_20' ) end [2025-04-06 04:25:18] Production.INFO: ProcessCDR(1,14845058,1,1,2) [2025-04-06 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845058', 'tblTempUsageDetail_20' ) start [2025-04-06 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845058', 'tblTempUsageDetail_20' ) end [2025-04-06 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:25:22] Production.INFO: ==15484== Releasing lock... [2025-04-06 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:25:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:26:05 [end_date_ymd] => 2025-04-06 04:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:26:05' and `end` < '2025-04-06 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-04-06 04:26:18] Production.INFO: count ==1017 [2025-04-06 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:26:05 - End Time 2025-04-06 04:26:05 [2025-04-06 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845063', 'tblTempUsageDetail_20' ) start [2025-04-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845063', 'tblTempUsageDetail_20' ) end [2025-04-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845063', 'tblTempVendorCDR_20' ) start [2025-04-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845063', 'tblTempVendorCDR_20' ) end [2025-04-06 04:26:18] Production.INFO: ProcessCDR(1,14845063,1,1,2) [2025-04-06 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845063', 'tblTempUsageDetail_20' ) start [2025-04-06 04:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845063', 'tblTempUsageDetail_20' ) end [2025-04-06 04:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:26:23] Production.INFO: ==15587== Releasing lock... [2025-04-06 04:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:26:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:27:05 [end_date_ymd] => 2025-04-06 04:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:27:05' and `end` < '2025-04-06 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-04-06 04:27:18] Production.INFO: count ==1009 [2025-04-06 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:27:05 - End Time 2025-04-06 04:27:05 [2025-04-06 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845068', 'tblTempUsageDetail_20' ) start [2025-04-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845068', 'tblTempUsageDetail_20' ) end [2025-04-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845068', 'tblTempVendorCDR_20' ) start [2025-04-06 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845068', 'tblTempVendorCDR_20' ) end [2025-04-06 04:27:18] Production.INFO: ProcessCDR(1,14845068,1,1,2) [2025-04-06 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845068', 'tblTempUsageDetail_20' ) start [2025-04-06 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845068', 'tblTempUsageDetail_20' ) end [2025-04-06 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:27:22] Production.INFO: ==15663== Releasing lock... [2025-04-06 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:27:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:28:05 [end_date_ymd] => 2025-04-06 04:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:28:05' and `end` < '2025-04-06 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-04-06 04:28:18] Production.INFO: count ==1013 [2025-04-06 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:28:05 - End Time 2025-04-06 04:28:05 [2025-04-06 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845073', 'tblTempUsageDetail_20' ) start [2025-04-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845073', 'tblTempUsageDetail_20' ) end [2025-04-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845073', 'tblTempVendorCDR_20' ) start [2025-04-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845073', 'tblTempVendorCDR_20' ) end [2025-04-06 04:28:18] Production.INFO: ProcessCDR(1,14845073,1,1,2) [2025-04-06 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845073', 'tblTempUsageDetail_20' ) start [2025-04-06 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845073', 'tblTempUsageDetail_20' ) end [2025-04-06 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:28:22] Production.INFO: ==15743== Releasing lock... [2025-04-06 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:29:05 [end_date_ymd] => 2025-04-06 04:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:29:05' and `end` < '2025-04-06 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-04-06 04:29:18] Production.INFO: count ==1006 [2025-04-06 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:29:05 - End Time 2025-04-06 04:29:05 [2025-04-06 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845078', 'tblTempUsageDetail_20' ) start [2025-04-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845078', 'tblTempUsageDetail_20' ) end [2025-04-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845078', 'tblTempVendorCDR_20' ) start [2025-04-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845078', 'tblTempVendorCDR_20' ) end [2025-04-06 04:29:18] Production.INFO: ProcessCDR(1,14845078,1,1,2) [2025-04-06 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845078', 'tblTempUsageDetail_20' ) start [2025-04-06 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845078', 'tblTempUsageDetail_20' ) end [2025-04-06 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:29:22] Production.INFO: ==15823== Releasing lock... [2025-04-06 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:29:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:30:06 [end_date_ymd] => 2025-04-06 04:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:30:06' and `end` < '2025-04-06 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-04-06 04:30:19] Production.INFO: count ==1004 [2025-04-06 04:30:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:30:06 - End Time 2025-04-06 04:30:06 [2025-04-06 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845085', 'tblTempUsageDetail_20' ) start [2025-04-06 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845085', 'tblTempUsageDetail_20' ) end [2025-04-06 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845085', 'tblTempVendorCDR_20' ) start [2025-04-06 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845085', 'tblTempVendorCDR_20' ) end [2025-04-06 04:30:20] Production.INFO: ProcessCDR(1,14845085,1,1,2) [2025-04-06 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845085', 'tblTempUsageDetail_20' ) start [2025-04-06 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845085', 'tblTempUsageDetail_20' ) end [2025-04-06 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:30:24] Production.INFO: ==15905== Releasing lock... [2025-04-06 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:30:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:31:05 [end_date_ymd] => 2025-04-06 04:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:31:05' and `end` < '2025-04-06 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-04-06 04:31:18] Production.INFO: count ==1007 [2025-04-06 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:31:05 - End Time 2025-04-06 04:31:05 [2025-04-06 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845090', 'tblTempUsageDetail_20' ) start [2025-04-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845090', 'tblTempUsageDetail_20' ) end [2025-04-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845090', 'tblTempVendorCDR_20' ) start [2025-04-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845090', 'tblTempVendorCDR_20' ) end [2025-04-06 04:31:18] Production.INFO: ProcessCDR(1,14845090,1,1,2) [2025-04-06 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845090', 'tblTempUsageDetail_20' ) start [2025-04-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845090', 'tblTempUsageDetail_20' ) end [2025-04-06 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:31:22] Production.INFO: ==16058== Releasing lock... [2025-04-06 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:31:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:32:06 [end_date_ymd] => 2025-04-06 04:32:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:32:06' and `end` < '2025-04-06 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-04-06 04:32:19] Production.INFO: count ==1017 [2025-04-06 04:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:32:06 - End Time 2025-04-06 04:32:06 [2025-04-06 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845095', 'tblTempUsageDetail_20' ) start [2025-04-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845095', 'tblTempUsageDetail_20' ) end [2025-04-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845095', 'tblTempVendorCDR_20' ) start [2025-04-06 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845095', 'tblTempVendorCDR_20' ) end [2025-04-06 04:32:19] Production.INFO: ProcessCDR(1,14845095,1,1,2) [2025-04-06 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845095', 'tblTempUsageDetail_20' ) start [2025-04-06 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845095', 'tblTempUsageDetail_20' ) end [2025-04-06 04:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:32:23] Production.INFO: ==16141== Releasing lock... [2025-04-06 04:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:32:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:33:05 [end_date_ymd] => 2025-04-06 04:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:33:05' and `end` < '2025-04-06 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-04-06 04:33:18] Production.INFO: count ==1017 [2025-04-06 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:33:05 - End Time 2025-04-06 04:33:05 [2025-04-06 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845100', 'tblTempUsageDetail_20' ) start [2025-04-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845100', 'tblTempUsageDetail_20' ) end [2025-04-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845100', 'tblTempVendorCDR_20' ) start [2025-04-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845100', 'tblTempVendorCDR_20' ) end [2025-04-06 04:33:18] Production.INFO: ProcessCDR(1,14845100,1,1,2) [2025-04-06 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845100', 'tblTempUsageDetail_20' ) start [2025-04-06 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845100', 'tblTempUsageDetail_20' ) end [2025-04-06 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:33:22] Production.INFO: ==16224== Releasing lock... [2025-04-06 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:33:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:34:06 [end_date_ymd] => 2025-04-06 04:34:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:34:06' and `end` < '2025-04-06 04: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-04-06 04:34:18] Production.INFO: count ==1015 [2025-04-06 04:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:34:06 - End Time 2025-04-06 04:34:06 [2025-04-06 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845105', 'tblTempUsageDetail_20' ) start [2025-04-06 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845105', 'tblTempUsageDetail_20' ) end [2025-04-06 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845105', 'tblTempVendorCDR_20' ) start [2025-04-06 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845105', 'tblTempVendorCDR_20' ) end [2025-04-06 04:34:19] Production.INFO: ProcessCDR(1,14845105,1,1,2) [2025-04-06 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845105', 'tblTempUsageDetail_20' ) start [2025-04-06 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845105', 'tblTempUsageDetail_20' ) end [2025-04-06 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:34:22] Production.INFO: ==16302== Releasing lock... [2025-04-06 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:34:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:35:05 [end_date_ymd] => 2025-04-06 04:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:35:05' and `end` < '2025-04-06 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-04-06 04:35:18] Production.INFO: count ==1015 [2025-04-06 04:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:35:05 - End Time 2025-04-06 04:35:05 [2025-04-06 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845110', 'tblTempUsageDetail_20' ) start [2025-04-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845110', 'tblTempUsageDetail_20' ) end [2025-04-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845110', 'tblTempVendorCDR_20' ) start [2025-04-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845110', 'tblTempVendorCDR_20' ) end [2025-04-06 04:35:19] Production.INFO: ProcessCDR(1,14845110,1,1,2) [2025-04-06 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845110', 'tblTempUsageDetail_20' ) start [2025-04-06 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845110', 'tblTempUsageDetail_20' ) end [2025-04-06 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:35:22] Production.INFO: ==16422== Releasing lock... [2025-04-06 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:35:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:36:06 [end_date_ymd] => 2025-04-06 04:36:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:36:06' and `end` < '2025-04-06 04: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-04-06 04:36:18] Production.INFO: count ==1015 [2025-04-06 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:36:06 - End Time 2025-04-06 04:36:06 [2025-04-06 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845115', 'tblTempUsageDetail_20' ) start [2025-04-06 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845115', 'tblTempUsageDetail_20' ) end [2025-04-06 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845115', 'tblTempVendorCDR_20' ) start [2025-04-06 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845115', 'tblTempVendorCDR_20' ) end [2025-04-06 04:36:19] Production.INFO: ProcessCDR(1,14845115,1,1,2) [2025-04-06 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845115', 'tblTempUsageDetail_20' ) start [2025-04-06 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845115', 'tblTempUsageDetail_20' ) end [2025-04-06 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:36:22] Production.INFO: ==16502== Releasing lock... [2025-04-06 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:36:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:37:05 [end_date_ymd] => 2025-04-06 04:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:37:05' and `end` < '2025-04-06 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-04-06 04:37:17] Production.INFO: count ==1015 [2025-04-06 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:37:05 - End Time 2025-04-06 04:37:05 [2025-04-06 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845120', 'tblTempUsageDetail_20' ) start [2025-04-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845120', 'tblTempUsageDetail_20' ) end [2025-04-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845120', 'tblTempVendorCDR_20' ) start [2025-04-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845120', 'tblTempVendorCDR_20' ) end [2025-04-06 04:37:18] Production.INFO: ProcessCDR(1,14845120,1,1,2) [2025-04-06 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845120', 'tblTempUsageDetail_20' ) start [2025-04-06 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845120', 'tblTempUsageDetail_20' ) end [2025-04-06 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:37:21] Production.INFO: ==16586== Releasing lock... [2025-04-06 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:37:21] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:38:05 [end_date_ymd] => 2025-04-06 04:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:38:05' and `end` < '2025-04-06 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-04-06 04:38:18] Production.INFO: count ==1015 [2025-04-06 04:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:38:05 - End Time 2025-04-06 04:38:05 [2025-04-06 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845125', 'tblTempUsageDetail_20' ) start [2025-04-06 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845125', 'tblTempUsageDetail_20' ) end [2025-04-06 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845125', 'tblTempVendorCDR_20' ) start [2025-04-06 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845125', 'tblTempVendorCDR_20' ) end [2025-04-06 04:38:19] Production.INFO: ProcessCDR(1,14845125,1,1,2) [2025-04-06 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845125', 'tblTempUsageDetail_20' ) start [2025-04-06 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845125', 'tblTempUsageDetail_20' ) end [2025-04-06 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:38:22] Production.INFO: ==16665== Releasing lock... [2025-04-06 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:38:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:39:05 [end_date_ymd] => 2025-04-06 04:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:39:05' and `end` < '2025-04-06 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-04-06 04:39:18] Production.INFO: count ==1020 [2025-04-06 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:39:05 - End Time 2025-04-06 04:39:05 [2025-04-06 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845130', 'tblTempUsageDetail_20' ) start [2025-04-06 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845130', 'tblTempUsageDetail_20' ) end [2025-04-06 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845130', 'tblTempVendorCDR_20' ) start [2025-04-06 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845130', 'tblTempVendorCDR_20' ) end [2025-04-06 04:39:18] Production.INFO: ProcessCDR(1,14845130,1,1,2) [2025-04-06 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845130', 'tblTempUsageDetail_20' ) start [2025-04-06 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845130', 'tblTempUsageDetail_20' ) end [2025-04-06 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:39:21] Production.INFO: ==16743== Releasing lock... [2025-04-06 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:39:21] Production.INFO: 36 MB #Memory Used# [2025-04-06 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:40:06 [end_date_ymd] => 2025-04-06 04:40:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:40:06' and `end` < '2025-04-06 04: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-04-06 04:40:20] Production.INFO: count ==1024 [2025-04-06 04:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:40:06 - End Time 2025-04-06 04:40:06 [2025-04-06 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845136', 'tblTempUsageDetail_20' ) start [2025-04-06 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845136', 'tblTempUsageDetail_20' ) end [2025-04-06 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845136', 'tblTempVendorCDR_20' ) start [2025-04-06 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845136', 'tblTempVendorCDR_20' ) end [2025-04-06 04:40:20] Production.INFO: ProcessCDR(1,14845136,1,1,2) [2025-04-06 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845136', 'tblTempUsageDetail_20' ) start [2025-04-06 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845136', 'tblTempUsageDetail_20' ) end [2025-04-06 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:40:23] Production.INFO: ==16824== Releasing lock... [2025-04-06 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:41:05 [end_date_ymd] => 2025-04-06 04:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:41:05' and `end` < '2025-04-06 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-04-06 04:41:18] Production.INFO: count ==1018 [2025-04-06 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:41:05 - End Time 2025-04-06 04:41:05 [2025-04-06 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845141', 'tblTempUsageDetail_20' ) start [2025-04-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845141', 'tblTempUsageDetail_20' ) end [2025-04-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845141', 'tblTempVendorCDR_20' ) start [2025-04-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845141', 'tblTempVendorCDR_20' ) end [2025-04-06 04:41:18] Production.INFO: ProcessCDR(1,14845141,1,1,2) [2025-04-06 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845141', 'tblTempUsageDetail_20' ) start [2025-04-06 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845141', 'tblTempUsageDetail_20' ) end [2025-04-06 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:41:22] Production.INFO: ==16907== Releasing lock... [2025-04-06 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:42:06 [end_date_ymd] => 2025-04-06 04:42:06 [RateCDR] => 1 ) [2025-04-06 04:42: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-04-06 01:42:06' and `end` < '2025-04-06 04:42: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-04-06 04:42:19] Production.INFO: count ==1021 [2025-04-06 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:42:06 - End Time 2025-04-06 04:42:06 [2025-04-06 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845146', 'tblTempUsageDetail_20' ) start [2025-04-06 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845146', 'tblTempUsageDetail_20' ) end [2025-04-06 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845146', 'tblTempVendorCDR_20' ) start [2025-04-06 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845146', 'tblTempVendorCDR_20' ) end [2025-04-06 04:42:19] Production.INFO: ProcessCDR(1,14845146,1,1,2) [2025-04-06 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845146', 'tblTempUsageDetail_20' ) start [2025-04-06 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845146', 'tblTempUsageDetail_20' ) end [2025-04-06 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:42:23] Production.INFO: ==16986== Releasing lock... [2025-04-06 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:42:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:43:05 [end_date_ymd] => 2025-04-06 04:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:43:05' and `end` < '2025-04-06 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-04-06 04:43:18] Production.INFO: count ==1021 [2025-04-06 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:43:05 - End Time 2025-04-06 04:43:05 [2025-04-06 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845151', 'tblTempUsageDetail_20' ) start [2025-04-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845151', 'tblTempUsageDetail_20' ) end [2025-04-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845151', 'tblTempVendorCDR_20' ) start [2025-04-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845151', 'tblTempVendorCDR_20' ) end [2025-04-06 04:43:18] Production.INFO: ProcessCDR(1,14845151,1,1,2) [2025-04-06 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845151', 'tblTempUsageDetail_20' ) start [2025-04-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845151', 'tblTempUsageDetail_20' ) end [2025-04-06 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:43:21] Production.INFO: ==17064== Releasing lock... [2025-04-06 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:44:06 [end_date_ymd] => 2025-04-06 04:44:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:44:06' and `end` < '2025-04-06 04: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-04-06 04:44:18] Production.INFO: count ==1020 [2025-04-06 04:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:44:06 - End Time 2025-04-06 04:44:06 [2025-04-06 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845156', 'tblTempUsageDetail_20' ) start [2025-04-06 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845156', 'tblTempUsageDetail_20' ) end [2025-04-06 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845156', 'tblTempVendorCDR_20' ) start [2025-04-06 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845156', 'tblTempVendorCDR_20' ) end [2025-04-06 04:44:19] Production.INFO: ProcessCDR(1,14845156,1,1,2) [2025-04-06 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845156', 'tblTempUsageDetail_20' ) start [2025-04-06 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845156', 'tblTempUsageDetail_20' ) end [2025-04-06 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:44:22] Production.INFO: ==17141== Releasing lock... [2025-04-06 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:45:05 [end_date_ymd] => 2025-04-06 04:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:45:05' and `end` < '2025-04-06 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-04-06 04:45:18] Production.INFO: count ==1014 [2025-04-06 04:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:45:05 - End Time 2025-04-06 04:45:05 [2025-04-06 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845161', 'tblTempUsageDetail_20' ) start [2025-04-06 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845161', 'tblTempUsageDetail_20' ) end [2025-04-06 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845161', 'tblTempVendorCDR_20' ) start [2025-04-06 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845161', 'tblTempVendorCDR_20' ) end [2025-04-06 04:45:19] Production.INFO: ProcessCDR(1,14845161,1,1,2) [2025-04-06 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845161', 'tblTempUsageDetail_20' ) start [2025-04-06 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845161', 'tblTempUsageDetail_20' ) end [2025-04-06 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:45:22] Production.INFO: ==17219== Releasing lock... [2025-04-06 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:46:05 [end_date_ymd] => 2025-04-06 04:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:46:05' and `end` < '2025-04-06 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-04-06 04:46:18] Production.INFO: count ==1283 [2025-04-06 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:46:05 - End Time 2025-04-06 04:46:05 [2025-04-06 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845166', 'tblTempUsageDetail_20' ) start [2025-04-06 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845166', 'tblTempUsageDetail_20' ) end [2025-04-06 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845166', 'tblTempVendorCDR_20' ) start [2025-04-06 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845166', 'tblTempVendorCDR_20' ) end [2025-04-06 04:46:19] Production.INFO: ProcessCDR(1,14845166,1,1,2) [2025-04-06 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845166', 'tblTempUsageDetail_20' ) start [2025-04-06 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845166', 'tblTempUsageDetail_20' ) end [2025-04-06 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:46:23] Production.INFO: ==17300== Releasing lock... [2025-04-06 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:46:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:47:05 [end_date_ymd] => 2025-04-06 04:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:47:05' and `end` < '2025-04-06 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-04-06 04:47:19] Production.INFO: count ==1283 [2025-04-06 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:47:05 - End Time 2025-04-06 04:47:05 [2025-04-06 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845171', 'tblTempUsageDetail_20' ) start [2025-04-06 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845171', 'tblTempUsageDetail_20' ) end [2025-04-06 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845171', 'tblTempVendorCDR_20' ) start [2025-04-06 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845171', 'tblTempVendorCDR_20' ) end [2025-04-06 04:47:19] Production.INFO: ProcessCDR(1,14845171,1,1,2) [2025-04-06 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845171', 'tblTempUsageDetail_20' ) start [2025-04-06 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845171', 'tblTempUsageDetail_20' ) end [2025-04-06 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:47:22] Production.INFO: ==17380== Releasing lock... [2025-04-06 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:47:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:48:05 [end_date_ymd] => 2025-04-06 04:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:48:05' and `end` < '2025-04-06 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-04-06 04:48:19] Production.INFO: count ==1281 [2025-04-06 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:48:05 - End Time 2025-04-06 04:48:05 [2025-04-06 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845176', 'tblTempUsageDetail_20' ) start [2025-04-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845176', 'tblTempUsageDetail_20' ) end [2025-04-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845176', 'tblTempVendorCDR_20' ) start [2025-04-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845176', 'tblTempVendorCDR_20' ) end [2025-04-06 04:48:20] Production.INFO: ProcessCDR(1,14845176,1,1,2) [2025-04-06 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845176', 'tblTempUsageDetail_20' ) start [2025-04-06 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845176', 'tblTempUsageDetail_20' ) end [2025-04-06 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:48:23] Production.INFO: ==17458== Releasing lock... [2025-04-06 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:48:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:49:06 [end_date_ymd] => 2025-04-06 04:49:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:49:06' and `end` < '2025-04-06 04: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-04-06 04:49:19] Production.INFO: count ==1279 [2025-04-06 04:49:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:49:06 - End Time 2025-04-06 04:49:06 [2025-04-06 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845181', 'tblTempUsageDetail_20' ) start [2025-04-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845181', 'tblTempUsageDetail_20' ) end [2025-04-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845181', 'tblTempVendorCDR_20' ) start [2025-04-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845181', 'tblTempVendorCDR_20' ) end [2025-04-06 04:49:20] Production.INFO: ProcessCDR(1,14845181,1,1,2) [2025-04-06 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845181', 'tblTempUsageDetail_20' ) start [2025-04-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845181', 'tblTempUsageDetail_20' ) end [2025-04-06 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:49:23] Production.INFO: ==17537== Releasing lock... [2025-04-06 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:49:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:50:06 [end_date_ymd] => 2025-04-06 04:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:50:06' and `end` < '2025-04-06 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-04-06 04:50:20] Production.INFO: count ==1275 [2025-04-06 04:50:21] Production.ERROR: pbx CDR StartTime 2025-04-06 01:50:06 - End Time 2025-04-06 04:50:06 [2025-04-06 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845187', 'tblTempUsageDetail_20' ) start [2025-04-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845187', 'tblTempUsageDetail_20' ) end [2025-04-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845187', 'tblTempVendorCDR_20' ) start [2025-04-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845187', 'tblTempVendorCDR_20' ) end [2025-04-06 04:50:21] Production.INFO: ProcessCDR(1,14845187,1,1,2) [2025-04-06 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845187', 'tblTempUsageDetail_20' ) start [2025-04-06 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845187', 'tblTempUsageDetail_20' ) end [2025-04-06 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:50:24] Production.INFO: ==17656== Releasing lock... [2025-04-06 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:50:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:51:06 [end_date_ymd] => 2025-04-06 04:51:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:51:06' and `end` < '2025-04-06 04: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-04-06 04:51:18] Production.INFO: count ==1269 [2025-04-06 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:51:06 - End Time 2025-04-06 04:51:06 [2025-04-06 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845192', 'tblTempUsageDetail_20' ) start [2025-04-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845192', 'tblTempUsageDetail_20' ) end [2025-04-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845192', 'tblTempVendorCDR_20' ) start [2025-04-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845192', 'tblTempVendorCDR_20' ) end [2025-04-06 04:51:19] Production.INFO: ProcessCDR(1,14845192,1,1,2) [2025-04-06 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845192', 'tblTempUsageDetail_20' ) start [2025-04-06 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845192', 'tblTempUsageDetail_20' ) end [2025-04-06 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:51:23] Production.INFO: ==17732== Releasing lock... [2025-04-06 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:51:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:52:05 [end_date_ymd] => 2025-04-06 04:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:52:05' and `end` < '2025-04-06 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-04-06 04:52:18] Production.INFO: count ==1266 [2025-04-06 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 01:52:05 - End Time 2025-04-06 04:52:05 [2025-04-06 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845197', 'tblTempUsageDetail_20' ) start [2025-04-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845197', 'tblTempUsageDetail_20' ) end [2025-04-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845197', 'tblTempVendorCDR_20' ) start [2025-04-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845197', 'tblTempVendorCDR_20' ) end [2025-04-06 04:52:18] Production.INFO: ProcessCDR(1,14845197,1,1,2) [2025-04-06 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845197', 'tblTempUsageDetail_20' ) start [2025-04-06 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845197', 'tblTempUsageDetail_20' ) end [2025-04-06 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:52:22] Production.INFO: ==17811== Releasing lock... [2025-04-06 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:53:06 [end_date_ymd] => 2025-04-06 04:53:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:53:06' and `end` < '2025-04-06 04: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-04-06 04:53:20] Production.INFO: count ==1266 [2025-04-06 04:53:21] Production.ERROR: pbx CDR StartTime 2025-04-06 01:53:06 - End Time 2025-04-06 04:53:06 [2025-04-06 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845202', 'tblTempUsageDetail_20' ) start [2025-04-06 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845202', 'tblTempUsageDetail_20' ) end [2025-04-06 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845202', 'tblTempVendorCDR_20' ) start [2025-04-06 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845202', 'tblTempVendorCDR_20' ) end [2025-04-06 04:53:21] Production.INFO: ProcessCDR(1,14845202,1,1,2) [2025-04-06 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845202', 'tblTempUsageDetail_20' ) start [2025-04-06 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845202', 'tblTempUsageDetail_20' ) end [2025-04-06 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:53:24] Production.INFO: ==17906== Releasing lock... [2025-04-06 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:53:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:54:05 [end_date_ymd] => 2025-04-06 04:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:54:05' and `end` < '2025-04-06 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-04-06 04:54:18] Production.INFO: count ==1265 [2025-04-06 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 01:54:05 - End Time 2025-04-06 04:54:05 [2025-04-06 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845207', 'tblTempUsageDetail_20' ) start [2025-04-06 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845207', 'tblTempUsageDetail_20' ) end [2025-04-06 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845207', 'tblTempVendorCDR_20' ) start [2025-04-06 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845207', 'tblTempVendorCDR_20' ) end [2025-04-06 04:54:19] Production.INFO: ProcessCDR(1,14845207,1,1,2) [2025-04-06 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845207', 'tblTempUsageDetail_20' ) start [2025-04-06 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845207', 'tblTempUsageDetail_20' ) end [2025-04-06 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:54:22] Production.INFO: ==17983== Releasing lock... [2025-04-06 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:55:06 [end_date_ymd] => 2025-04-06 04:55:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:55:06' and `end` < '2025-04-06 04: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-04-06 04:55:19] Production.INFO: count ==1269 [2025-04-06 04:55:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:55:06 - End Time 2025-04-06 04:55:06 [2025-04-06 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845212', 'tblTempUsageDetail_20' ) start [2025-04-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845212', 'tblTempUsageDetail_20' ) end [2025-04-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845212', 'tblTempVendorCDR_20' ) start [2025-04-06 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845212', 'tblTempVendorCDR_20' ) end [2025-04-06 04:55:20] Production.INFO: ProcessCDR(1,14845212,1,1,2) [2025-04-06 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845212', 'tblTempUsageDetail_20' ) start [2025-04-06 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845212', 'tblTempUsageDetail_20' ) end [2025-04-06 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:55:23] Production.INFO: ==18062== Releasing lock... [2025-04-06 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:56:05 [end_date_ymd] => 2025-04-06 04:56:05 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:56:05' and `end` < '2025-04-06 04: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-04-06 04:56:20] Production.INFO: count ==1273 [2025-04-06 04:56:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:56:05 - End Time 2025-04-06 04:56:05 [2025-04-06 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845217', 'tblTempUsageDetail_20' ) start [2025-04-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845217', 'tblTempUsageDetail_20' ) end [2025-04-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845217', 'tblTempVendorCDR_20' ) start [2025-04-06 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845217', 'tblTempVendorCDR_20' ) end [2025-04-06 04:56:20] Production.INFO: ProcessCDR(1,14845217,1,1,2) [2025-04-06 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845217', 'tblTempUsageDetail_20' ) start [2025-04-06 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845217', 'tblTempUsageDetail_20' ) end [2025-04-06 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:56:24] Production.INFO: ==18145== Releasing lock... [2025-04-06 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:56:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:57:05 [end_date_ymd] => 2025-04-06 04:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:57:05' and `end` < '2025-04-06 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-04-06 04:57:20] Production.INFO: count ==1273 [2025-04-06 04:57:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:57:05 - End Time 2025-04-06 04:57:05 [2025-04-06 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845222', 'tblTempUsageDetail_20' ) start [2025-04-06 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845222', 'tblTempUsageDetail_20' ) end [2025-04-06 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845222', 'tblTempVendorCDR_20' ) start [2025-04-06 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845222', 'tblTempVendorCDR_20' ) end [2025-04-06 04:57:20] Production.INFO: ProcessCDR(1,14845222,1,1,2) [2025-04-06 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845222', 'tblTempUsageDetail_20' ) start [2025-04-06 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845222', 'tblTempUsageDetail_20' ) end [2025-04-06 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:57:24] Production.INFO: ==18224== Releasing lock... [2025-04-06 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:57:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:58:05 [end_date_ymd] => 2025-04-06 04:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 01:58:05' and `end` < '2025-04-06 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-04-06 04:58:19] Production.INFO: count ==1273 [2025-04-06 04:58:20] Production.ERROR: pbx CDR StartTime 2025-04-06 01:58:05 - End Time 2025-04-06 04:58:05 [2025-04-06 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845227', 'tblTempUsageDetail_20' ) start [2025-04-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845227', 'tblTempUsageDetail_20' ) end [2025-04-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845227', 'tblTempVendorCDR_20' ) start [2025-04-06 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845227', 'tblTempVendorCDR_20' ) end [2025-04-06 04:58:20] Production.INFO: ProcessCDR(1,14845227,1,1,2) [2025-04-06 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845227', 'tblTempUsageDetail_20' ) start [2025-04-06 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845227', 'tblTempUsageDetail_20' ) end [2025-04-06 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:58:23] Production.INFO: ==18298== Releasing lock... [2025-04-06 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:58:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 01:59:06 [end_date_ymd] => 2025-04-06 04:59:06 [RateCDR] => 1 ) [2025-04-06 04: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-04-06 01:59:06' and `end` < '2025-04-06 04: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-04-06 04:59:21] Production.INFO: count ==1267 [2025-04-06 04:59:21] Production.ERROR: pbx CDR StartTime 2025-04-06 01:59:06 - End Time 2025-04-06 04:59:06 [2025-04-06 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845232', 'tblTempUsageDetail_20' ) start [2025-04-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845232', 'tblTempUsageDetail_20' ) end [2025-04-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845232', 'tblTempVendorCDR_20' ) start [2025-04-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845232', 'tblTempVendorCDR_20' ) end [2025-04-06 04:59:21] Production.INFO: ProcessCDR(1,14845232,1,1,2) [2025-04-06 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845232', 'tblTempUsageDetail_20' ) start [2025-04-06 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845232', 'tblTempUsageDetail_20' ) end [2025-04-06 04:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 04:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 04:59:25] Production.INFO: ==18376== Releasing lock... [2025-04-06 04:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 04:59:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:00:06 [end_date_ymd] => 2025-04-06 05:00:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:00:06' and `end` < '2025-04-06 05: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-04-06 05:00:19] Production.INFO: count ==1264 [2025-04-06 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:00:06 - End Time 2025-04-06 05:00:06 [2025-04-06 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845238', 'tblTempUsageDetail_20' ) start [2025-04-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845238', 'tblTempUsageDetail_20' ) end [2025-04-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845238', 'tblTempVendorCDR_20' ) start [2025-04-06 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845238', 'tblTempVendorCDR_20' ) end [2025-04-06 05:00:20] Production.INFO: ProcessCDR(1,14845238,1,1,2) [2025-04-06 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845238', 'tblTempUsageDetail_20' ) start [2025-04-06 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845238', 'tblTempUsageDetail_20' ) end [2025-04-06 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:00:23] Production.INFO: ==18453== Releasing lock... [2025-04-06 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:00:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:01:06 [end_date_ymd] => 2025-04-06 05:01:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:01:06' and `end` < '2025-04-06 05: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-04-06 05:01:19] Production.INFO: count ==1269 [2025-04-06 05:01:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:01:06 - End Time 2025-04-06 05:01:06 [2025-04-06 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845243', 'tblTempUsageDetail_20' ) start [2025-04-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845243', 'tblTempUsageDetail_20' ) end [2025-04-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845243', 'tblTempVendorCDR_20' ) start [2025-04-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845243', 'tblTempVendorCDR_20' ) end [2025-04-06 05:01:20] Production.INFO: ProcessCDR(1,14845243,1,1,2) [2025-04-06 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845243', 'tblTempUsageDetail_20' ) start [2025-04-06 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845243', 'tblTempUsageDetail_20' ) end [2025-04-06 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:01:23] Production.INFO: ==18545== Releasing lock... [2025-04-06 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:01:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:02:06 [end_date_ymd] => 2025-04-06 05:02:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:02:06' and `end` < '2025-04-06 05: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-04-06 05:02:19] Production.INFO: count ==1261 [2025-04-06 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:02:06 - End Time 2025-04-06 05:02:06 [2025-04-06 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845248', 'tblTempUsageDetail_20' ) start [2025-04-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845248', 'tblTempUsageDetail_20' ) end [2025-04-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845248', 'tblTempVendorCDR_20' ) start [2025-04-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845248', 'tblTempVendorCDR_20' ) end [2025-04-06 05:02:19] Production.INFO: ProcessCDR(1,14845248,1,1,2) [2025-04-06 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845248', 'tblTempUsageDetail_20' ) start [2025-04-06 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845248', 'tblTempUsageDetail_20' ) end [2025-04-06 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:02:23] Production.INFO: ==18618== Releasing lock... [2025-04-06 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:02:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:03:05 [end_date_ymd] => 2025-04-06 05:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:03:05' and `end` < '2025-04-06 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-04-06 05:03:18] Production.INFO: count ==1252 [2025-04-06 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:03:05 - End Time 2025-04-06 05:03:05 [2025-04-06 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845253', 'tblTempUsageDetail_20' ) start [2025-04-06 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845253', 'tblTempUsageDetail_20' ) end [2025-04-06 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845253', 'tblTempVendorCDR_20' ) start [2025-04-06 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845253', 'tblTempVendorCDR_20' ) end [2025-04-06 05:03:19] Production.INFO: ProcessCDR(1,14845253,1,1,2) [2025-04-06 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845253', 'tblTempUsageDetail_20' ) start [2025-04-06 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845253', 'tblTempUsageDetail_20' ) end [2025-04-06 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:03:22] Production.INFO: ==18696== Releasing lock... [2025-04-06 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:04:06 [end_date_ymd] => 2025-04-06 05:04:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:04:06' and `end` < '2025-04-06 05: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-04-06 05:04:19] Production.INFO: count ==1357 [2025-04-06 05:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:04:06 - End Time 2025-04-06 05:04:06 [2025-04-06 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845258', 'tblTempUsageDetail_20' ) start [2025-04-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845258', 'tblTempUsageDetail_20' ) end [2025-04-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845258', 'tblTempVendorCDR_20' ) start [2025-04-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845258', 'tblTempVendorCDR_20' ) end [2025-04-06 05:04:19] Production.INFO: ProcessCDR(1,14845258,1,1,2) [2025-04-06 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845258', 'tblTempUsageDetail_20' ) start [2025-04-06 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845258', 'tblTempUsageDetail_20' ) end [2025-04-06 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:04:23] Production.INFO: ==18775== Releasing lock... [2025-04-06 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:05:06 [end_date_ymd] => 2025-04-06 05:05:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:05:06' and `end` < '2025-04-06 05: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-04-06 05:05:19] Production.INFO: count ==1363 [2025-04-06 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:05:06 - End Time 2025-04-06 05:05:06 [2025-04-06 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845263', 'tblTempUsageDetail_20' ) start [2025-04-06 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845263', 'tblTempUsageDetail_20' ) end [2025-04-06 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845263', 'tblTempVendorCDR_20' ) start [2025-04-06 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845263', 'tblTempVendorCDR_20' ) end [2025-04-06 05:05:19] Production.INFO: ProcessCDR(1,14845263,1,1,2) [2025-04-06 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845263', 'tblTempUsageDetail_20' ) start [2025-04-06 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845263', 'tblTempUsageDetail_20' ) end [2025-04-06 05:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:05:23] Production.INFO: ==18853== Releasing lock... [2025-04-06 05:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:06:05 [end_date_ymd] => 2025-04-06 05:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:06:05' and `end` < '2025-04-06 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-04-06 05:06:19] Production.INFO: count ==1370 [2025-04-06 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:06:05 - End Time 2025-04-06 05:06:05 [2025-04-06 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845268', 'tblTempUsageDetail_20' ) start [2025-04-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845268', 'tblTempUsageDetail_20' ) end [2025-04-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845268', 'tblTempVendorCDR_20' ) start [2025-04-06 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845268', 'tblTempVendorCDR_20' ) end [2025-04-06 05:06:19] Production.INFO: ProcessCDR(1,14845268,1,1,2) [2025-04-06 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845268', 'tblTempUsageDetail_20' ) start [2025-04-06 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845268', 'tblTempUsageDetail_20' ) end [2025-04-06 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:06:23] Production.INFO: ==18969== Releasing lock... [2025-04-06 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:07:05 [end_date_ymd] => 2025-04-06 05:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:07:05' and `end` < '2025-04-06 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-04-06 05:07:18] Production.INFO: count ==1370 [2025-04-06 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:07:05 - End Time 2025-04-06 05:07:05 [2025-04-06 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845273', 'tblTempUsageDetail_20' ) start [2025-04-06 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845273', 'tblTempUsageDetail_20' ) end [2025-04-06 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845273', 'tblTempVendorCDR_20' ) start [2025-04-06 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845273', 'tblTempVendorCDR_20' ) end [2025-04-06 05:07:19] Production.INFO: ProcessCDR(1,14845273,1,1,2) [2025-04-06 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845273', 'tblTempUsageDetail_20' ) start [2025-04-06 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845273', 'tblTempUsageDetail_20' ) end [2025-04-06 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:07:22] Production.INFO: ==19045== Releasing lock... [2025-04-06 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:08:06 [end_date_ymd] => 2025-04-06 05:08:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:08:06' and `end` < '2025-04-06 05: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-04-06 05:08:19] Production.INFO: count ==1367 [2025-04-06 05:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:08:06 - End Time 2025-04-06 05:08:06 [2025-04-06 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845278', 'tblTempUsageDetail_20' ) start [2025-04-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845278', 'tblTempUsageDetail_20' ) end [2025-04-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845278', 'tblTempVendorCDR_20' ) start [2025-04-06 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845278', 'tblTempVendorCDR_20' ) end [2025-04-06 05:08:19] Production.INFO: ProcessCDR(1,14845278,1,1,2) [2025-04-06 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845278', 'tblTempUsageDetail_20' ) start [2025-04-06 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845278', 'tblTempUsageDetail_20' ) end [2025-04-06 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:08:23] Production.INFO: ==19132== Releasing lock... [2025-04-06 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:08:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:09:05 [end_date_ymd] => 2025-04-06 05:09:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:09:05' and `end` < '2025-04-06 05: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-04-06 05:09:18] Production.INFO: count ==1360 [2025-04-06 05:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:09:05 - End Time 2025-04-06 05:09:05 [2025-04-06 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845283', 'tblTempUsageDetail_20' ) start [2025-04-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845283', 'tblTempUsageDetail_20' ) end [2025-04-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845283', 'tblTempVendorCDR_20' ) start [2025-04-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845283', 'tblTempVendorCDR_20' ) end [2025-04-06 05:09:19] Production.INFO: ProcessCDR(1,14845283,1,1,2) [2025-04-06 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845283', 'tblTempUsageDetail_20' ) start [2025-04-06 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845283', 'tblTempUsageDetail_20' ) end [2025-04-06 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:09:22] Production.INFO: ==19207== Releasing lock... [2025-04-06 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:09:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:10:07 [end_date_ymd] => 2025-04-06 05:10:07 [RateCDR] => 1 ) [2025-04-06 05:10: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-04-06 02:10:07' and `end` < '2025-04-06 05:10: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-04-06 05:10:19] Production.INFO: count ==1333 [2025-04-06 05:10:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:10:07 - End Time 2025-04-06 05:10:07 [2025-04-06 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845288', 'tblTempUsageDetail_20' ) start [2025-04-06 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845288', 'tblTempUsageDetail_20' ) end [2025-04-06 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845288', 'tblTempVendorCDR_20' ) start [2025-04-06 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845288', 'tblTempVendorCDR_20' ) end [2025-04-06 05:10:20] Production.INFO: ProcessCDR(1,14845288,1,1,2) [2025-04-06 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845288', 'tblTempUsageDetail_20' ) start [2025-04-06 05:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845288', 'tblTempUsageDetail_20' ) end [2025-04-06 05:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:10:24] Production.INFO: ==19290== Releasing lock... [2025-04-06 05:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:10:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:11:06 [end_date_ymd] => 2025-04-06 05:11:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:11:06' and `end` < '2025-04-06 05: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-04-06 05:11:19] Production.INFO: count ==1320 [2025-04-06 05:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:11:06 - End Time 2025-04-06 05:11:06 [2025-04-06 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845294', 'tblTempUsageDetail_20' ) start [2025-04-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845294', 'tblTempUsageDetail_20' ) end [2025-04-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845294', 'tblTempVendorCDR_20' ) start [2025-04-06 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845294', 'tblTempVendorCDR_20' ) end [2025-04-06 05:11:19] Production.INFO: ProcessCDR(1,14845294,1,1,2) [2025-04-06 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845294', 'tblTempUsageDetail_20' ) start [2025-04-06 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845294', 'tblTempUsageDetail_20' ) end [2025-04-06 05:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:11:23] Production.INFO: ==19374== Releasing lock... [2025-04-06 05:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:11:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:12:05 [end_date_ymd] => 2025-04-06 05:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:12:05' and `end` < '2025-04-06 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-04-06 05:12:18] Production.INFO: count ==1320 [2025-04-06 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:12:05 - End Time 2025-04-06 05:12:05 [2025-04-06 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845299', 'tblTempUsageDetail_20' ) start [2025-04-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845299', 'tblTempUsageDetail_20' ) end [2025-04-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845299', 'tblTempVendorCDR_20' ) start [2025-04-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845299', 'tblTempVendorCDR_20' ) end [2025-04-06 05:12:18] Production.INFO: ProcessCDR(1,14845299,1,1,2) [2025-04-06 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845299', 'tblTempUsageDetail_20' ) start [2025-04-06 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845299', 'tblTempUsageDetail_20' ) end [2025-04-06 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:12:22] Production.INFO: ==19448== Releasing lock... [2025-04-06 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:12:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:13:05 [end_date_ymd] => 2025-04-06 05:13:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:13:05' and `end` < '2025-04-06 05: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-04-06 05:13:18] Production.INFO: count ==1309 [2025-04-06 05:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:13:05 - End Time 2025-04-06 05:13:05 [2025-04-06 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845304', 'tblTempUsageDetail_20' ) start [2025-04-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845304', 'tblTempUsageDetail_20' ) end [2025-04-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845304', 'tblTempVendorCDR_20' ) start [2025-04-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845304', 'tblTempVendorCDR_20' ) end [2025-04-06 05:13:19] Production.INFO: ProcessCDR(1,14845304,1,1,2) [2025-04-06 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845304', 'tblTempUsageDetail_20' ) start [2025-04-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845304', 'tblTempUsageDetail_20' ) end [2025-04-06 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:13:22] Production.INFO: ==19519== Releasing lock... [2025-04-06 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:13:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:14:05 [end_date_ymd] => 2025-04-06 05:14:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:14:05' and `end` < '2025-04-06 05: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-04-06 05:14:18] Production.INFO: count ==1299 [2025-04-06 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:14:05 - End Time 2025-04-06 05:14:05 [2025-04-06 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845309', 'tblTempUsageDetail_20' ) start [2025-04-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845309', 'tblTempUsageDetail_20' ) end [2025-04-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845309', 'tblTempVendorCDR_20' ) start [2025-04-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845309', 'tblTempVendorCDR_20' ) end [2025-04-06 05:14:18] Production.INFO: ProcessCDR(1,14845309,1,1,2) [2025-04-06 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845309', 'tblTempUsageDetail_20' ) start [2025-04-06 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845309', 'tblTempUsageDetail_20' ) end [2025-04-06 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:14:22] Production.INFO: ==19593== Releasing lock... [2025-04-06 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:14:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:15:05 [end_date_ymd] => 2025-04-06 05:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:15:05' and `end` < '2025-04-06 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-04-06 05:15:18] Production.INFO: count ==1291 [2025-04-06 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:15:05 - End Time 2025-04-06 05:15:05 [2025-04-06 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845314', 'tblTempUsageDetail_20' ) start [2025-04-06 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845314', 'tblTempUsageDetail_20' ) end [2025-04-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845314', 'tblTempVendorCDR_20' ) start [2025-04-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845314', 'tblTempVendorCDR_20' ) end [2025-04-06 05:15:19] Production.INFO: ProcessCDR(1,14845314,1,1,2) [2025-04-06 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845314', 'tblTempUsageDetail_20' ) start [2025-04-06 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845314', 'tblTempUsageDetail_20' ) end [2025-04-06 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:15:22] Production.INFO: ==19669== Releasing lock... [2025-04-06 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:16:06 [end_date_ymd] => 2025-04-06 05:16:06 [RateCDR] => 1 ) [2025-04-06 05:16: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-04-06 02:16:06' and `end` < '2025-04-06 05:16: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-04-06 05:16:19] Production.INFO: count ==1290 [2025-04-06 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:16:06 - End Time 2025-04-06 05:16:06 [2025-04-06 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845319', 'tblTempUsageDetail_20' ) start [2025-04-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845319', 'tblTempUsageDetail_20' ) end [2025-04-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845319', 'tblTempVendorCDR_20' ) start [2025-04-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845319', 'tblTempVendorCDR_20' ) end [2025-04-06 05:16:19] Production.INFO: ProcessCDR(1,14845319,1,1,2) [2025-04-06 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845319', 'tblTempUsageDetail_20' ) start [2025-04-06 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845319', 'tblTempUsageDetail_20' ) end [2025-04-06 05:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:16:23] Production.INFO: ==19740== Releasing lock... [2025-04-06 05:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:17:05 [end_date_ymd] => 2025-04-06 05:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:17:05' and `end` < '2025-04-06 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-04-06 05:17:18] Production.INFO: count ==1288 [2025-04-06 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:17:05 - End Time 2025-04-06 05:17:05 [2025-04-06 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845324', 'tblTempUsageDetail_20' ) start [2025-04-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845324', 'tblTempUsageDetail_20' ) end [2025-04-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845324', 'tblTempVendorCDR_20' ) start [2025-04-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845324', 'tblTempVendorCDR_20' ) end [2025-04-06 05:17:18] Production.INFO: ProcessCDR(1,14845324,1,1,2) [2025-04-06 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845324', 'tblTempUsageDetail_20' ) start [2025-04-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845324', 'tblTempUsageDetail_20' ) end [2025-04-06 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:17:22] Production.INFO: ==19811== Releasing lock... [2025-04-06 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:17:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:18:06 [end_date_ymd] => 2025-04-06 05:18:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:18:06' and `end` < '2025-04-06 05: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-04-06 05:18:18] Production.INFO: count ==1290 [2025-04-06 05:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:18:06 - End Time 2025-04-06 05:18:06 [2025-04-06 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845329', 'tblTempUsageDetail_20' ) start [2025-04-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845329', 'tblTempUsageDetail_20' ) end [2025-04-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845329', 'tblTempVendorCDR_20' ) start [2025-04-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845329', 'tblTempVendorCDR_20' ) end [2025-04-06 05:18:19] Production.INFO: ProcessCDR(1,14845329,1,1,2) [2025-04-06 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845329', 'tblTempUsageDetail_20' ) start [2025-04-06 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845329', 'tblTempUsageDetail_20' ) end [2025-04-06 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:18:23] Production.INFO: ==19892== Releasing lock... [2025-04-06 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:18:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:19:05 [end_date_ymd] => 2025-04-06 05:19:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:19:05' and `end` < '2025-04-06 05: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-04-06 05:19:17] Production.INFO: count ==1290 [2025-04-06 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:19:05 - End Time 2025-04-06 05:19:05 [2025-04-06 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845334', 'tblTempUsageDetail_20' ) start [2025-04-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845334', 'tblTempUsageDetail_20' ) end [2025-04-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845334', 'tblTempVendorCDR_20' ) start [2025-04-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845334', 'tblTempVendorCDR_20' ) end [2025-04-06 05:19:18] Production.INFO: ProcessCDR(1,14845334,1,1,2) [2025-04-06 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845334', 'tblTempUsageDetail_20' ) start [2025-04-06 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845334', 'tblTempUsageDetail_20' ) end [2025-04-06 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:19:21] Production.INFO: ==19965== Releasing lock... [2025-04-06 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:19:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:20:06 [end_date_ymd] => 2025-04-06 05:20:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:20:06' and `end` < '2025-04-06 05: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-04-06 05:20:19] Production.INFO: count ==1290 [2025-04-06 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:20:06 - End Time 2025-04-06 05:20:06 [2025-04-06 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845340', 'tblTempUsageDetail_20' ) start [2025-04-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845340', 'tblTempUsageDetail_20' ) end [2025-04-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845340', 'tblTempVendorCDR_20' ) start [2025-04-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845340', 'tblTempVendorCDR_20' ) end [2025-04-06 05:20:19] Production.INFO: ProcessCDR(1,14845340,1,1,2) [2025-04-06 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845340', 'tblTempUsageDetail_20' ) start [2025-04-06 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845340', 'tblTempUsageDetail_20' ) end [2025-04-06 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:20:23] Production.INFO: ==20038== Releasing lock... [2025-04-06 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:20:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:21:05 [end_date_ymd] => 2025-04-06 05:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:21:05' and `end` < '2025-04-06 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-04-06 05:21:18] Production.INFO: count ==1290 [2025-04-06 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:21:05 - End Time 2025-04-06 05:21:05 [2025-04-06 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845345', 'tblTempUsageDetail_20' ) start [2025-04-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845345', 'tblTempUsageDetail_20' ) end [2025-04-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845345', 'tblTempVendorCDR_20' ) start [2025-04-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845345', 'tblTempVendorCDR_20' ) end [2025-04-06 05:21:18] Production.INFO: ProcessCDR(1,14845345,1,1,2) [2025-04-06 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845345', 'tblTempUsageDetail_20' ) start [2025-04-06 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845345', 'tblTempUsageDetail_20' ) end [2025-04-06 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:21:22] Production.INFO: ==20153== Releasing lock... [2025-04-06 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:21:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:22:05 [end_date_ymd] => 2025-04-06 05:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:22:05' and `end` < '2025-04-06 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-04-06 05:22:18] Production.INFO: count ==1283 [2025-04-06 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:22:05 - End Time 2025-04-06 05:22:05 [2025-04-06 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845350', 'tblTempUsageDetail_20' ) start [2025-04-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845350', 'tblTempUsageDetail_20' ) end [2025-04-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845350', 'tblTempVendorCDR_20' ) start [2025-04-06 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845350', 'tblTempVendorCDR_20' ) end [2025-04-06 05:22:19] Production.INFO: ProcessCDR(1,14845350,1,1,2) [2025-04-06 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845350', 'tblTempUsageDetail_20' ) start [2025-04-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845350', 'tblTempUsageDetail_20' ) end [2025-04-06 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:22:22] Production.INFO: ==20223== Releasing lock... [2025-04-06 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:23:05 [end_date_ymd] => 2025-04-06 05:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:23:05' and `end` < '2025-04-06 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-04-06 05:23:17] Production.INFO: count ==1281 [2025-04-06 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:23:05 - End Time 2025-04-06 05:23:05 [2025-04-06 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845355', 'tblTempUsageDetail_20' ) start [2025-04-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845355', 'tblTempUsageDetail_20' ) end [2025-04-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845355', 'tblTempVendorCDR_20' ) start [2025-04-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845355', 'tblTempVendorCDR_20' ) end [2025-04-06 05:23:18] Production.INFO: ProcessCDR(1,14845355,1,1,2) [2025-04-06 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845355', 'tblTempUsageDetail_20' ) start [2025-04-06 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845355', 'tblTempUsageDetail_20' ) end [2025-04-06 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:23:21] Production.INFO: ==20298== Releasing lock... [2025-04-06 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:23:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:24:06 [end_date_ymd] => 2025-04-06 05:24:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:24:06' and `end` < '2025-04-06 05: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-04-06 05:24:19] Production.INFO: count ==1280 [2025-04-06 05:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:24:06 - End Time 2025-04-06 05:24:06 [2025-04-06 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845360', 'tblTempUsageDetail_20' ) start [2025-04-06 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845360', 'tblTempUsageDetail_20' ) end [2025-04-06 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845360', 'tblTempVendorCDR_20' ) start [2025-04-06 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845360', 'tblTempVendorCDR_20' ) end [2025-04-06 05:24:19] Production.INFO: ProcessCDR(1,14845360,1,1,2) [2025-04-06 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845360', 'tblTempUsageDetail_20' ) start [2025-04-06 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845360', 'tblTempUsageDetail_20' ) end [2025-04-06 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:24:22] Production.INFO: ==20369== Releasing lock... [2025-04-06 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:25:06 [end_date_ymd] => 2025-04-06 05:25:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:25:06' and `end` < '2025-04-06 05: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-04-06 05:25:19] Production.INFO: count ==1280 [2025-04-06 05:25:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:25:06 - End Time 2025-04-06 05:25:06 [2025-04-06 05:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845365', 'tblTempUsageDetail_20' ) start [2025-04-06 05:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845365', 'tblTempUsageDetail_20' ) end [2025-04-06 05:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845365', 'tblTempVendorCDR_20' ) start [2025-04-06 05:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845365', 'tblTempVendorCDR_20' ) end [2025-04-06 05:25:20] Production.INFO: ProcessCDR(1,14845365,1,1,2) [2025-04-06 05:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845365', 'tblTempUsageDetail_20' ) start [2025-04-06 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845365', 'tblTempUsageDetail_20' ) end [2025-04-06 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:25:23] Production.INFO: ==20441== Releasing lock... [2025-04-06 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:26:05 [end_date_ymd] => 2025-04-06 05:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:26:05' and `end` < '2025-04-06 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-04-06 05:26:18] Production.INFO: count ==1280 [2025-04-06 05:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:26:05 - End Time 2025-04-06 05:26:05 [2025-04-06 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845370', 'tblTempUsageDetail_20' ) start [2025-04-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845370', 'tblTempUsageDetail_20' ) end [2025-04-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845370', 'tblTempVendorCDR_20' ) start [2025-04-06 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845370', 'tblTempVendorCDR_20' ) end [2025-04-06 05:26:19] Production.INFO: ProcessCDR(1,14845370,1,1,2) [2025-04-06 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845370', 'tblTempUsageDetail_20' ) start [2025-04-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845370', 'tblTempUsageDetail_20' ) end [2025-04-06 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:26:22] Production.INFO: ==20516== Releasing lock... [2025-04-06 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:27:05 [end_date_ymd] => 2025-04-06 05:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:27:05' and `end` < '2025-04-06 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-04-06 05:27:18] Production.INFO: count ==1272 [2025-04-06 05:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:27:05 - End Time 2025-04-06 05:27:05 [2025-04-06 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845375', 'tblTempUsageDetail_20' ) start [2025-04-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845375', 'tblTempUsageDetail_20' ) end [2025-04-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845375', 'tblTempVendorCDR_20' ) start [2025-04-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845375', 'tblTempVendorCDR_20' ) end [2025-04-06 05:27:19] Production.INFO: ProcessCDR(1,14845375,1,1,2) [2025-04-06 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845375', 'tblTempUsageDetail_20' ) start [2025-04-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845375', 'tblTempUsageDetail_20' ) end [2025-04-06 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:27:22] Production.INFO: ==20590== Releasing lock... [2025-04-06 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:28:05 [end_date_ymd] => 2025-04-06 05:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:28:05' and `end` < '2025-04-06 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-04-06 05:28:18] Production.INFO: count ==1259 [2025-04-06 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:28:05 - End Time 2025-04-06 05:28:05 [2025-04-06 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845380', 'tblTempUsageDetail_20' ) start [2025-04-06 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845380', 'tblTempUsageDetail_20' ) end [2025-04-06 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845380', 'tblTempVendorCDR_20' ) start [2025-04-06 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845380', 'tblTempVendorCDR_20' ) end [2025-04-06 05:28:18] Production.INFO: ProcessCDR(1,14845380,1,1,2) [2025-04-06 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845380', 'tblTempUsageDetail_20' ) start [2025-04-06 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845380', 'tblTempUsageDetail_20' ) end [2025-04-06 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:28:22] Production.INFO: ==20664== Releasing lock... [2025-04-06 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:29:05 [end_date_ymd] => 2025-04-06 05:29:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:29:05' and `end` < '2025-04-06 05: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-04-06 05:29:18] Production.INFO: count ==1257 [2025-04-06 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:29:05 - End Time 2025-04-06 05:29:05 [2025-04-06 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845385', 'tblTempUsageDetail_20' ) start [2025-04-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845385', 'tblTempUsageDetail_20' ) end [2025-04-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845385', 'tblTempVendorCDR_20' ) start [2025-04-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845385', 'tblTempVendorCDR_20' ) end [2025-04-06 05:29:18] Production.INFO: ProcessCDR(1,14845385,1,1,2) [2025-04-06 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845385', 'tblTempUsageDetail_20' ) start [2025-04-06 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845385', 'tblTempUsageDetail_20' ) end [2025-04-06 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:29:22] Production.INFO: ==20737== Releasing lock... [2025-04-06 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:30:05 [end_date_ymd] => 2025-04-06 05:30:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:30:05' and `end` < '2025-04-06 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-04-06 05:30:18] Production.INFO: count ==1254 [2025-04-06 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:30:05 - End Time 2025-04-06 05:30:05 [2025-04-06 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845391', 'tblTempUsageDetail_20' ) start [2025-04-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845391', 'tblTempUsageDetail_20' ) end [2025-04-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845391', 'tblTempVendorCDR_20' ) start [2025-04-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845391', 'tblTempVendorCDR_20' ) end [2025-04-06 05:30:19] Production.INFO: ProcessCDR(1,14845391,1,1,2) [2025-04-06 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845391', 'tblTempUsageDetail_20' ) start [2025-04-06 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845391', 'tblTempUsageDetail_20' ) end [2025-04-06 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:30:22] Production.INFO: ==20812== Releasing lock... [2025-04-06 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:31:06 [end_date_ymd] => 2025-04-06 05:31:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:31:06' and `end` < '2025-04-06 05: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-04-06 05:31:19] Production.INFO: count ==1250 [2025-04-06 05:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:31:06 - End Time 2025-04-06 05:31:06 [2025-04-06 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845396', 'tblTempUsageDetail_20' ) start [2025-04-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845396', 'tblTempUsageDetail_20' ) end [2025-04-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845396', 'tblTempVendorCDR_20' ) start [2025-04-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845396', 'tblTempVendorCDR_20' ) end [2025-04-06 05:31:19] Production.INFO: ProcessCDR(1,14845396,1,1,2) [2025-04-06 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845396', 'tblTempUsageDetail_20' ) start [2025-04-06 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845396', 'tblTempUsageDetail_20' ) end [2025-04-06 05:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:31:23] Production.INFO: ==20886== Releasing lock... [2025-04-06 05:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:31:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:32:05 [end_date_ymd] => 2025-04-06 05:32:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:32:05' and `end` < '2025-04-06 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-04-06 05:32:18] Production.INFO: count ==1254 [2025-04-06 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:32:05 - End Time 2025-04-06 05:32:05 [2025-04-06 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845401', 'tblTempUsageDetail_20' ) start [2025-04-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845401', 'tblTempUsageDetail_20' ) end [2025-04-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845401', 'tblTempVendorCDR_20' ) start [2025-04-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845401', 'tblTempVendorCDR_20' ) end [2025-04-06 05:32:18] Production.INFO: ProcessCDR(1,14845401,1,1,2) [2025-04-06 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845401', 'tblTempUsageDetail_20' ) start [2025-04-06 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845401', 'tblTempUsageDetail_20' ) end [2025-04-06 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:32:22] Production.INFO: ==20959== Releasing lock... [2025-04-06 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:33:05 [end_date_ymd] => 2025-04-06 05:33:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:33:05' and `end` < '2025-04-06 05: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-04-06 05:33:18] Production.INFO: count ==1255 [2025-04-06 05:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:33:05 - End Time 2025-04-06 05:33:05 [2025-04-06 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845406', 'tblTempUsageDetail_20' ) start [2025-04-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845406', 'tblTempUsageDetail_20' ) end [2025-04-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845406', 'tblTempVendorCDR_20' ) start [2025-04-06 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845406', 'tblTempVendorCDR_20' ) end [2025-04-06 05:33:19] Production.INFO: ProcessCDR(1,14845406,1,1,2) [2025-04-06 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845406', 'tblTempUsageDetail_20' ) start [2025-04-06 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845406', 'tblTempUsageDetail_20' ) end [2025-04-06 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:33:22] Production.INFO: ==21029== Releasing lock... [2025-04-06 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:34:05 [end_date_ymd] => 2025-04-06 05:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:34:05' and `end` < '2025-04-06 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-04-06 05:34:17] Production.INFO: count ==1246 [2025-04-06 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:34:05 - End Time 2025-04-06 05:34:05 [2025-04-06 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845411', 'tblTempUsageDetail_20' ) start [2025-04-06 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845411', 'tblTempUsageDetail_20' ) end [2025-04-06 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845411', 'tblTempVendorCDR_20' ) start [2025-04-06 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845411', 'tblTempVendorCDR_20' ) end [2025-04-06 05:34:18] Production.INFO: ProcessCDR(1,14845411,1,1,2) [2025-04-06 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845411', 'tblTempUsageDetail_20' ) start [2025-04-06 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845411', 'tblTempUsageDetail_20' ) end [2025-04-06 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:34:21] Production.INFO: ==21103== Releasing lock... [2025-04-06 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:34:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:35:05 [end_date_ymd] => 2025-04-06 05:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:35:05' and `end` < '2025-04-06 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-04-06 05:35:18] Production.INFO: count ==1236 [2025-04-06 05:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:35:05 - End Time 2025-04-06 05:35:05 [2025-04-06 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845416', 'tblTempUsageDetail_20' ) start [2025-04-06 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845416', 'tblTempUsageDetail_20' ) end [2025-04-06 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845416', 'tblTempVendorCDR_20' ) start [2025-04-06 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845416', 'tblTempVendorCDR_20' ) end [2025-04-06 05:35:19] Production.INFO: ProcessCDR(1,14845416,1,1,2) [2025-04-06 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845416', 'tblTempUsageDetail_20' ) start [2025-04-06 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845416', 'tblTempUsageDetail_20' ) end [2025-04-06 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:35:22] Production.INFO: ==21179== Releasing lock... [2025-04-06 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:35:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:36:06 [end_date_ymd] => 2025-04-06 05:36:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:36:06' and `end` < '2025-04-06 05: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-04-06 05:36:19] Production.INFO: count ==1240 [2025-04-06 05:36:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:36:06 - End Time 2025-04-06 05:36:06 [2025-04-06 05:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845421', 'tblTempUsageDetail_20' ) start [2025-04-06 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845421', 'tblTempUsageDetail_20' ) end [2025-04-06 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845421', 'tblTempVendorCDR_20' ) start [2025-04-06 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845421', 'tblTempVendorCDR_20' ) end [2025-04-06 05:36:20] Production.INFO: ProcessCDR(1,14845421,1,1,2) [2025-04-06 05:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845421', 'tblTempUsageDetail_20' ) start [2025-04-06 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845421', 'tblTempUsageDetail_20' ) end [2025-04-06 05:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:36:23] Production.INFO: ==21252== Releasing lock... [2025-04-06 05:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:36:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:37:05 [end_date_ymd] => 2025-04-06 05:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:37:05' and `end` < '2025-04-06 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-04-06 05:37:18] Production.INFO: count ==1236 [2025-04-06 05:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:37:05 - End Time 2025-04-06 05:37:05 [2025-04-06 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845426', 'tblTempUsageDetail_20' ) start [2025-04-06 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845426', 'tblTempUsageDetail_20' ) end [2025-04-06 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845426', 'tblTempVendorCDR_20' ) start [2025-04-06 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845426', 'tblTempVendorCDR_20' ) end [2025-04-06 05:37:19] Production.INFO: ProcessCDR(1,14845426,1,1,2) [2025-04-06 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845426', 'tblTempUsageDetail_20' ) start [2025-04-06 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845426', 'tblTempUsageDetail_20' ) end [2025-04-06 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:37:23] Production.INFO: ==21362== Releasing lock... [2025-04-06 05:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:37:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:38:06 [end_date_ymd] => 2025-04-06 05:38:06 [RateCDR] => 1 ) [2025-04-06 05:38: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-04-06 02:38:06' and `end` < '2025-04-06 05:38: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-04-06 05:38:19] Production.INFO: count ==1228 [2025-04-06 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:38:06 - End Time 2025-04-06 05:38:06 [2025-04-06 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845431', 'tblTempUsageDetail_20' ) start [2025-04-06 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845431', 'tblTempUsageDetail_20' ) end [2025-04-06 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845431', 'tblTempVendorCDR_20' ) start [2025-04-06 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845431', 'tblTempVendorCDR_20' ) end [2025-04-06 05:38:19] Production.INFO: ProcessCDR(1,14845431,1,1,2) [2025-04-06 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845431', 'tblTempUsageDetail_20' ) start [2025-04-06 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845431', 'tblTempUsageDetail_20' ) end [2025-04-06 05:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:38:23] Production.INFO: ==21437== Releasing lock... [2025-04-06 05:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:39:05 [end_date_ymd] => 2025-04-06 05:39:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:39:05' and `end` < '2025-04-06 05: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-04-06 05:39:18] Production.INFO: count ==1219 [2025-04-06 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:39:05 - End Time 2025-04-06 05:39:05 [2025-04-06 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845436', 'tblTempUsageDetail_20' ) start [2025-04-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845436', 'tblTempUsageDetail_20' ) end [2025-04-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845436', 'tblTempVendorCDR_20' ) start [2025-04-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845436', 'tblTempVendorCDR_20' ) end [2025-04-06 05:39:18] Production.INFO: ProcessCDR(1,14845436,1,1,2) [2025-04-06 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845436', 'tblTempUsageDetail_20' ) start [2025-04-06 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845436', 'tblTempUsageDetail_20' ) end [2025-04-06 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:39:22] Production.INFO: ==21507== Releasing lock... [2025-04-06 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:40:07 [end_date_ymd] => 2025-04-06 05:40:07 [RateCDR] => 1 ) [2025-04-06 05:40: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-04-06 02:40:07' and `end` < '2025-04-06 05:40: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-04-06 05:40:20] Production.INFO: count ==1190 [2025-04-06 05:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 02:40:07 - End Time 2025-04-06 05:40:07 [2025-04-06 05:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845442', 'tblTempUsageDetail_20' ) start [2025-04-06 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845442', 'tblTempUsageDetail_20' ) end [2025-04-06 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845442', 'tblTempVendorCDR_20' ) start [2025-04-06 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845442', 'tblTempVendorCDR_20' ) end [2025-04-06 05:40:20] Production.INFO: ProcessCDR(1,14845442,1,1,2) [2025-04-06 05:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845442', 'tblTempUsageDetail_20' ) start [2025-04-06 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845442', 'tblTempUsageDetail_20' ) end [2025-04-06 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:40:23] Production.INFO: ==21582== Releasing lock... [2025-04-06 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:40:23] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:41:05 [end_date_ymd] => 2025-04-06 05:41:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:41:05' and `end` < '2025-04-06 05: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-04-06 05:41:18] Production.INFO: count ==1177 [2025-04-06 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:41:05 - End Time 2025-04-06 05:41:05 [2025-04-06 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845447', 'tblTempUsageDetail_20' ) start [2025-04-06 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845447', 'tblTempUsageDetail_20' ) end [2025-04-06 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845447', 'tblTempVendorCDR_20' ) start [2025-04-06 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845447', 'tblTempVendorCDR_20' ) end [2025-04-06 05:41:19] Production.INFO: ProcessCDR(1,14845447,1,1,2) [2025-04-06 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845447', 'tblTempUsageDetail_20' ) start [2025-04-06 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845447', 'tblTempUsageDetail_20' ) end [2025-04-06 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:41:22] Production.INFO: ==21656== Releasing lock... [2025-04-06 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:41:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:42:05 [end_date_ymd] => 2025-04-06 05:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:42:05' and `end` < '2025-04-06 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-04-06 05:42:18] Production.INFO: count ==1173 [2025-04-06 05:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:42:05 - End Time 2025-04-06 05:42:05 [2025-04-06 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845452', 'tblTempUsageDetail_20' ) start [2025-04-06 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845452', 'tblTempUsageDetail_20' ) end [2025-04-06 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845452', 'tblTempVendorCDR_20' ) start [2025-04-06 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845452', 'tblTempVendorCDR_20' ) end [2025-04-06 05:42:19] Production.INFO: ProcessCDR(1,14845452,1,1,2) [2025-04-06 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845452', 'tblTempUsageDetail_20' ) start [2025-04-06 05:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845452', 'tblTempUsageDetail_20' ) end [2025-04-06 05:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:42:24] Production.INFO: ==21731== Releasing lock... [2025-04-06 05:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:42:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:43:05 [end_date_ymd] => 2025-04-06 05:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:43:05' and `end` < '2025-04-06 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-04-06 05:43:18] Production.INFO: count ==1165 [2025-04-06 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:43:05 - End Time 2025-04-06 05:43:05 [2025-04-06 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845457', 'tblTempUsageDetail_20' ) start [2025-04-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845457', 'tblTempUsageDetail_20' ) end [2025-04-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845457', 'tblTempVendorCDR_20' ) start [2025-04-06 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845457', 'tblTempVendorCDR_20' ) end [2025-04-06 05:43:18] Production.INFO: ProcessCDR(1,14845457,1,1,2) [2025-04-06 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845457', 'tblTempUsageDetail_20' ) start [2025-04-06 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845457', 'tblTempUsageDetail_20' ) end [2025-04-06 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:43:22] Production.INFO: ==21802== Releasing lock... [2025-04-06 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:43:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:44:06 [end_date_ymd] => 2025-04-06 05:44:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:44:06' and `end` < '2025-04-06 05: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-04-06 05:44:19] Production.INFO: count ==1155 [2025-04-06 05:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:44:06 - End Time 2025-04-06 05:44:06 [2025-04-06 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845462', 'tblTempUsageDetail_20' ) start [2025-04-06 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845462', 'tblTempUsageDetail_20' ) end [2025-04-06 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845462', 'tblTempVendorCDR_20' ) start [2025-04-06 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845462', 'tblTempVendorCDR_20' ) end [2025-04-06 05:44:19] Production.INFO: ProcessCDR(1,14845462,1,1,2) [2025-04-06 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845462', 'tblTempUsageDetail_20' ) start [2025-04-06 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845462', 'tblTempUsageDetail_20' ) end [2025-04-06 05:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:44:23] Production.INFO: ==21873== Releasing lock... [2025-04-06 05:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:44:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:45:04 [end_date_ymd] => 2025-04-06 05:45:04 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:45:04' and `end` < '2025-04-06 05: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-04-06 05:45:17] Production.INFO: count ==1148 [2025-04-06 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:45:04 - End Time 2025-04-06 05:45:04 [2025-04-06 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845467', 'tblTempUsageDetail_20' ) start [2025-04-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845467', 'tblTempUsageDetail_20' ) end [2025-04-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845467', 'tblTempVendorCDR_20' ) start [2025-04-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845467', 'tblTempVendorCDR_20' ) end [2025-04-06 05:45:18] Production.INFO: ProcessCDR(1,14845467,1,1,2) [2025-04-06 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845467', 'tblTempUsageDetail_20' ) start [2025-04-06 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845467', 'tblTempUsageDetail_20' ) end [2025-04-06 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:45:21] Production.INFO: ==21946== Releasing lock... [2025-04-06 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:46:05 [end_date_ymd] => 2025-04-06 05:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:46:05' and `end` < '2025-04-06 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-04-06 05:46:18] Production.INFO: count ==1140 [2025-04-06 05:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:46:05 - End Time 2025-04-06 05:46:05 [2025-04-06 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845472', 'tblTempUsageDetail_20' ) start [2025-04-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845472', 'tblTempUsageDetail_20' ) end [2025-04-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845472', 'tblTempVendorCDR_20' ) start [2025-04-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845472', 'tblTempVendorCDR_20' ) end [2025-04-06 05:46:19] Production.INFO: ProcessCDR(1,14845472,1,1,2) [2025-04-06 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845472', 'tblTempUsageDetail_20' ) start [2025-04-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845472', 'tblTempUsageDetail_20' ) end [2025-04-06 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:46:22] Production.INFO: ==22016== Releasing lock... [2025-04-06 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:47:04 [end_date_ymd] => 2025-04-06 05:47:04 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:47:04' and `end` < '2025-04-06 05: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-04-06 05:47:18] Production.INFO: count ==1130 [2025-04-06 05:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:47:04 - End Time 2025-04-06 05:47:04 [2025-04-06 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845477', 'tblTempUsageDetail_20' ) start [2025-04-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845477', 'tblTempUsageDetail_20' ) end [2025-04-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845477', 'tblTempVendorCDR_20' ) start [2025-04-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845477', 'tblTempVendorCDR_20' ) end [2025-04-06 05:47:19] Production.INFO: ProcessCDR(1,14845477,1,1,2) [2025-04-06 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845477', 'tblTempUsageDetail_20' ) start [2025-04-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845477', 'tblTempUsageDetail_20' ) end [2025-04-06 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:47:22] Production.INFO: ==22087== Releasing lock... [2025-04-06 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:47:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:48:05 [end_date_ymd] => 2025-04-06 05:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:48:05' and `end` < '2025-04-06 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-04-06 05:48:18] Production.INFO: count ==1128 [2025-04-06 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:48:05 - End Time 2025-04-06 05:48:05 [2025-04-06 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845482', 'tblTempUsageDetail_20' ) start [2025-04-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845482', 'tblTempUsageDetail_20' ) end [2025-04-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845482', 'tblTempVendorCDR_20' ) start [2025-04-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845482', 'tblTempVendorCDR_20' ) end [2025-04-06 05:48:18] Production.INFO: ProcessCDR(1,14845482,1,1,2) [2025-04-06 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845482', 'tblTempUsageDetail_20' ) start [2025-04-06 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845482', 'tblTempUsageDetail_20' ) end [2025-04-06 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:48:22] Production.INFO: ==22158== Releasing lock... [2025-04-06 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:49:05 [end_date_ymd] => 2025-04-06 05:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:49:05' and `end` < '2025-04-06 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-04-06 05:49:18] Production.INFO: count ==1128 [2025-04-06 05:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:49:05 - End Time 2025-04-06 05:49:05 [2025-04-06 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845487', 'tblTempUsageDetail_20' ) start [2025-04-06 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845487', 'tblTempUsageDetail_20' ) end [2025-04-06 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845487', 'tblTempVendorCDR_20' ) start [2025-04-06 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845487', 'tblTempVendorCDR_20' ) end [2025-04-06 05:49:19] Production.INFO: ProcessCDR(1,14845487,1,1,2) [2025-04-06 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845487', 'tblTempUsageDetail_20' ) start [2025-04-06 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845487', 'tblTempUsageDetail_20' ) end [2025-04-06 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:49:22] Production.INFO: ==22232== Releasing lock... [2025-04-06 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:49:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:50:06 [end_date_ymd] => 2025-04-06 05:50:06 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:50:06' and `end` < '2025-04-06 05: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-04-06 05:50:19] Production.INFO: count ==1104 [2025-04-06 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:50:06 - End Time 2025-04-06 05:50:06 [2025-04-06 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845493', 'tblTempUsageDetail_20' ) start [2025-04-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845493', 'tblTempUsageDetail_20' ) end [2025-04-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845493', 'tblTempVendorCDR_20' ) start [2025-04-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845493', 'tblTempVendorCDR_20' ) end [2025-04-06 05:50:19] Production.INFO: ProcessCDR(1,14845493,1,1,2) [2025-04-06 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845493', 'tblTempUsageDetail_20' ) start [2025-04-06 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845493', 'tblTempUsageDetail_20' ) end [2025-04-06 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:50:23] Production.INFO: ==22303== Releasing lock... [2025-04-06 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:50:23] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:51:05 [end_date_ymd] => 2025-04-06 05:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:51:05' and `end` < '2025-04-06 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-04-06 05:51:18] Production.INFO: count ==1086 [2025-04-06 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:51:05 - End Time 2025-04-06 05:51:05 [2025-04-06 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845498', 'tblTempUsageDetail_20' ) start [2025-04-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845498', 'tblTempUsageDetail_20' ) end [2025-04-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845498', 'tblTempVendorCDR_20' ) start [2025-04-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845498', 'tblTempVendorCDR_20' ) end [2025-04-06 05:51:18] Production.INFO: ProcessCDR(1,14845498,1,1,2) [2025-04-06 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845498', 'tblTempUsageDetail_20' ) start [2025-04-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845498', 'tblTempUsageDetail_20' ) end [2025-04-06 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:51:21] Production.INFO: ==22378== Releasing lock... [2025-04-06 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:51:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:52:05 [end_date_ymd] => 2025-04-06 05:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:52:05' and `end` < '2025-04-06 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-04-06 05:52:18] Production.INFO: count ==1081 [2025-04-06 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:52:05 - End Time 2025-04-06 05:52:05 [2025-04-06 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845503', 'tblTempUsageDetail_20' ) start [2025-04-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845503', 'tblTempUsageDetail_20' ) end [2025-04-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845503', 'tblTempVendorCDR_20' ) start [2025-04-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845503', 'tblTempVendorCDR_20' ) end [2025-04-06 05:52:18] Production.INFO: ProcessCDR(1,14845503,1,1,2) [2025-04-06 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845503', 'tblTempUsageDetail_20' ) start [2025-04-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845503', 'tblTempUsageDetail_20' ) end [2025-04-06 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:52:21] Production.INFO: ==22488== Releasing lock... [2025-04-06 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:52:21] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:53:05 [end_date_ymd] => 2025-04-06 05:53:05 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:53:05' and `end` < '2025-04-06 05: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-04-06 05:53:18] Production.INFO: count ==1081 [2025-04-06 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:53:05 - End Time 2025-04-06 05:53:05 [2025-04-06 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845508', 'tblTempUsageDetail_20' ) start [2025-04-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845508', 'tblTempUsageDetail_20' ) end [2025-04-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845508', 'tblTempVendorCDR_20' ) start [2025-04-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845508', 'tblTempVendorCDR_20' ) end [2025-04-06 05:53:18] Production.INFO: ProcessCDR(1,14845508,1,1,2) [2025-04-06 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845508', 'tblTempUsageDetail_20' ) start [2025-04-06 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845508', 'tblTempUsageDetail_20' ) end [2025-04-06 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:53:22] Production.INFO: ==22560== Releasing lock... [2025-04-06 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:53:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:54:05 [end_date_ymd] => 2025-04-06 05:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:54:05' and `end` < '2025-04-06 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-04-06 05:54:18] Production.INFO: count ==1077 [2025-04-06 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:54:05 - End Time 2025-04-06 05:54:05 [2025-04-06 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845513', 'tblTempUsageDetail_20' ) start [2025-04-06 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845513', 'tblTempUsageDetail_20' ) end [2025-04-06 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845513', 'tblTempVendorCDR_20' ) start [2025-04-06 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845513', 'tblTempVendorCDR_20' ) end [2025-04-06 05:54:18] Production.INFO: ProcessCDR(1,14845513,1,1,2) [2025-04-06 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845513', 'tblTempUsageDetail_20' ) start [2025-04-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845513', 'tblTempUsageDetail_20' ) end [2025-04-06 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:54:22] Production.INFO: ==22636== Releasing lock... [2025-04-06 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:55:05 [end_date_ymd] => 2025-04-06 05:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:55:05' and `end` < '2025-04-06 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-04-06 05:55:18] Production.INFO: count ==1072 [2025-04-06 05:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:55:05 - End Time 2025-04-06 05:55:05 [2025-04-06 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845518', 'tblTempUsageDetail_20' ) start [2025-04-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845518', 'tblTempUsageDetail_20' ) end [2025-04-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845518', 'tblTempVendorCDR_20' ) start [2025-04-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845518', 'tblTempVendorCDR_20' ) end [2025-04-06 05:55:19] Production.INFO: ProcessCDR(1,14845518,1,1,2) [2025-04-06 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845518', 'tblTempUsageDetail_20' ) start [2025-04-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845518', 'tblTempUsageDetail_20' ) end [2025-04-06 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:55:22] Production.INFO: ==22708== Releasing lock... [2025-04-06 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:56:05 [end_date_ymd] => 2025-04-06 05:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:56:05' and `end` < '2025-04-06 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-04-06 05:56:18] Production.INFO: count ==1068 [2025-04-06 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:56:05 - End Time 2025-04-06 05:56:05 [2025-04-06 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845523', 'tblTempUsageDetail_20' ) start [2025-04-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845523', 'tblTempUsageDetail_20' ) end [2025-04-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845523', 'tblTempVendorCDR_20' ) start [2025-04-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845523', 'tblTempVendorCDR_20' ) end [2025-04-06 05:56:18] Production.INFO: ProcessCDR(1,14845523,1,1,2) [2025-04-06 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845523', 'tblTempUsageDetail_20' ) start [2025-04-06 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845523', 'tblTempUsageDetail_20' ) end [2025-04-06 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:56:22] Production.INFO: ==22781== Releasing lock... [2025-04-06 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:56:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:57:05 [end_date_ymd] => 2025-04-06 05:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:57:05' and `end` < '2025-04-06 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-04-06 05:57:18] Production.INFO: count ==1060 [2025-04-06 05:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 02:57:05 - End Time 2025-04-06 05:57:05 [2025-04-06 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845528', 'tblTempUsageDetail_20' ) start [2025-04-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845528', 'tblTempUsageDetail_20' ) end [2025-04-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845528', 'tblTempVendorCDR_20' ) start [2025-04-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845528', 'tblTempVendorCDR_20' ) end [2025-04-06 05:57:19] Production.INFO: ProcessCDR(1,14845528,1,1,2) [2025-04-06 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845528', 'tblTempUsageDetail_20' ) start [2025-04-06 05:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845528', 'tblTempUsageDetail_20' ) end [2025-04-06 05:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:57:23] Production.INFO: ==22853== Releasing lock... [2025-04-06 05:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:57:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:58:04 [end_date_ymd] => 2025-04-06 05:58:04 [RateCDR] => 1 ) [2025-04-06 05: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-04-06 02:58:04' and `end` < '2025-04-06 05: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-04-06 05:58:17] Production.INFO: count ==1056 [2025-04-06 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:58:04 - End Time 2025-04-06 05:58:04 [2025-04-06 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845533', 'tblTempUsageDetail_20' ) start [2025-04-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845533', 'tblTempUsageDetail_20' ) end [2025-04-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845533', 'tblTempVendorCDR_20' ) start [2025-04-06 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845533', 'tblTempVendorCDR_20' ) end [2025-04-06 05:58:18] Production.INFO: ProcessCDR(1,14845533,1,1,2) [2025-04-06 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845533', 'tblTempUsageDetail_20' ) start [2025-04-06 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845533', 'tblTempUsageDetail_20' ) end [2025-04-06 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:58:21] Production.INFO: ==22924== Releasing lock... [2025-04-06 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 02:59:05 [end_date_ymd] => 2025-04-06 05:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 02:59:05' and `end` < '2025-04-06 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-04-06 05:59:17] Production.INFO: count ==1047 [2025-04-06 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 02:59:05 - End Time 2025-04-06 05:59:05 [2025-04-06 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845538', 'tblTempUsageDetail_20' ) start [2025-04-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845538', 'tblTempUsageDetail_20' ) end [2025-04-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845538', 'tblTempVendorCDR_20' ) start [2025-04-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845538', 'tblTempVendorCDR_20' ) end [2025-04-06 05:59:18] Production.INFO: ProcessCDR(1,14845538,1,1,2) [2025-04-06 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845538', 'tblTempUsageDetail_20' ) start [2025-04-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845538', 'tblTempUsageDetail_20' ) end [2025-04-06 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 05:59:21] Production.INFO: ==22995== Releasing lock... [2025-04-06 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 05:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:00:06 [end_date_ymd] => 2025-04-06 06:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:00:06' and `end` < '2025-04-06 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-04-06 06:00:19] Production.INFO: count ==1022 [2025-04-06 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:00:06 - End Time 2025-04-06 06:00:06 [2025-04-06 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845544', 'tblTempUsageDetail_20' ) start [2025-04-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845544', 'tblTempUsageDetail_20' ) end [2025-04-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845544', 'tblTempVendorCDR_20' ) start [2025-04-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845544', 'tblTempVendorCDR_20' ) end [2025-04-06 06:00:20] Production.INFO: ProcessCDR(1,14845544,1,1,2) [2025-04-06 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845544', 'tblTempUsageDetail_20' ) start [2025-04-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845544', 'tblTempUsageDetail_20' ) end [2025-04-06 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:00:23] Production.INFO: ==23071== Releasing lock... [2025-04-06 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:01:05 [end_date_ymd] => 2025-04-06 06:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:01:05' and `end` < '2025-04-06 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-04-06 06:01:18] Production.INFO: count ==1003 [2025-04-06 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:01:05 - End Time 2025-04-06 06:01:05 [2025-04-06 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845549', 'tblTempUsageDetail_20' ) start [2025-04-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845549', 'tblTempUsageDetail_20' ) end [2025-04-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845549', 'tblTempVendorCDR_20' ) start [2025-04-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845549', 'tblTempVendorCDR_20' ) end [2025-04-06 06:01:18] Production.INFO: ProcessCDR(1,14845549,1,1,2) [2025-04-06 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845549', 'tblTempUsageDetail_20' ) start [2025-04-06 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845549', 'tblTempUsageDetail_20' ) end [2025-04-06 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:01:22] Production.INFO: ==23156== Releasing lock... [2025-04-06 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:02:05 [end_date_ymd] => 2025-04-06 06:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:02:05' and `end` < '2025-04-06 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-04-06 06:02:18] Production.INFO: count ==1000 [2025-04-06 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:02:05 - End Time 2025-04-06 06:02:05 [2025-04-06 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845554', 'tblTempUsageDetail_20' ) start [2025-04-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845554', 'tblTempUsageDetail_20' ) end [2025-04-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845554', 'tblTempVendorCDR_20' ) start [2025-04-06 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845554', 'tblTempVendorCDR_20' ) end [2025-04-06 06:02:19] Production.INFO: ProcessCDR(1,14845554,1,1,2) [2025-04-06 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845554', 'tblTempUsageDetail_20' ) start [2025-04-06 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845554', 'tblTempUsageDetail_20' ) end [2025-04-06 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:02:22] Production.INFO: ==23226== Releasing lock... [2025-04-06 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:03:05 [end_date_ymd] => 2025-04-06 06:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:03:05' and `end` < '2025-04-06 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-04-06 06:03:18] Production.INFO: count ==989 [2025-04-06 06:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:03:05 - End Time 2025-04-06 06:03:05 [2025-04-06 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845559', 'tblTempUsageDetail_20' ) start [2025-04-06 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845559', 'tblTempUsageDetail_20' ) end [2025-04-06 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845559', 'tblTempVendorCDR_20' ) start [2025-04-06 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845559', 'tblTempVendorCDR_20' ) end [2025-04-06 06:03:19] Production.INFO: ProcessCDR(1,14845559,1,1,2) [2025-04-06 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845559', 'tblTempUsageDetail_20' ) start [2025-04-06 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845559', 'tblTempUsageDetail_20' ) end [2025-04-06 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:03:23] Production.INFO: ==23295== Releasing lock... [2025-04-06 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:03:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:04:05 [end_date_ymd] => 2025-04-06 06:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:04:05' and `end` < '2025-04-06 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-04-06 06:04:18] Production.INFO: count ==985 [2025-04-06 06:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:04:05 - End Time 2025-04-06 06:04:05 [2025-04-06 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845564', 'tblTempUsageDetail_20' ) start [2025-04-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845564', 'tblTempUsageDetail_20' ) end [2025-04-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845564', 'tblTempVendorCDR_20' ) start [2025-04-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845564', 'tblTempVendorCDR_20' ) end [2025-04-06 06:04:19] Production.INFO: ProcessCDR(1,14845564,1,1,2) [2025-04-06 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845564', 'tblTempUsageDetail_20' ) start [2025-04-06 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845564', 'tblTempUsageDetail_20' ) end [2025-04-06 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:04:22] Production.INFO: ==23368== Releasing lock... [2025-04-06 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:05:05 [end_date_ymd] => 2025-04-06 06:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:05:05' and `end` < '2025-04-06 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-04-06 06:05:18] Production.INFO: count ==976 [2025-04-06 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:05:05 - End Time 2025-04-06 06:05:05 [2025-04-06 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845569', 'tblTempUsageDetail_20' ) start [2025-04-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845569', 'tblTempUsageDetail_20' ) end [2025-04-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845569', 'tblTempVendorCDR_20' ) start [2025-04-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845569', 'tblTempVendorCDR_20' ) end [2025-04-06 06:05:18] Production.INFO: ProcessCDR(1,14845569,1,1,2) [2025-04-06 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845569', 'tblTempUsageDetail_20' ) start [2025-04-06 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845569', 'tblTempUsageDetail_20' ) end [2025-04-06 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:05:22] Production.INFO: ==23437== Releasing lock... [2025-04-06 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:05:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:06:05 [end_date_ymd] => 2025-04-06 06:06:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:06:05' and `end` < '2025-04-06 06: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-04-06 06:06:18] Production.INFO: count ==969 [2025-04-06 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:06:05 - End Time 2025-04-06 06:06:05 [2025-04-06 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845574', 'tblTempUsageDetail_20' ) start [2025-04-06 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845574', 'tblTempUsageDetail_20' ) end [2025-04-06 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845574', 'tblTempVendorCDR_20' ) start [2025-04-06 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845574', 'tblTempVendorCDR_20' ) end [2025-04-06 06:06:18] Production.INFO: ProcessCDR(1,14845574,1,1,2) [2025-04-06 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845574', 'tblTempUsageDetail_20' ) start [2025-04-06 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845574', 'tblTempUsageDetail_20' ) end [2025-04-06 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:06:21] Production.INFO: ==23510== Releasing lock... [2025-04-06 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:06:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:07:05 [end_date_ymd] => 2025-04-06 06:07:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:07:05' and `end` < '2025-04-06 06: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-04-06 06:07:18] Production.INFO: count ==967 [2025-04-06 06:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:07:05 - End Time 2025-04-06 06:07:05 [2025-04-06 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845579', 'tblTempUsageDetail_20' ) start [2025-04-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845579', 'tblTempUsageDetail_20' ) end [2025-04-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845579', 'tblTempVendorCDR_20' ) start [2025-04-06 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845579', 'tblTempVendorCDR_20' ) end [2025-04-06 06:07:19] Production.INFO: ProcessCDR(1,14845579,1,1,2) [2025-04-06 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845579', 'tblTempUsageDetail_20' ) start [2025-04-06 06:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845579', 'tblTempUsageDetail_20' ) end [2025-04-06 06:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:07:24] Production.INFO: ==23581== Releasing lock... [2025-04-06 06:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:07:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:08:06 [end_date_ymd] => 2025-04-06 06:08:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:08:06' and `end` < '2025-04-06 06: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-04-06 06:08:18] Production.INFO: count ==953 [2025-04-06 06:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:08:06 - End Time 2025-04-06 06:08:06 [2025-04-06 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845584', 'tblTempUsageDetail_20' ) start [2025-04-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845584', 'tblTempUsageDetail_20' ) end [2025-04-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845584', 'tblTempVendorCDR_20' ) start [2025-04-06 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845584', 'tblTempVendorCDR_20' ) end [2025-04-06 06:08:19] Production.INFO: ProcessCDR(1,14845584,1,1,2) [2025-04-06 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845584', 'tblTempUsageDetail_20' ) start [2025-04-06 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845584', 'tblTempUsageDetail_20' ) end [2025-04-06 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:08:22] Production.INFO: ==23692== Releasing lock... [2025-04-06 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:08:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:09:05 [end_date_ymd] => 2025-04-06 06:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:09:05' and `end` < '2025-04-06 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-04-06 06:09:17] Production.INFO: count ==950 [2025-04-06 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:09:05 - End Time 2025-04-06 06:09:05 [2025-04-06 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845589', 'tblTempUsageDetail_20' ) start [2025-04-06 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845589', 'tblTempUsageDetail_20' ) end [2025-04-06 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845589', 'tblTempVendorCDR_20' ) start [2025-04-06 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845589', 'tblTempVendorCDR_20' ) end [2025-04-06 06:09:18] Production.INFO: ProcessCDR(1,14845589,1,1,2) [2025-04-06 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845589', 'tblTempUsageDetail_20' ) start [2025-04-06 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845589', 'tblTempUsageDetail_20' ) end [2025-04-06 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:09:21] Production.INFO: ==23763== Releasing lock... [2025-04-06 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:09:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:10:06 [end_date_ymd] => 2025-04-06 06:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:10:06' and `end` < '2025-04-06 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-04-06 06:10:19] Production.INFO: count ==947 [2025-04-06 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:10:06 - End Time 2025-04-06 06:10:06 [2025-04-06 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845594', 'tblTempUsageDetail_20' ) start [2025-04-06 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845594', 'tblTempUsageDetail_20' ) end [2025-04-06 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845594', 'tblTempVendorCDR_20' ) start [2025-04-06 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845594', 'tblTempVendorCDR_20' ) end [2025-04-06 06:10:19] Production.INFO: ProcessCDR(1,14845594,1,1,2) [2025-04-06 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845594', 'tblTempUsageDetail_20' ) start [2025-04-06 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845594', 'tblTempUsageDetail_20' ) end [2025-04-06 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:10:23] Production.INFO: ==23834== Releasing lock... [2025-04-06 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:10:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:11:05 [end_date_ymd] => 2025-04-06 06:11:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:11:05' and `end` < '2025-04-06 06: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-04-06 06:11:17] Production.INFO: count ==943 [2025-04-06 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:11:05 - End Time 2025-04-06 06:11:05 [2025-04-06 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845600', 'tblTempUsageDetail_20' ) start [2025-04-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845600', 'tblTempUsageDetail_20' ) end [2025-04-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845600', 'tblTempVendorCDR_20' ) start [2025-04-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845600', 'tblTempVendorCDR_20' ) end [2025-04-06 06:11:18] Production.INFO: ProcessCDR(1,14845600,1,1,2) [2025-04-06 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845600', 'tblTempUsageDetail_20' ) start [2025-04-06 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845600', 'tblTempUsageDetail_20' ) end [2025-04-06 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:11:23] Production.INFO: ==23912== Releasing lock... [2025-04-06 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:11:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:12:05 [end_date_ymd] => 2025-04-06 06:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:12:05' and `end` < '2025-04-06 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-04-06 06:12:18] Production.INFO: count ==945 [2025-04-06 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:12:05 - End Time 2025-04-06 06:12:05 [2025-04-06 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845605', 'tblTempUsageDetail_20' ) start [2025-04-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845605', 'tblTempUsageDetail_20' ) end [2025-04-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845605', 'tblTempVendorCDR_20' ) start [2025-04-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845605', 'tblTempVendorCDR_20' ) end [2025-04-06 06:12:18] Production.INFO: ProcessCDR(1,14845605,1,1,2) [2025-04-06 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845605', 'tblTempUsageDetail_20' ) start [2025-04-06 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845605', 'tblTempUsageDetail_20' ) end [2025-04-06 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:12:21] Production.INFO: ==23985== Releasing lock... [2025-04-06 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:12:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:13:05 [end_date_ymd] => 2025-04-06 06:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:13:05' and `end` < '2025-04-06 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-04-06 06:13:17] Production.INFO: count ==945 [2025-04-06 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:13:05 - End Time 2025-04-06 06:13:05 [2025-04-06 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845610', 'tblTempUsageDetail_20' ) start [2025-04-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845610', 'tblTempUsageDetail_20' ) end [2025-04-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845610', 'tblTempVendorCDR_20' ) start [2025-04-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845610', 'tblTempVendorCDR_20' ) end [2025-04-06 06:13:18] Production.INFO: ProcessCDR(1,14845610,1,1,2) [2025-04-06 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845610', 'tblTempUsageDetail_20' ) start [2025-04-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845610', 'tblTempUsageDetail_20' ) end [2025-04-06 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:13:21] Production.INFO: ==24060== Releasing lock... [2025-04-06 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:13:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:14:05 [end_date_ymd] => 2025-04-06 06:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:14:05' and `end` < '2025-04-06 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-04-06 06:14:18] Production.INFO: count ==943 [2025-04-06 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:14:05 - End Time 2025-04-06 06:14:05 [2025-04-06 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845615', 'tblTempUsageDetail_20' ) start [2025-04-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845615', 'tblTempUsageDetail_20' ) end [2025-04-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845615', 'tblTempVendorCDR_20' ) start [2025-04-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845615', 'tblTempVendorCDR_20' ) end [2025-04-06 06:14:18] Production.INFO: ProcessCDR(1,14845615,1,1,2) [2025-04-06 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845615', 'tblTempUsageDetail_20' ) start [2025-04-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845615', 'tblTempUsageDetail_20' ) end [2025-04-06 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:14:22] Production.INFO: ==24129== Releasing lock... [2025-04-06 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:14:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:15:05 [end_date_ymd] => 2025-04-06 06:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:15:05' and `end` < '2025-04-06 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-04-06 06:15:18] Production.INFO: count ==947 [2025-04-06 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:15:05 - End Time 2025-04-06 06:15:05 [2025-04-06 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845620', 'tblTempUsageDetail_20' ) start [2025-04-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845620', 'tblTempUsageDetail_20' ) end [2025-04-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845620', 'tblTempVendorCDR_20' ) start [2025-04-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845620', 'tblTempVendorCDR_20' ) end [2025-04-06 06:15:18] Production.INFO: ProcessCDR(1,14845620,1,1,2) [2025-04-06 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845620', 'tblTempUsageDetail_20' ) start [2025-04-06 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845620', 'tblTempUsageDetail_20' ) end [2025-04-06 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:15:21] Production.INFO: ==24200== Releasing lock... [2025-04-06 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:15:21] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:16:05 [end_date_ymd] => 2025-04-06 06:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:16:05' and `end` < '2025-04-06 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-04-06 06:16:19] Production.INFO: count ==951 [2025-04-06 06:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:16:05 - End Time 2025-04-06 06:16:05 [2025-04-06 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845625', 'tblTempUsageDetail_20' ) start [2025-04-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845625', 'tblTempUsageDetail_20' ) end [2025-04-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845625', 'tblTempVendorCDR_20' ) start [2025-04-06 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845625', 'tblTempVendorCDR_20' ) end [2025-04-06 06:16:19] Production.INFO: ProcessCDR(1,14845625,1,1,2) [2025-04-06 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845625', 'tblTempUsageDetail_20' ) start [2025-04-06 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845625', 'tblTempUsageDetail_20' ) end [2025-04-06 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:16:23] Production.INFO: ==24270== Releasing lock... [2025-04-06 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:16:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:17:06 [end_date_ymd] => 2025-04-06 06:17:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:17:06' and `end` < '2025-04-06 06: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-04-06 06:17:18] Production.INFO: count ==948 [2025-04-06 06:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:17:06 - End Time 2025-04-06 06:17:06 [2025-04-06 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845630', 'tblTempUsageDetail_20' ) start [2025-04-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845630', 'tblTempUsageDetail_20' ) end [2025-04-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845630', 'tblTempVendorCDR_20' ) start [2025-04-06 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845630', 'tblTempVendorCDR_20' ) end [2025-04-06 06:17:19] Production.INFO: ProcessCDR(1,14845630,1,1,2) [2025-04-06 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845630', 'tblTempUsageDetail_20' ) start [2025-04-06 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845630', 'tblTempUsageDetail_20' ) end [2025-04-06 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:17:22] Production.INFO: ==24341== Releasing lock... [2025-04-06 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:17:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:18:05 [end_date_ymd] => 2025-04-06 06:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:18:05' and `end` < '2025-04-06 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-04-06 06:18:18] Production.INFO: count ==942 [2025-04-06 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:18:05 - End Time 2025-04-06 06:18:05 [2025-04-06 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845635', 'tblTempUsageDetail_20' ) start [2025-04-06 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845635', 'tblTempUsageDetail_20' ) end [2025-04-06 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845635', 'tblTempVendorCDR_20' ) start [2025-04-06 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845635', 'tblTempVendorCDR_20' ) end [2025-04-06 06:18:18] Production.INFO: ProcessCDR(1,14845635,1,1,2) [2025-04-06 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845635', 'tblTempUsageDetail_20' ) start [2025-04-06 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845635', 'tblTempUsageDetail_20' ) end [2025-04-06 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:18:21] Production.INFO: ==24412== Releasing lock... [2025-04-06 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:18:21] Production.INFO: 36 MB #Memory Used# [2025-04-06 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:19:05 [end_date_ymd] => 2025-04-06 06:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:19:05' and `end` < '2025-04-06 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-04-06 06:19:18] Production.INFO: count ==941 [2025-04-06 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:19:05 - End Time 2025-04-06 06:19:05 [2025-04-06 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845640', 'tblTempUsageDetail_20' ) start [2025-04-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845640', 'tblTempUsageDetail_20' ) end [2025-04-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845640', 'tblTempVendorCDR_20' ) start [2025-04-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845640', 'tblTempVendorCDR_20' ) end [2025-04-06 06:19:18] Production.INFO: ProcessCDR(1,14845640,1,1,2) [2025-04-06 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845640', 'tblTempUsageDetail_20' ) start [2025-04-06 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845640', 'tblTempUsageDetail_20' ) end [2025-04-06 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:19:22] Production.INFO: ==24483== Releasing lock... [2025-04-06 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:19:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:20:05 [end_date_ymd] => 2025-04-06 06:20:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:20:05' and `end` < '2025-04-06 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-04-06 06:20:18] Production.INFO: count ==941 [2025-04-06 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:20:05 - End Time 2025-04-06 06:20:05 [2025-04-06 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845646', 'tblTempUsageDetail_20' ) start [2025-04-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845646', 'tblTempUsageDetail_20' ) end [2025-04-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845646', 'tblTempVendorCDR_20' ) start [2025-04-06 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845646', 'tblTempVendorCDR_20' ) end [2025-04-06 06:20:19] Production.INFO: ProcessCDR(1,14845646,1,1,2) [2025-04-06 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845646', 'tblTempUsageDetail_20' ) start [2025-04-06 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845646', 'tblTempUsageDetail_20' ) end [2025-04-06 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:20:22] Production.INFO: ==24556== Releasing lock... [2025-04-06 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:21:05 [end_date_ymd] => 2025-04-06 06:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:21:05' and `end` < '2025-04-06 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-04-06 06:21:18] Production.INFO: count ==941 [2025-04-06 06:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:21:05 - End Time 2025-04-06 06:21:05 [2025-04-06 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845651', 'tblTempUsageDetail_20' ) start [2025-04-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845651', 'tblTempUsageDetail_20' ) end [2025-04-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845651', 'tblTempVendorCDR_20' ) start [2025-04-06 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845651', 'tblTempVendorCDR_20' ) end [2025-04-06 06:21:19] Production.INFO: ProcessCDR(1,14845651,1,1,2) [2025-04-06 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845651', 'tblTempUsageDetail_20' ) start [2025-04-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845651', 'tblTempUsageDetail_20' ) end [2025-04-06 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:21:22] Production.INFO: ==24630== Releasing lock... [2025-04-06 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:22:05 [end_date_ymd] => 2025-04-06 06:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:22:05' and `end` < '2025-04-06 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-04-06 06:22:18] Production.INFO: count ==941 [2025-04-06 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:22:05 - End Time 2025-04-06 06:22:05 [2025-04-06 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845656', 'tblTempUsageDetail_20' ) start [2025-04-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845656', 'tblTempUsageDetail_20' ) end [2025-04-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845656', 'tblTempVendorCDR_20' ) start [2025-04-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845656', 'tblTempVendorCDR_20' ) end [2025-04-06 06:22:18] Production.INFO: ProcessCDR(1,14845656,1,1,2) [2025-04-06 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845656', 'tblTempUsageDetail_20' ) start [2025-04-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845656', 'tblTempUsageDetail_20' ) end [2025-04-06 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:22:22] Production.INFO: ==24701== Releasing lock... [2025-04-06 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:23:06 [end_date_ymd] => 2025-04-06 06:23:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:23:06' and `end` < '2025-04-06 06: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-04-06 06:23:18] Production.INFO: count ==941 [2025-04-06 06:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:23:06 - End Time 2025-04-06 06:23:06 [2025-04-06 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845661', 'tblTempUsageDetail_20' ) start [2025-04-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845661', 'tblTempUsageDetail_20' ) end [2025-04-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845661', 'tblTempVendorCDR_20' ) start [2025-04-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845661', 'tblTempVendorCDR_20' ) end [2025-04-06 06:23:19] Production.INFO: ProcessCDR(1,14845661,1,1,2) [2025-04-06 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845661', 'tblTempUsageDetail_20' ) start [2025-04-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845661', 'tblTempUsageDetail_20' ) end [2025-04-06 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:23:22] Production.INFO: ==24814== Releasing lock... [2025-04-06 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:23:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:24:05 [end_date_ymd] => 2025-04-06 06:24:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:24:05' and `end` < '2025-04-06 06: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-04-06 06:24:18] Production.INFO: count ==937 [2025-04-06 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:24:05 - End Time 2025-04-06 06:24:05 [2025-04-06 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845666', 'tblTempUsageDetail_20' ) start [2025-04-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845666', 'tblTempUsageDetail_20' ) end [2025-04-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845666', 'tblTempVendorCDR_20' ) start [2025-04-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845666', 'tblTempVendorCDR_20' ) end [2025-04-06 06:24:18] Production.INFO: ProcessCDR(1,14845666,1,1,2) [2025-04-06 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845666', 'tblTempUsageDetail_20' ) start [2025-04-06 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845666', 'tblTempUsageDetail_20' ) end [2025-04-06 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:24:22] Production.INFO: ==24885== Releasing lock... [2025-04-06 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:25:06 [end_date_ymd] => 2025-04-06 06:25:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:25:06' and `end` < '2025-04-06 06: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-04-06 06:25:19] Production.INFO: count ==941 [2025-04-06 06:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:25:06 - End Time 2025-04-06 06:25:06 [2025-04-06 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845671', 'tblTempUsageDetail_20' ) start [2025-04-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845671', 'tblTempUsageDetail_20' ) end [2025-04-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845671', 'tblTempVendorCDR_20' ) start [2025-04-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845671', 'tblTempVendorCDR_20' ) end [2025-04-06 06:25:19] Production.INFO: ProcessCDR(1,14845671,1,1,2) [2025-04-06 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845671', 'tblTempUsageDetail_20' ) start [2025-04-06 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845671', 'tblTempUsageDetail_20' ) end [2025-04-06 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:25:23] Production.INFO: ==24957== Releasing lock... [2025-04-06 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:25:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:26:05 [end_date_ymd] => 2025-04-06 06:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:26:05' and `end` < '2025-04-06 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-04-06 06:26:18] Production.INFO: count ==934 [2025-04-06 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:26:05 - End Time 2025-04-06 06:26:05 [2025-04-06 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845676', 'tblTempUsageDetail_20' ) start [2025-04-06 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845676', 'tblTempUsageDetail_20' ) end [2025-04-06 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845676', 'tblTempVendorCDR_20' ) start [2025-04-06 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845676', 'tblTempVendorCDR_20' ) end [2025-04-06 06:26:18] Production.INFO: ProcessCDR(1,14845676,1,1,2) [2025-04-06 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845676', 'tblTempUsageDetail_20' ) start [2025-04-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845676', 'tblTempUsageDetail_20' ) end [2025-04-06 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:26:22] Production.INFO: ==25027== Releasing lock... [2025-04-06 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:27:05 [end_date_ymd] => 2025-04-06 06:27:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:27:05' and `end` < '2025-04-06 06: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-04-06 06:27:18] Production.INFO: count ==930 [2025-04-06 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:27:05 - End Time 2025-04-06 06:27:05 [2025-04-06 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845681', 'tblTempUsageDetail_20' ) start [2025-04-06 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845681', 'tblTempUsageDetail_20' ) end [2025-04-06 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845681', 'tblTempVendorCDR_20' ) start [2025-04-06 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845681', 'tblTempVendorCDR_20' ) end [2025-04-06 06:27:18] Production.INFO: ProcessCDR(1,14845681,1,1,2) [2025-04-06 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845681', 'tblTempUsageDetail_20' ) start [2025-04-06 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845681', 'tblTempUsageDetail_20' ) end [2025-04-06 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:27:22] Production.INFO: ==25102== Releasing lock... [2025-04-06 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:27:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:28:05 [end_date_ymd] => 2025-04-06 06:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:28:05' and `end` < '2025-04-06 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-04-06 06:28:18] Production.INFO: count ==930 [2025-04-06 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:28:05 - End Time 2025-04-06 06:28:05 [2025-04-06 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845686', 'tblTempUsageDetail_20' ) start [2025-04-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845686', 'tblTempUsageDetail_20' ) end [2025-04-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845686', 'tblTempVendorCDR_20' ) start [2025-04-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845686', 'tblTempVendorCDR_20' ) end [2025-04-06 06:28:18] Production.INFO: ProcessCDR(1,14845686,1,1,2) [2025-04-06 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845686', 'tblTempUsageDetail_20' ) start [2025-04-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845686', 'tblTempUsageDetail_20' ) end [2025-04-06 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:28:22] Production.INFO: ==25172== Releasing lock... [2025-04-06 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:29:05 [end_date_ymd] => 2025-04-06 06:29:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:29:05' and `end` < '2025-04-06 06: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-04-06 06:29:18] Production.INFO: count ==922 [2025-04-06 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:29:05 - End Time 2025-04-06 06:29:05 [2025-04-06 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845691', 'tblTempUsageDetail_20' ) start [2025-04-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845691', 'tblTempUsageDetail_20' ) end [2025-04-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845691', 'tblTempVendorCDR_20' ) start [2025-04-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845691', 'tblTempVendorCDR_20' ) end [2025-04-06 06:29:18] Production.INFO: ProcessCDR(1,14845691,1,1,2) [2025-04-06 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845691', 'tblTempUsageDetail_20' ) start [2025-04-06 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845691', 'tblTempUsageDetail_20' ) end [2025-04-06 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:29:22] Production.INFO: ==25246== Releasing lock... [2025-04-06 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:30:06 [end_date_ymd] => 2025-04-06 06:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:30:06' and `end` < '2025-04-06 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-04-06 06:30:19] Production.INFO: count ==910 [2025-04-06 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:30:06 - End Time 2025-04-06 06:30:06 [2025-04-06 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845697', 'tblTempUsageDetail_20' ) start [2025-04-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845697', 'tblTempUsageDetail_20' ) end [2025-04-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845697', 'tblTempVendorCDR_20' ) start [2025-04-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845697', 'tblTempVendorCDR_20' ) end [2025-04-06 06:30:19] Production.INFO: ProcessCDR(1,14845697,1,1,2) [2025-04-06 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845697', 'tblTempUsageDetail_20' ) start [2025-04-06 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845697', 'tblTempUsageDetail_20' ) end [2025-04-06 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:30:23] Production.INFO: ==25319== Releasing lock... [2025-04-06 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:30:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:31:05 [end_date_ymd] => 2025-04-06 06:31:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:31:05' and `end` < '2025-04-06 06: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-04-06 06:31:18] Production.INFO: count ==902 [2025-04-06 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:31:05 - End Time 2025-04-06 06:31:05 [2025-04-06 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845702', 'tblTempUsageDetail_20' ) start [2025-04-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845702', 'tblTempUsageDetail_20' ) end [2025-04-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845702', 'tblTempVendorCDR_20' ) start [2025-04-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845702', 'tblTempVendorCDR_20' ) end [2025-04-06 06:31:18] Production.INFO: ProcessCDR(1,14845702,1,1,2) [2025-04-06 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845702', 'tblTempUsageDetail_20' ) start [2025-04-06 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845702', 'tblTempUsageDetail_20' ) end [2025-04-06 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:31:22] Production.INFO: ==25392== Releasing lock... [2025-04-06 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:31:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:32:05 [end_date_ymd] => 2025-04-06 06:32:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:32:05' and `end` < '2025-04-06 06: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-04-06 06:32:18] Production.INFO: count ==892 [2025-04-06 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:32:05 - End Time 2025-04-06 06:32:05 [2025-04-06 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845707', 'tblTempUsageDetail_20' ) start [2025-04-06 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845707', 'tblTempUsageDetail_20' ) end [2025-04-06 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845707', 'tblTempVendorCDR_20' ) start [2025-04-06 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845707', 'tblTempVendorCDR_20' ) end [2025-04-06 06:32:18] Production.INFO: ProcessCDR(1,14845707,1,1,2) [2025-04-06 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845707', 'tblTempUsageDetail_20' ) start [2025-04-06 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845707', 'tblTempUsageDetail_20' ) end [2025-04-06 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:32:22] Production.INFO: ==25461== Releasing lock... [2025-04-06 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:32:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:33:06 [end_date_ymd] => 2025-04-06 06:33:06 [RateCDR] => 1 ) [2025-04-06 06:33: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-04-06 03:33:06' and `end` < '2025-04-06 06:33: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-04-06 06:33:19] Production.INFO: count ==883 [2025-04-06 06:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:33:06 - End Time 2025-04-06 06:33:06 [2025-04-06 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845712', 'tblTempUsageDetail_20' ) start [2025-04-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845712', 'tblTempUsageDetail_20' ) end [2025-04-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845712', 'tblTempVendorCDR_20' ) start [2025-04-06 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845712', 'tblTempVendorCDR_20' ) end [2025-04-06 06:33:19] Production.INFO: ProcessCDR(1,14845712,1,1,2) [2025-04-06 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845712', 'tblTempUsageDetail_20' ) start [2025-04-06 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845712', 'tblTempUsageDetail_20' ) end [2025-04-06 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:33:23] Production.INFO: ==25536== Releasing lock... [2025-04-06 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:33:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:34:05 [end_date_ymd] => 2025-04-06 06:34:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:34:05' and `end` < '2025-04-06 06: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-04-06 06:34:18] Production.INFO: count ==872 [2025-04-06 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:34:05 - End Time 2025-04-06 06:34:05 [2025-04-06 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845717', 'tblTempUsageDetail_20' ) start [2025-04-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845717', 'tblTempUsageDetail_20' ) end [2025-04-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845717', 'tblTempVendorCDR_20' ) start [2025-04-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845717', 'tblTempVendorCDR_20' ) end [2025-04-06 06:34:18] Production.INFO: ProcessCDR(1,14845717,1,1,2) [2025-04-06 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845717', 'tblTempUsageDetail_20' ) start [2025-04-06 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845717', 'tblTempUsageDetail_20' ) end [2025-04-06 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:34:22] Production.INFO: ==25607== Releasing lock... [2025-04-06 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:35:05 [end_date_ymd] => 2025-04-06 06:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:35:05' and `end` < '2025-04-06 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-04-06 06:35:18] Production.INFO: count ==868 [2025-04-06 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:35:05 - End Time 2025-04-06 06:35:05 [2025-04-06 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845722', 'tblTempUsageDetail_20' ) start [2025-04-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845722', 'tblTempUsageDetail_20' ) end [2025-04-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845722', 'tblTempVendorCDR_20' ) start [2025-04-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845722', 'tblTempVendorCDR_20' ) end [2025-04-06 06:35:18] Production.INFO: ProcessCDR(1,14845722,1,1,2) [2025-04-06 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845722', 'tblTempUsageDetail_20' ) start [2025-04-06 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845722', 'tblTempUsageDetail_20' ) end [2025-04-06 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:35:22] Production.INFO: ==25678== Releasing lock... [2025-04-06 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:36:05 [end_date_ymd] => 2025-04-06 06:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:36:05' and `end` < '2025-04-06 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-04-06 06:36:18] Production.INFO: count ==858 [2025-04-06 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:36:05 - End Time 2025-04-06 06:36:05 [2025-04-06 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845727', 'tblTempUsageDetail_20' ) start [2025-04-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845727', 'tblTempUsageDetail_20' ) end [2025-04-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845727', 'tblTempVendorCDR_20' ) start [2025-04-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845727', 'tblTempVendorCDR_20' ) end [2025-04-06 06:36:18] Production.INFO: ProcessCDR(1,14845727,1,1,2) [2025-04-06 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845727', 'tblTempUsageDetail_20' ) start [2025-04-06 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845727', 'tblTempUsageDetail_20' ) end [2025-04-06 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:36:22] Production.INFO: ==25748== Releasing lock... [2025-04-06 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:36:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:37:05 [end_date_ymd] => 2025-04-06 06:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:37:05' and `end` < '2025-04-06 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-04-06 06:37:18] Production.INFO: count ==851 [2025-04-06 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:37:05 - End Time 2025-04-06 06:37:05 [2025-04-06 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845732', 'tblTempUsageDetail_20' ) start [2025-04-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845732', 'tblTempUsageDetail_20' ) end [2025-04-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845732', 'tblTempVendorCDR_20' ) start [2025-04-06 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845732', 'tblTempVendorCDR_20' ) end [2025-04-06 06:37:19] Production.INFO: ProcessCDR(1,14845732,1,1,2) [2025-04-06 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845732', 'tblTempUsageDetail_20' ) start [2025-04-06 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845732', 'tblTempUsageDetail_20' ) end [2025-04-06 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:37:22] Production.INFO: ==25820== Releasing lock... [2025-04-06 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:37:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:38:05 [end_date_ymd] => 2025-04-06 06:38:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:38:05' and `end` < '2025-04-06 06: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-04-06 06:38:18] Production.INFO: count ==837 [2025-04-06 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:38:05 - End Time 2025-04-06 06:38:05 [2025-04-06 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845737', 'tblTempUsageDetail_20' ) start [2025-04-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845737', 'tblTempUsageDetail_20' ) end [2025-04-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845737', 'tblTempVendorCDR_20' ) start [2025-04-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845737', 'tblTempVendorCDR_20' ) end [2025-04-06 06:38:18] Production.INFO: ProcessCDR(1,14845737,1,1,2) [2025-04-06 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845737', 'tblTempUsageDetail_20' ) start [2025-04-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845737', 'tblTempUsageDetail_20' ) end [2025-04-06 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:38:22] Production.INFO: ==25893== Releasing lock... [2025-04-06 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:38:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:39:05 [end_date_ymd] => 2025-04-06 06:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:39:05' and `end` < '2025-04-06 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-04-06 06:39:18] Production.INFO: count ==835 [2025-04-06 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:39:05 - End Time 2025-04-06 06:39:05 [2025-04-06 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845742', 'tblTempUsageDetail_20' ) start [2025-04-06 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845742', 'tblTempUsageDetail_20' ) end [2025-04-06 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845742', 'tblTempVendorCDR_20' ) start [2025-04-06 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845742', 'tblTempVendorCDR_20' ) end [2025-04-06 06:39:18] Production.INFO: ProcessCDR(1,14845742,1,1,2) [2025-04-06 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845742', 'tblTempUsageDetail_20' ) start [2025-04-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845742', 'tblTempUsageDetail_20' ) end [2025-04-06 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:39:22] Production.INFO: ==26004== Releasing lock... [2025-04-06 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:39:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:40:06 [end_date_ymd] => 2025-04-06 06:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:40:06' and `end` < '2025-04-06 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-04-06 06:40:19] Production.INFO: count ==814 [2025-04-06 06:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 03:40:06 - End Time 2025-04-06 06:40:06 [2025-04-06 06:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845747', 'tblTempUsageDetail_20' ) start [2025-04-06 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845747', 'tblTempUsageDetail_20' ) end [2025-04-06 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845747', 'tblTempVendorCDR_20' ) start [2025-04-06 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845747', 'tblTempVendorCDR_20' ) end [2025-04-06 06:40:20] Production.INFO: ProcessCDR(1,14845747,1,1,2) [2025-04-06 06:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845747', 'tblTempUsageDetail_20' ) start [2025-04-06 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845747', 'tblTempUsageDetail_20' ) end [2025-04-06 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:40:23] Production.INFO: ==26076== Releasing lock... [2025-04-06 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:41:05 [end_date_ymd] => 2025-04-06 06:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:41:05' and `end` < '2025-04-06 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-04-06 06:41:18] Production.INFO: count ==805 [2025-04-06 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:41:05 - End Time 2025-04-06 06:41:05 [2025-04-06 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845753', 'tblTempUsageDetail_20' ) start [2025-04-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845753', 'tblTempUsageDetail_20' ) end [2025-04-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845753', 'tblTempVendorCDR_20' ) start [2025-04-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845753', 'tblTempVendorCDR_20' ) end [2025-04-06 06:41:18] Production.INFO: ProcessCDR(1,14845753,1,1,2) [2025-04-06 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845753', 'tblTempUsageDetail_20' ) start [2025-04-06 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845753', 'tblTempUsageDetail_20' ) end [2025-04-06 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:41:21] Production.INFO: ==26151== Releasing lock... [2025-04-06 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:42:05 [end_date_ymd] => 2025-04-06 06:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:42:05' and `end` < '2025-04-06 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-04-06 06:42:18] Production.INFO: count ==802 [2025-04-06 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:42:05 - End Time 2025-04-06 06:42:05 [2025-04-06 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845758', 'tblTempUsageDetail_20' ) start [2025-04-06 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845758', 'tblTempUsageDetail_20' ) end [2025-04-06 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845758', 'tblTempVendorCDR_20' ) start [2025-04-06 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845758', 'tblTempVendorCDR_20' ) end [2025-04-06 06:42:18] Production.INFO: ProcessCDR(1,14845758,1,1,2) [2025-04-06 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845758', 'tblTempUsageDetail_20' ) start [2025-04-06 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845758', 'tblTempUsageDetail_20' ) end [2025-04-06 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:42:22] Production.INFO: ==26227== Releasing lock... [2025-04-06 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:42:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:43:05 [end_date_ymd] => 2025-04-06 06:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:43:05' and `end` < '2025-04-06 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-04-06 06:43:18] Production.INFO: count ==796 [2025-04-06 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:43:05 - End Time 2025-04-06 06:43:05 [2025-04-06 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845763', 'tblTempUsageDetail_20' ) start [2025-04-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845763', 'tblTempUsageDetail_20' ) end [2025-04-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845763', 'tblTempVendorCDR_20' ) start [2025-04-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845763', 'tblTempVendorCDR_20' ) end [2025-04-06 06:43:18] Production.INFO: ProcessCDR(1,14845763,1,1,2) [2025-04-06 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845763', 'tblTempUsageDetail_20' ) start [2025-04-06 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845763', 'tblTempUsageDetail_20' ) end [2025-04-06 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:43:22] Production.INFO: ==26299== Releasing lock... [2025-04-06 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:43:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:44:05 [end_date_ymd] => 2025-04-06 06:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:44:05' and `end` < '2025-04-06 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-04-06 06:44:18] Production.INFO: count ==792 [2025-04-06 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:44:05 - End Time 2025-04-06 06:44:05 [2025-04-06 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845768', 'tblTempUsageDetail_20' ) start [2025-04-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845768', 'tblTempUsageDetail_20' ) end [2025-04-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845768', 'tblTempVendorCDR_20' ) start [2025-04-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845768', 'tblTempVendorCDR_20' ) end [2025-04-06 06:44:18] Production.INFO: ProcessCDR(1,14845768,1,1,2) [2025-04-06 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845768', 'tblTempUsageDetail_20' ) start [2025-04-06 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845768', 'tblTempUsageDetail_20' ) end [2025-04-06 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:44:21] Production.INFO: ==26369== Releasing lock... [2025-04-06 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:44:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:45:05 [end_date_ymd] => 2025-04-06 06:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:45:05' and `end` < '2025-04-06 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-04-06 06:45:19] Production.INFO: count ==784 [2025-04-06 06:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:45:05 - End Time 2025-04-06 06:45:05 [2025-04-06 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845773', 'tblTempUsageDetail_20' ) start [2025-04-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845773', 'tblTempUsageDetail_20' ) end [2025-04-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845773', 'tblTempVendorCDR_20' ) start [2025-04-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845773', 'tblTempVendorCDR_20' ) end [2025-04-06 06:45:19] Production.INFO: ProcessCDR(1,14845773,1,1,2) [2025-04-06 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845773', 'tblTempUsageDetail_20' ) start [2025-04-06 06:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845773', 'tblTempUsageDetail_20' ) end [2025-04-06 06:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:45:23] Production.INFO: ==26442== Releasing lock... [2025-04-06 06:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:45:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:46:06 [end_date_ymd] => 2025-04-06 06:46:06 [RateCDR] => 1 ) [2025-04-06 06:46: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-04-06 03:46:06' and `end` < '2025-04-06 06:46: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-04-06 06:46:19] Production.INFO: count ==774 [2025-04-06 06:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:46:06 - End Time 2025-04-06 06:46:06 [2025-04-06 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845778', 'tblTempUsageDetail_20' ) start [2025-04-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845778', 'tblTempUsageDetail_20' ) end [2025-04-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845778', 'tblTempVendorCDR_20' ) start [2025-04-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845778', 'tblTempVendorCDR_20' ) end [2025-04-06 06:46:19] Production.INFO: ProcessCDR(1,14845778,1,1,2) [2025-04-06 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845778', 'tblTempUsageDetail_20' ) start [2025-04-06 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845778', 'tblTempUsageDetail_20' ) end [2025-04-06 06:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:46:23] Production.INFO: ==26512== Releasing lock... [2025-04-06 06:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:47:05 [end_date_ymd] => 2025-04-06 06:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:47:05' and `end` < '2025-04-06 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-04-06 06:47:18] Production.INFO: count ==769 [2025-04-06 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:47:05 - End Time 2025-04-06 06:47:05 [2025-04-06 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845783', 'tblTempUsageDetail_20' ) start [2025-04-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845783', 'tblTempUsageDetail_20' ) end [2025-04-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845783', 'tblTempVendorCDR_20' ) start [2025-04-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845783', 'tblTempVendorCDR_20' ) end [2025-04-06 06:47:19] Production.INFO: ProcessCDR(1,14845783,1,1,2) [2025-04-06 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845783', 'tblTempUsageDetail_20' ) start [2025-04-06 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845783', 'tblTempUsageDetail_20' ) end [2025-04-06 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:47:22] Production.INFO: ==26583== Releasing lock... [2025-04-06 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:47:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:48:05 [end_date_ymd] => 2025-04-06 06:48:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:48:05' and `end` < '2025-04-06 06: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-04-06 06:48:18] Production.INFO: count ==759 [2025-04-06 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:48:05 - End Time 2025-04-06 06:48:05 [2025-04-06 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845788', 'tblTempUsageDetail_20' ) start [2025-04-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845788', 'tblTempUsageDetail_20' ) end [2025-04-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845788', 'tblTempVendorCDR_20' ) start [2025-04-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845788', 'tblTempVendorCDR_20' ) end [2025-04-06 06:48:18] Production.INFO: ProcessCDR(1,14845788,1,1,2) [2025-04-06 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845788', 'tblTempUsageDetail_20' ) start [2025-04-06 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845788', 'tblTempUsageDetail_20' ) end [2025-04-06 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:48:22] Production.INFO: ==26658== Releasing lock... [2025-04-06 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:48:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:49:05 [end_date_ymd] => 2025-04-06 06:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:49:05' and `end` < '2025-04-06 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-04-06 06:49:17] Production.INFO: count ==755 [2025-04-06 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:49:05 - End Time 2025-04-06 06:49:05 [2025-04-06 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845793', 'tblTempUsageDetail_20' ) start [2025-04-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845793', 'tblTempUsageDetail_20' ) end [2025-04-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845793', 'tblTempVendorCDR_20' ) start [2025-04-06 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845793', 'tblTempVendorCDR_20' ) end [2025-04-06 06:49:18] Production.INFO: ProcessCDR(1,14845793,1,1,2) [2025-04-06 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845793', 'tblTempUsageDetail_20' ) start [2025-04-06 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845793', 'tblTempUsageDetail_20' ) end [2025-04-06 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:49:21] Production.INFO: ==26729== Releasing lock... [2025-04-06 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:50:06 [end_date_ymd] => 2025-04-06 06:50:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:50:06' and `end` < '2025-04-06 06: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-04-06 06:50:19] Production.INFO: count ==735 [2025-04-06 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:50:06 - End Time 2025-04-06 06:50:06 [2025-04-06 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845799', 'tblTempUsageDetail_20' ) start [2025-04-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845799', 'tblTempUsageDetail_20' ) end [2025-04-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845799', 'tblTempVendorCDR_20' ) start [2025-04-06 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845799', 'tblTempVendorCDR_20' ) end [2025-04-06 06:50:19] Production.INFO: ProcessCDR(1,14845799,1,1,2) [2025-04-06 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845799', 'tblTempUsageDetail_20' ) start [2025-04-06 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845799', 'tblTempUsageDetail_20' ) end [2025-04-06 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:50:23] Production.INFO: ==26800== Releasing lock... [2025-04-06 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:51:05 [end_date_ymd] => 2025-04-06 06:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:51:05' and `end` < '2025-04-06 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-04-06 06:51:17] Production.INFO: count ==720 [2025-04-06 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:51:05 - End Time 2025-04-06 06:51:05 [2025-04-06 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845804', 'tblTempUsageDetail_20' ) start [2025-04-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845804', 'tblTempUsageDetail_20' ) end [2025-04-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845804', 'tblTempVendorCDR_20' ) start [2025-04-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845804', 'tblTempVendorCDR_20' ) end [2025-04-06 06:51:18] Production.INFO: ProcessCDR(1,14845804,1,1,2) [2025-04-06 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845804', 'tblTempUsageDetail_20' ) start [2025-04-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845804', 'tblTempUsageDetail_20' ) end [2025-04-06 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:51:21] Production.INFO: ==26874== Releasing lock... [2025-04-06 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:51:21] Production.INFO: 34 MB #Memory Used# [2025-04-06 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:52:06 [end_date_ymd] => 2025-04-06 06:52:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:52:06' and `end` < '2025-04-06 06: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-04-06 06:52:18] Production.INFO: count ==723 [2025-04-06 06:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:52:06 - End Time 2025-04-06 06:52:06 [2025-04-06 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845809', 'tblTempUsageDetail_20' ) start [2025-04-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845809', 'tblTempUsageDetail_20' ) end [2025-04-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845809', 'tblTempVendorCDR_20' ) start [2025-04-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845809', 'tblTempVendorCDR_20' ) end [2025-04-06 06:52:19] Production.INFO: ProcessCDR(1,14845809,1,1,2) [2025-04-06 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845809', 'tblTempUsageDetail_20' ) start [2025-04-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845809', 'tblTempUsageDetail_20' ) end [2025-04-06 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:52:22] Production.INFO: ==26950== Releasing lock... [2025-04-06 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:52:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:53:04 [end_date_ymd] => 2025-04-06 06:53:04 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:53:04' and `end` < '2025-04-06 06: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-04-06 06:53:17] Production.INFO: count ==713 [2025-04-06 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-06 03:53:04 - End Time 2025-04-06 06:53:04 [2025-04-06 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845814', 'tblTempUsageDetail_20' ) start [2025-04-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845814', 'tblTempUsageDetail_20' ) end [2025-04-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845814', 'tblTempVendorCDR_20' ) start [2025-04-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845814', 'tblTempVendorCDR_20' ) end [2025-04-06 06:53:17] Production.INFO: ProcessCDR(1,14845814,1,1,2) [2025-04-06 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845814', 'tblTempUsageDetail_20' ) start [2025-04-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845814', 'tblTempUsageDetail_20' ) end [2025-04-06 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:53:21] Production.INFO: ==27021== Releasing lock... [2025-04-06 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:54:05 [end_date_ymd] => 2025-04-06 06:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:54:05' and `end` < '2025-04-06 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-04-06 06:54:19] Production.INFO: count ==713 [2025-04-06 06:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:54:05 - End Time 2025-04-06 06:54:05 [2025-04-06 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845819', 'tblTempUsageDetail_20' ) start [2025-04-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845819', 'tblTempUsageDetail_20' ) end [2025-04-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845819', 'tblTempVendorCDR_20' ) start [2025-04-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845819', 'tblTempVendorCDR_20' ) end [2025-04-06 06:54:19] Production.INFO: ProcessCDR(1,14845819,1,1,2) [2025-04-06 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845819', 'tblTempUsageDetail_20' ) start [2025-04-06 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845819', 'tblTempUsageDetail_20' ) end [2025-04-06 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:54:22] Production.INFO: ==27130== Releasing lock... [2025-04-06 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:55:05 [end_date_ymd] => 2025-04-06 06:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:55:05' and `end` < '2025-04-06 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-04-06 06:55:18] Production.INFO: count ==715 [2025-04-06 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:55:05 - End Time 2025-04-06 06:55:05 [2025-04-06 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845824', 'tblTempUsageDetail_20' ) start [2025-04-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845824', 'tblTempUsageDetail_20' ) end [2025-04-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845824', 'tblTempVendorCDR_20' ) start [2025-04-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845824', 'tblTempVendorCDR_20' ) end [2025-04-06 06:55:18] Production.INFO: ProcessCDR(1,14845824,1,1,2) [2025-04-06 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845824', 'tblTempUsageDetail_20' ) start [2025-04-06 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845824', 'tblTempUsageDetail_20' ) end [2025-04-06 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:55:22] Production.INFO: ==27203== Releasing lock... [2025-04-06 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:56:05 [end_date_ymd] => 2025-04-06 06:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 03:56:05' and `end` < '2025-04-06 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-04-06 06:56:19] Production.INFO: count ==716 [2025-04-06 06:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:56:05 - End Time 2025-04-06 06:56:05 [2025-04-06 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845829', 'tblTempUsageDetail_20' ) start [2025-04-06 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845829', 'tblTempUsageDetail_20' ) end [2025-04-06 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845829', 'tblTempVendorCDR_20' ) start [2025-04-06 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845829', 'tblTempVendorCDR_20' ) end [2025-04-06 06:56:19] Production.INFO: ProcessCDR(1,14845829,1,1,2) [2025-04-06 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845829', 'tblTempUsageDetail_20' ) start [2025-04-06 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845829', 'tblTempUsageDetail_20' ) end [2025-04-06 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:56:22] Production.INFO: ==27273== Releasing lock... [2025-04-06 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:56:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:57:06 [end_date_ymd] => 2025-04-06 06:57:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:57:06' and `end` < '2025-04-06 06: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-04-06 06:57:18] Production.INFO: count ==714 [2025-04-06 06:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:57:06 - End Time 2025-04-06 06:57:06 [2025-04-06 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845834', 'tblTempUsageDetail_20' ) start [2025-04-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845834', 'tblTempUsageDetail_20' ) end [2025-04-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845834', 'tblTempVendorCDR_20' ) start [2025-04-06 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845834', 'tblTempVendorCDR_20' ) end [2025-04-06 06:57:19] Production.INFO: ProcessCDR(1,14845834,1,1,2) [2025-04-06 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845834', 'tblTempUsageDetail_20' ) start [2025-04-06 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845834', 'tblTempUsageDetail_20' ) end [2025-04-06 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:57:22] Production.INFO: ==27349== Releasing lock... [2025-04-06 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:58:05 [end_date_ymd] => 2025-04-06 06:58:05 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:58:05' and `end` < '2025-04-06 06: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-04-06 06:58:18] Production.INFO: count ==713 [2025-04-06 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 03:58:05 - End Time 2025-04-06 06:58:05 [2025-04-06 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845839', 'tblTempUsageDetail_20' ) start [2025-04-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845839', 'tblTempUsageDetail_20' ) end [2025-04-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845839', 'tblTempVendorCDR_20' ) start [2025-04-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845839', 'tblTempVendorCDR_20' ) end [2025-04-06 06:58:18] Production.INFO: ProcessCDR(1,14845839,1,1,2) [2025-04-06 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845839', 'tblTempUsageDetail_20' ) start [2025-04-06 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845839', 'tblTempUsageDetail_20' ) end [2025-04-06 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:58:21] Production.INFO: ==27423== Releasing lock... [2025-04-06 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 03:59:06 [end_date_ymd] => 2025-04-06 06:59:06 [RateCDR] => 1 ) [2025-04-06 06: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-04-06 03:59:06' and `end` < '2025-04-06 06: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-04-06 06:59:18] Production.INFO: count ==717 [2025-04-06 06:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 03:59:06 - End Time 2025-04-06 06:59:06 [2025-04-06 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845844', 'tblTempUsageDetail_20' ) start [2025-04-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845844', 'tblTempUsageDetail_20' ) end [2025-04-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845844', 'tblTempVendorCDR_20' ) start [2025-04-06 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845844', 'tblTempVendorCDR_20' ) end [2025-04-06 06:59:19] Production.INFO: ProcessCDR(1,14845844,1,1,2) [2025-04-06 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845844', 'tblTempUsageDetail_20' ) start [2025-04-06 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845844', 'tblTempUsageDetail_20' ) end [2025-04-06 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 06:59:22] Production.INFO: ==27492== Releasing lock... [2025-04-06 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 06:59:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:00:06 [end_date_ymd] => 2025-04-06 07:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:00:06' and `end` < '2025-04-06 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-04-06 07:00:19] Production.INFO: count ==717 [2025-04-06 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:00:06 - End Time 2025-04-06 07:00:06 [2025-04-06 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845850', 'tblTempUsageDetail_20' ) start [2025-04-06 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845850', 'tblTempUsageDetail_20' ) end [2025-04-06 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845850', 'tblTempVendorCDR_20' ) start [2025-04-06 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845850', 'tblTempVendorCDR_20' ) end [2025-04-06 07:00:19] Production.INFO: ProcessCDR(1,14845850,1,1,2) [2025-04-06 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845850', 'tblTempUsageDetail_20' ) start [2025-04-06 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845850', 'tblTempUsageDetail_20' ) end [2025-04-06 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:00:22] Production.INFO: ==27567== Releasing lock... [2025-04-06 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:00:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:01:06 [end_date_ymd] => 2025-04-06 07:01:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:01:06' and `end` < '2025-04-06 07: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-04-06 07:01:19] Production.INFO: count ==725 [2025-04-06 07:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:01:06 - End Time 2025-04-06 07:01:06 [2025-04-06 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845855', 'tblTempUsageDetail_20' ) start [2025-04-06 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845855', 'tblTempUsageDetail_20' ) end [2025-04-06 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845855', 'tblTempVendorCDR_20' ) start [2025-04-06 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845855', 'tblTempVendorCDR_20' ) end [2025-04-06 07:01:19] Production.INFO: ProcessCDR(1,14845855,1,1,2) [2025-04-06 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845855', 'tblTempUsageDetail_20' ) start [2025-04-06 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845855', 'tblTempUsageDetail_20' ) end [2025-04-06 07:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:01:23] Production.INFO: ==27654== Releasing lock... [2025-04-06 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:02:05 [end_date_ymd] => 2025-04-06 07:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:02:05' and `end` < '2025-04-06 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-04-06 07:02:20] Production.INFO: count ==736 [2025-04-06 07:02:21] Production.ERROR: pbx CDR StartTime 2025-04-06 04:02:05 - End Time 2025-04-06 07:02:05 [2025-04-06 07:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845860', 'tblTempUsageDetail_20' ) start [2025-04-06 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845860', 'tblTempUsageDetail_20' ) end [2025-04-06 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845860', 'tblTempVendorCDR_20' ) start [2025-04-06 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845860', 'tblTempVendorCDR_20' ) end [2025-04-06 07:02:21] Production.INFO: ProcessCDR(1,14845860,1,1,2) [2025-04-06 07:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845860', 'tblTempUsageDetail_20' ) start [2025-04-06 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845860', 'tblTempUsageDetail_20' ) end [2025-04-06 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:02:25] Production.INFO: ==27805== Releasing lock... [2025-04-06 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:02:25] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:03:06 [end_date_ymd] => 2025-04-06 07:03:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:03:06' and `end` < '2025-04-06 07: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-04-06 07:03:19] Production.INFO: count ==756 [2025-04-06 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:03:06 - End Time 2025-04-06 07:03:06 [2025-04-06 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845865', 'tblTempUsageDetail_20' ) start [2025-04-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845865', 'tblTempUsageDetail_20' ) end [2025-04-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845865', 'tblTempVendorCDR_20' ) start [2025-04-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845865', 'tblTempVendorCDR_20' ) end [2025-04-06 07:03:19] Production.INFO: ProcessCDR(1,14845865,1,1,2) [2025-04-06 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845865', 'tblTempUsageDetail_20' ) start [2025-04-06 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845865', 'tblTempUsageDetail_20' ) end [2025-04-06 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:03:22] Production.INFO: ==27876== Releasing lock... [2025-04-06 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:03:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:04:05 [end_date_ymd] => 2025-04-06 07:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:04:05' and `end` < '2025-04-06 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-04-06 07:04:18] Production.INFO: count ==767 [2025-04-06 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:04:05 - End Time 2025-04-06 07:04:05 [2025-04-06 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845870', 'tblTempUsageDetail_20' ) start [2025-04-06 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845870', 'tblTempUsageDetail_20' ) end [2025-04-06 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845870', 'tblTempVendorCDR_20' ) start [2025-04-06 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845870', 'tblTempVendorCDR_20' ) end [2025-04-06 07:04:18] Production.INFO: ProcessCDR(1,14845870,1,1,2) [2025-04-06 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845870', 'tblTempUsageDetail_20' ) start [2025-04-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845870', 'tblTempUsageDetail_20' ) end [2025-04-06 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:04:23] Production.INFO: ==27949== Releasing lock... [2025-04-06 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:04:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:05:05 [end_date_ymd] => 2025-04-06 07:05:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:05:05' and `end` < '2025-04-06 07: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-04-06 07:05:19] Production.INFO: count ==766 [2025-04-06 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:05:05 - End Time 2025-04-06 07:05:05 [2025-04-06 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845875', 'tblTempUsageDetail_20' ) start [2025-04-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845875', 'tblTempUsageDetail_20' ) end [2025-04-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845875', 'tblTempVendorCDR_20' ) start [2025-04-06 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845875', 'tblTempVendorCDR_20' ) end [2025-04-06 07:05:19] Production.INFO: ProcessCDR(1,14845875,1,1,2) [2025-04-06 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845875', 'tblTempUsageDetail_20' ) start [2025-04-06 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845875', 'tblTempUsageDetail_20' ) end [2025-04-06 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:05:23] Production.INFO: ==28100== Releasing lock... [2025-04-06 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:06:05 [end_date_ymd] => 2025-04-06 07:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:06:05' and `end` < '2025-04-06 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-04-06 07:06:18] Production.INFO: count ==770 [2025-04-06 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:06:05 - End Time 2025-04-06 07:06:05 [2025-04-06 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845880', 'tblTempUsageDetail_20' ) start [2025-04-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845880', 'tblTempUsageDetail_20' ) end [2025-04-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845880', 'tblTempVendorCDR_20' ) start [2025-04-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845880', 'tblTempVendorCDR_20' ) end [2025-04-06 07:06:19] Production.INFO: ProcessCDR(1,14845880,1,1,2) [2025-04-06 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845880', 'tblTempUsageDetail_20' ) start [2025-04-06 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845880', 'tblTempUsageDetail_20' ) end [2025-04-06 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:06:23] Production.INFO: ==28169== Releasing lock... [2025-04-06 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:06:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:07:05 [end_date_ymd] => 2025-04-06 07:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:07:05' and `end` < '2025-04-06 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-04-06 07:07:18] Production.INFO: count ==768 [2025-04-06 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:07:05 - End Time 2025-04-06 07:07:05 [2025-04-06 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845885', 'tblTempUsageDetail_20' ) start [2025-04-06 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845885', 'tblTempUsageDetail_20' ) end [2025-04-06 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845885', 'tblTempVendorCDR_20' ) start [2025-04-06 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845885', 'tblTempVendorCDR_20' ) end [2025-04-06 07:07:18] Production.INFO: ProcessCDR(1,14845885,1,1,2) [2025-04-06 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845885', 'tblTempUsageDetail_20' ) start [2025-04-06 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845885', 'tblTempUsageDetail_20' ) end [2025-04-06 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:07:22] Production.INFO: ==28242== Releasing lock... [2025-04-06 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:08:05 [end_date_ymd] => 2025-04-06 07:08:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:08:05' and `end` < '2025-04-06 07: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-04-06 07:08:18] Production.INFO: count ==768 [2025-04-06 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:08:05 - End Time 2025-04-06 07:08:05 [2025-04-06 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845890', 'tblTempUsageDetail_20' ) start [2025-04-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845890', 'tblTempUsageDetail_20' ) end [2025-04-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845890', 'tblTempVendorCDR_20' ) start [2025-04-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845890', 'tblTempVendorCDR_20' ) end [2025-04-06 07:08:18] Production.INFO: ProcessCDR(1,14845890,1,1,2) [2025-04-06 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845890', 'tblTempUsageDetail_20' ) start [2025-04-06 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845890', 'tblTempUsageDetail_20' ) end [2025-04-06 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:08:21] Production.INFO: ==28317== Releasing lock... [2025-04-06 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:08:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:09:06 [end_date_ymd] => 2025-04-06 07:09:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:09:06' and `end` < '2025-04-06 07: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-04-06 07:09:19] Production.INFO: count ==767 [2025-04-06 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:09:06 - End Time 2025-04-06 07:09:06 [2025-04-06 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845895', 'tblTempUsageDetail_20' ) start [2025-04-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845895', 'tblTempUsageDetail_20' ) end [2025-04-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845895', 'tblTempVendorCDR_20' ) start [2025-04-06 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845895', 'tblTempVendorCDR_20' ) end [2025-04-06 07:09:19] Production.INFO: ProcessCDR(1,14845895,1,1,2) [2025-04-06 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845895', 'tblTempUsageDetail_20' ) start [2025-04-06 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845895', 'tblTempUsageDetail_20' ) end [2025-04-06 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:09:23] Production.INFO: ==28505== Releasing lock... [2025-04-06 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:09:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:10:06 [end_date_ymd] => 2025-04-06 07:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:10:06' and `end` < '2025-04-06 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-04-06 07:10:19] Production.INFO: count ==775 [2025-04-06 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:10:06 - End Time 2025-04-06 07:10:06 [2025-04-06 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845900', 'tblTempUsageDetail_20' ) start [2025-04-06 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845900', 'tblTempUsageDetail_20' ) end [2025-04-06 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845900', 'tblTempVendorCDR_20' ) start [2025-04-06 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845900', 'tblTempVendorCDR_20' ) end [2025-04-06 07:10:19] Production.INFO: ProcessCDR(1,14845900,1,1,2) [2025-04-06 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845900', 'tblTempUsageDetail_20' ) start [2025-04-06 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845900', 'tblTempUsageDetail_20' ) end [2025-04-06 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:10:23] Production.INFO: ==28579== Releasing lock... [2025-04-06 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:10:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:11:05 [end_date_ymd] => 2025-04-06 07:11:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:11:05' and `end` < '2025-04-06 07: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-04-06 07:11:20] Production.INFO: count ==776 [2025-04-06 07:11:20] Production.ERROR: pbx CDR StartTime 2025-04-06 04:11:05 - End Time 2025-04-06 07:11:05 [2025-04-06 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845906', 'tblTempUsageDetail_20' ) start [2025-04-06 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845906', 'tblTempUsageDetail_20' ) end [2025-04-06 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845906', 'tblTempVendorCDR_20' ) start [2025-04-06 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845906', 'tblTempVendorCDR_20' ) end [2025-04-06 07:11:20] Production.INFO: ProcessCDR(1,14845906,1,1,2) [2025-04-06 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845906', 'tblTempUsageDetail_20' ) start [2025-04-06 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845906', 'tblTempUsageDetail_20' ) end [2025-04-06 07:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:11:25] Production.INFO: ==28656== Releasing lock... [2025-04-06 07:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:11:25] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:12:05 [end_date_ymd] => 2025-04-06 07:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:12:05' and `end` < '2025-04-06 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-04-06 07:12:19] Production.INFO: count ==776 [2025-04-06 07:12:20] Production.ERROR: pbx CDR StartTime 2025-04-06 04:12:05 - End Time 2025-04-06 07:12:05 [2025-04-06 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845911', 'tblTempUsageDetail_20' ) start [2025-04-06 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845911', 'tblTempUsageDetail_20' ) end [2025-04-06 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845911', 'tblTempVendorCDR_20' ) start [2025-04-06 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845911', 'tblTempVendorCDR_20' ) end [2025-04-06 07:12:20] Production.INFO: ProcessCDR(1,14845911,1,1,2) [2025-04-06 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845911', 'tblTempUsageDetail_20' ) start [2025-04-06 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845911', 'tblTempUsageDetail_20' ) end [2025-04-06 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:12:23] Production.INFO: ==28814== Releasing lock... [2025-04-06 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:12:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:13:05 [end_date_ymd] => 2025-04-06 07:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:13:05' and `end` < '2025-04-06 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-04-06 07:13:18] Production.INFO: count ==776 [2025-04-06 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:13:05 - End Time 2025-04-06 07:13:05 [2025-04-06 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845916', 'tblTempUsageDetail_20' ) start [2025-04-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845916', 'tblTempUsageDetail_20' ) end [2025-04-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845916', 'tblTempVendorCDR_20' ) start [2025-04-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845916', 'tblTempVendorCDR_20' ) end [2025-04-06 07:13:18] Production.INFO: ProcessCDR(1,14845916,1,1,2) [2025-04-06 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845916', 'tblTempUsageDetail_20' ) start [2025-04-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845916', 'tblTempUsageDetail_20' ) end [2025-04-06 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:13:22] Production.INFO: ==28886== Releasing lock... [2025-04-06 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:13:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:14:05 [end_date_ymd] => 2025-04-06 07:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:14:05' and `end` < '2025-04-06 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-04-06 07:14:19] Production.INFO: count ==777 [2025-04-06 07:14:20] Production.ERROR: pbx CDR StartTime 2025-04-06 04:14:05 - End Time 2025-04-06 07:14:05 [2025-04-06 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845921', 'tblTempUsageDetail_20' ) start [2025-04-06 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845921', 'tblTempUsageDetail_20' ) end [2025-04-06 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845921', 'tblTempVendorCDR_20' ) start [2025-04-06 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845921', 'tblTempVendorCDR_20' ) end [2025-04-06 07:14:20] Production.INFO: ProcessCDR(1,14845921,1,1,2) [2025-04-06 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845921', 'tblTempUsageDetail_20' ) start [2025-04-06 07:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845921', 'tblTempUsageDetail_20' ) end [2025-04-06 07:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:14:25] Production.INFO: ==28958== Releasing lock... [2025-04-06 07:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:14:25] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:15:05 [end_date_ymd] => 2025-04-06 07:15:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:15:05' and `end` < '2025-04-06 07: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-04-06 07:15:18] Production.INFO: count ==777 [2025-04-06 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:15:05 - End Time 2025-04-06 07:15:05 [2025-04-06 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845926', 'tblTempUsageDetail_20' ) start [2025-04-06 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845926', 'tblTempUsageDetail_20' ) end [2025-04-06 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845926', 'tblTempVendorCDR_20' ) start [2025-04-06 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845926', 'tblTempVendorCDR_20' ) end [2025-04-06 07:15:19] Production.INFO: ProcessCDR(1,14845926,1,1,2) [2025-04-06 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845926', 'tblTempUsageDetail_20' ) start [2025-04-06 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845926', 'tblTempUsageDetail_20' ) end [2025-04-06 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:15:22] Production.INFO: ==29030== Releasing lock... [2025-04-06 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:16:05 [end_date_ymd] => 2025-04-06 07:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:16:05' and `end` < '2025-04-06 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-04-06 07:16:18] Production.INFO: count ==773 [2025-04-06 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:16:05 - End Time 2025-04-06 07:16:05 [2025-04-06 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845931', 'tblTempUsageDetail_20' ) start [2025-04-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845931', 'tblTempUsageDetail_20' ) end [2025-04-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845931', 'tblTempVendorCDR_20' ) start [2025-04-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845931', 'tblTempVendorCDR_20' ) end [2025-04-06 07:16:18] Production.INFO: ProcessCDR(1,14845931,1,1,2) [2025-04-06 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845931', 'tblTempUsageDetail_20' ) start [2025-04-06 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845931', 'tblTempUsageDetail_20' ) end [2025-04-06 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:16:21] Production.INFO: ==29180== Releasing lock... [2025-04-06 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:17:06 [end_date_ymd] => 2025-04-06 07:17:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:17:06' and `end` < '2025-04-06 07: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-04-06 07:17:19] Production.INFO: count ==770 [2025-04-06 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:17:06 - End Time 2025-04-06 07:17:06 [2025-04-06 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845936', 'tblTempUsageDetail_20' ) start [2025-04-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845936', 'tblTempUsageDetail_20' ) end [2025-04-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845936', 'tblTempVendorCDR_20' ) start [2025-04-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845936', 'tblTempVendorCDR_20' ) end [2025-04-06 07:17:19] Production.INFO: ProcessCDR(1,14845936,1,1,2) [2025-04-06 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845936', 'tblTempUsageDetail_20' ) start [2025-04-06 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845936', 'tblTempUsageDetail_20' ) end [2025-04-06 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:17:22] Production.INFO: ==29254== Releasing lock... [2025-04-06 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:17:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:18:05 [end_date_ymd] => 2025-04-06 07:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:18:05' and `end` < '2025-04-06 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-04-06 07:18:18] Production.INFO: count ==762 [2025-04-06 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:18:05 - End Time 2025-04-06 07:18:05 [2025-04-06 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845941', 'tblTempUsageDetail_20' ) start [2025-04-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845941', 'tblTempUsageDetail_20' ) end [2025-04-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845941', 'tblTempVendorCDR_20' ) start [2025-04-06 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845941', 'tblTempVendorCDR_20' ) end [2025-04-06 07:18:19] Production.INFO: ProcessCDR(1,14845941,1,1,2) [2025-04-06 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845941', 'tblTempUsageDetail_20' ) start [2025-04-06 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845941', 'tblTempUsageDetail_20' ) end [2025-04-06 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:18:22] Production.INFO: ==29327== Releasing lock... [2025-04-06 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:19:05 [end_date_ymd] => 2025-04-06 07:19:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:19:05' and `end` < '2025-04-06 07: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-04-06 07:19:17] Production.INFO: count ==762 [2025-04-06 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:19:05 - End Time 2025-04-06 07:19:05 [2025-04-06 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845946', 'tblTempUsageDetail_20' ) start [2025-04-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845946', 'tblTempUsageDetail_20' ) end [2025-04-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845946', 'tblTempVendorCDR_20' ) start [2025-04-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845946', 'tblTempVendorCDR_20' ) end [2025-04-06 07:19:18] Production.INFO: ProcessCDR(1,14845946,1,1,2) [2025-04-06 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845946', 'tblTempUsageDetail_20' ) start [2025-04-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845946', 'tblTempUsageDetail_20' ) end [2025-04-06 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:19:21] Production.INFO: ==29400== Releasing lock... [2025-04-06 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:19:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:20:06 [end_date_ymd] => 2025-04-06 07:20:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:20:06' and `end` < '2025-04-06 07: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-04-06 07:20:20] Production.INFO: count ==761 [2025-04-06 07:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 04:20:06 - End Time 2025-04-06 07:20:06 [2025-04-06 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845951', 'tblTempUsageDetail_20' ) start [2025-04-06 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845951', 'tblTempUsageDetail_20' ) end [2025-04-06 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845951', 'tblTempVendorCDR_20' ) start [2025-04-06 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845951', 'tblTempVendorCDR_20' ) end [2025-04-06 07:20:20] Production.INFO: ProcessCDR(1,14845951,1,1,2) [2025-04-06 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845951', 'tblTempUsageDetail_20' ) start [2025-04-06 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845951', 'tblTempUsageDetail_20' ) end [2025-04-06 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:20:24] Production.INFO: ==29474== Releasing lock... [2025-04-06 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:20:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:21:05 [end_date_ymd] => 2025-04-06 07:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:21:05' and `end` < '2025-04-06 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-04-06 07:21:18] Production.INFO: count ==761 [2025-04-06 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:21:05 - End Time 2025-04-06 07:21:05 [2025-04-06 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845957', 'tblTempUsageDetail_20' ) start [2025-04-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845957', 'tblTempUsageDetail_20' ) end [2025-04-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845957', 'tblTempVendorCDR_20' ) start [2025-04-06 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845957', 'tblTempVendorCDR_20' ) end [2025-04-06 07:21:19] Production.INFO: ProcessCDR(1,14845957,1,1,2) [2025-04-06 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845957', 'tblTempUsageDetail_20' ) start [2025-04-06 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845957', 'tblTempUsageDetail_20' ) end [2025-04-06 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:21:22] Production.INFO: ==29547== Releasing lock... [2025-04-06 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:22:06 [end_date_ymd] => 2025-04-06 07:22:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:22:06' and `end` < '2025-04-06 07: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-04-06 07:22:19] Production.INFO: count ==759 [2025-04-06 07:22:20] Production.ERROR: pbx CDR StartTime 2025-04-06 04:22:06 - End Time 2025-04-06 07:22:06 [2025-04-06 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845962', 'tblTempUsageDetail_20' ) start [2025-04-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845962', 'tblTempUsageDetail_20' ) end [2025-04-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845962', 'tblTempVendorCDR_20' ) start [2025-04-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845962', 'tblTempVendorCDR_20' ) end [2025-04-06 07:22:20] Production.INFO: ProcessCDR(1,14845962,1,1,2) [2025-04-06 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845962', 'tblTempUsageDetail_20' ) start [2025-04-06 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845962', 'tblTempUsageDetail_20' ) end [2025-04-06 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:22:23] Production.INFO: ==29621== Releasing lock... [2025-04-06 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:22:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:23:05 [end_date_ymd] => 2025-04-06 07:23:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:23:05' and `end` < '2025-04-06 07: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-04-06 07:23:18] Production.INFO: count ==758 [2025-04-06 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:23:05 - End Time 2025-04-06 07:23:05 [2025-04-06 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845967', 'tblTempUsageDetail_20' ) start [2025-04-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845967', 'tblTempUsageDetail_20' ) end [2025-04-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845967', 'tblTempVendorCDR_20' ) start [2025-04-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845967', 'tblTempVendorCDR_20' ) end [2025-04-06 07:23:18] Production.INFO: ProcessCDR(1,14845967,1,1,2) [2025-04-06 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845967', 'tblTempUsageDetail_20' ) start [2025-04-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845967', 'tblTempUsageDetail_20' ) end [2025-04-06 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:23:21] Production.INFO: ==29691== Releasing lock... [2025-04-06 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:23:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:24:06 [end_date_ymd] => 2025-04-06 07:24:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:24:06' and `end` < '2025-04-06 07: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-04-06 07:24:18] Production.INFO: count ==757 [2025-04-06 07:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:24:06 - End Time 2025-04-06 07:24:06 [2025-04-06 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845972', 'tblTempUsageDetail_20' ) start [2025-04-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845972', 'tblTempUsageDetail_20' ) end [2025-04-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845972', 'tblTempVendorCDR_20' ) start [2025-04-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845972', 'tblTempVendorCDR_20' ) end [2025-04-06 07:24:19] Production.INFO: ProcessCDR(1,14845972,1,1,2) [2025-04-06 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845972', 'tblTempUsageDetail_20' ) start [2025-04-06 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845972', 'tblTempUsageDetail_20' ) end [2025-04-06 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:24:22] Production.INFO: ==29766== Releasing lock... [2025-04-06 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:24:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:25:05 [end_date_ymd] => 2025-04-06 07:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:25:05' and `end` < '2025-04-06 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-04-06 07:25:18] Production.INFO: count ==757 [2025-04-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:25:05 - End Time 2025-04-06 07:25:05 [2025-04-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845977', 'tblTempUsageDetail_20' ) start [2025-04-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845977', 'tblTempUsageDetail_20' ) end [2025-04-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845977', 'tblTempVendorCDR_20' ) start [2025-04-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845977', 'tblTempVendorCDR_20' ) end [2025-04-06 07:25:18] Production.INFO: ProcessCDR(1,14845977,1,1,2) [2025-04-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845977', 'tblTempUsageDetail_20' ) start [2025-04-06 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845977', 'tblTempUsageDetail_20' ) end [2025-04-06 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:25:22] Production.INFO: ==29876== Releasing lock... [2025-04-06 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:25:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:26:05 [end_date_ymd] => 2025-04-06 07:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:26:05' and `end` < '2025-04-06 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-04-06 07:26:18] Production.INFO: count ==756 [2025-04-06 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:26:05 - End Time 2025-04-06 07:26:05 [2025-04-06 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845982', 'tblTempUsageDetail_20' ) start [2025-04-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845982', 'tblTempUsageDetail_20' ) end [2025-04-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845982', 'tblTempVendorCDR_20' ) start [2025-04-06 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845982', 'tblTempVendorCDR_20' ) end [2025-04-06 07:26:18] Production.INFO: ProcessCDR(1,14845982,1,1,2) [2025-04-06 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845982', 'tblTempUsageDetail_20' ) start [2025-04-06 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845982', 'tblTempUsageDetail_20' ) end [2025-04-06 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:26:22] Production.INFO: ==29948== Releasing lock... [2025-04-06 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:26:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:27:05 [end_date_ymd] => 2025-04-06 07:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:27:05' and `end` < '2025-04-06 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-04-06 07:27:18] Production.INFO: count ==757 [2025-04-06 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:27:05 - End Time 2025-04-06 07:27:05 [2025-04-06 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845987', 'tblTempUsageDetail_20' ) start [2025-04-06 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845987', 'tblTempUsageDetail_20' ) end [2025-04-06 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845987', 'tblTempVendorCDR_20' ) start [2025-04-06 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845987', 'tblTempVendorCDR_20' ) end [2025-04-06 07:27:18] Production.INFO: ProcessCDR(1,14845987,1,1,2) [2025-04-06 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845987', 'tblTempUsageDetail_20' ) start [2025-04-06 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845987', 'tblTempUsageDetail_20' ) end [2025-04-06 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:27:23] Production.INFO: ==30025== Releasing lock... [2025-04-06 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:27:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:28:06 [end_date_ymd] => 2025-04-06 07:28:06 [RateCDR] => 1 ) [2025-04-06 07:28: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-04-06 04:28:06' and `end` < '2025-04-06 07:28: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-04-06 07:28:18] Production.INFO: count ==753 [2025-04-06 07:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:28:06 - End Time 2025-04-06 07:28:06 [2025-04-06 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845992', 'tblTempUsageDetail_20' ) start [2025-04-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845992', 'tblTempUsageDetail_20' ) end [2025-04-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845992', 'tblTempVendorCDR_20' ) start [2025-04-06 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845992', 'tblTempVendorCDR_20' ) end [2025-04-06 07:28:19] Production.INFO: ProcessCDR(1,14845992,1,1,2) [2025-04-06 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845992', 'tblTempUsageDetail_20' ) start [2025-04-06 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845992', 'tblTempUsageDetail_20' ) end [2025-04-06 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:28:22] Production.INFO: ==30099== Releasing lock... [2025-04-06 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:29:05 [end_date_ymd] => 2025-04-06 07:29:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:29:05' and `end` < '2025-04-06 07: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-04-06 07:29:18] Production.INFO: count ==754 [2025-04-06 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:29:05 - End Time 2025-04-06 07:29:05 [2025-04-06 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845997', 'tblTempUsageDetail_20' ) start [2025-04-06 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14845997', 'tblTempUsageDetail_20' ) end [2025-04-06 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845997', 'tblTempVendorCDR_20' ) start [2025-04-06 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14845997', 'tblTempVendorCDR_20' ) end [2025-04-06 07:29:18] Production.INFO: ProcessCDR(1,14845997,1,1,2) [2025-04-06 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14845997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14845997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14845997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14845997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845997', 'tblTempUsageDetail_20' ) start [2025-04-06 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14845997', 'tblTempUsageDetail_20' ) end [2025-04-06 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:29:23] Production.INFO: ==30170== Releasing lock... [2025-04-06 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:29:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:30:05 [end_date_ymd] => 2025-04-06 07:30:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:30:05' and `end` < '2025-04-06 07: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-04-06 07:30:19] Production.INFO: count ==743 [2025-04-06 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:30:05 - End Time 2025-04-06 07:30:05 [2025-04-06 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846002', 'tblTempUsageDetail_20' ) start [2025-04-06 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846002', 'tblTempUsageDetail_20' ) end [2025-04-06 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846002', 'tblTempVendorCDR_20' ) start [2025-04-06 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846002', 'tblTempVendorCDR_20' ) end [2025-04-06 07:30:20] Production.INFO: ProcessCDR(1,14846002,1,1,2) [2025-04-06 07:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846002', 'tblTempUsageDetail_20' ) start [2025-04-06 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846002', 'tblTempUsageDetail_20' ) end [2025-04-06 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:30:23] Production.INFO: ==30245== Releasing lock... [2025-04-06 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:30:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:31:05 [end_date_ymd] => 2025-04-06 07:31:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:31:05' and `end` < '2025-04-06 07: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-04-06 07:31:18] Production.INFO: count ==735 [2025-04-06 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:31:05 - End Time 2025-04-06 07:31:05 [2025-04-06 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846008', 'tblTempUsageDetail_20' ) start [2025-04-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846008', 'tblTempUsageDetail_20' ) end [2025-04-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846008', 'tblTempVendorCDR_20' ) start [2025-04-06 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846008', 'tblTempVendorCDR_20' ) end [2025-04-06 07:31:18] Production.INFO: ProcessCDR(1,14846008,1,1,2) [2025-04-06 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846008', 'tblTempUsageDetail_20' ) start [2025-04-06 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846008', 'tblTempUsageDetail_20' ) end [2025-04-06 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:31:22] Production.INFO: ==30323== Releasing lock... [2025-04-06 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:31:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:32:06 [end_date_ymd] => 2025-04-06 07:32:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:32:06' and `end` < '2025-04-06 07: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-04-06 07:32:18] Production.INFO: count ==724 [2025-04-06 07:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:32:06 - End Time 2025-04-06 07:32:06 [2025-04-06 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846013', 'tblTempUsageDetail_20' ) start [2025-04-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846013', 'tblTempUsageDetail_20' ) end [2025-04-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846013', 'tblTempVendorCDR_20' ) start [2025-04-06 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846013', 'tblTempVendorCDR_20' ) end [2025-04-06 07:32:19] Production.INFO: ProcessCDR(1,14846013,1,1,2) [2025-04-06 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846013', 'tblTempUsageDetail_20' ) start [2025-04-06 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846013', 'tblTempUsageDetail_20' ) end [2025-04-06 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:32:22] Production.INFO: ==30398== Releasing lock... [2025-04-06 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:32:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:33:05 [end_date_ymd] => 2025-04-06 07:33:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:33:05' and `end` < '2025-04-06 07: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-04-06 07:33:18] Production.INFO: count ==720 [2025-04-06 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:33:05 - End Time 2025-04-06 07:33:05 [2025-04-06 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846018', 'tblTempUsageDetail_20' ) start [2025-04-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846018', 'tblTempUsageDetail_20' ) end [2025-04-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846018', 'tblTempVendorCDR_20' ) start [2025-04-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846018', 'tblTempVendorCDR_20' ) end [2025-04-06 07:33:18] Production.INFO: ProcessCDR(1,14846018,1,1,2) [2025-04-06 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846018', 'tblTempUsageDetail_20' ) start [2025-04-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846018', 'tblTempUsageDetail_20' ) end [2025-04-06 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:33:22] Production.INFO: ==30470== Releasing lock... [2025-04-06 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:33:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:34:05 [end_date_ymd] => 2025-04-06 07:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:34:05' and `end` < '2025-04-06 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-04-06 07:34:19] Production.INFO: count ==720 [2025-04-06 07:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:34:05 - End Time 2025-04-06 07:34:05 [2025-04-06 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846023', 'tblTempUsageDetail_20' ) start [2025-04-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846023', 'tblTempUsageDetail_20' ) end [2025-04-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846023', 'tblTempVendorCDR_20' ) start [2025-04-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846023', 'tblTempVendorCDR_20' ) end [2025-04-06 07:34:19] Production.INFO: ProcessCDR(1,14846023,1,1,2) [2025-04-06 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846023', 'tblTempUsageDetail_20' ) start [2025-04-06 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846023', 'tblTempUsageDetail_20' ) end [2025-04-06 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:34:22] Production.INFO: ==30544== Releasing lock... [2025-04-06 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:34:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:35:05 [end_date_ymd] => 2025-04-06 07:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:35:05' and `end` < '2025-04-06 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-04-06 07:35:17] Production.INFO: count ==720 [2025-04-06 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:35:05 - End Time 2025-04-06 07:35:05 [2025-04-06 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846028', 'tblTempUsageDetail_20' ) start [2025-04-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846028', 'tblTempUsageDetail_20' ) end [2025-04-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846028', 'tblTempVendorCDR_20' ) start [2025-04-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846028', 'tblTempVendorCDR_20' ) end [2025-04-06 07:35:18] Production.INFO: ProcessCDR(1,14846028,1,1,2) [2025-04-06 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846028', 'tblTempUsageDetail_20' ) start [2025-04-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846028', 'tblTempUsageDetail_20' ) end [2025-04-06 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:35:21] Production.INFO: ==30614== Releasing lock... [2025-04-06 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:35:21] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:36:05 [end_date_ymd] => 2025-04-06 07:36:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:36:05' and `end` < '2025-04-06 07: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-04-06 07:36:18] Production.INFO: count ==720 [2025-04-06 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:36:05 - End Time 2025-04-06 07:36:05 [2025-04-06 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846033', 'tblTempUsageDetail_20' ) start [2025-04-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846033', 'tblTempUsageDetail_20' ) end [2025-04-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846033', 'tblTempVendorCDR_20' ) start [2025-04-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846033', 'tblTempVendorCDR_20' ) end [2025-04-06 07:36:18] Production.INFO: ProcessCDR(1,14846033,1,1,2) [2025-04-06 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846033', 'tblTempUsageDetail_20' ) start [2025-04-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846033', 'tblTempUsageDetail_20' ) end [2025-04-06 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:36:22] Production.INFO: ==30686== Releasing lock... [2025-04-06 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:36:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:37:05 [end_date_ymd] => 2025-04-06 07:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:37:05' and `end` < '2025-04-06 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-04-06 07:37:17] Production.INFO: count ==720 [2025-04-06 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:37:05 - End Time 2025-04-06 07:37:05 [2025-04-06 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846038', 'tblTempUsageDetail_20' ) start [2025-04-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846038', 'tblTempUsageDetail_20' ) end [2025-04-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846038', 'tblTempVendorCDR_20' ) start [2025-04-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846038', 'tblTempVendorCDR_20' ) end [2025-04-06 07:37:18] Production.INFO: ProcessCDR(1,14846038,1,1,2) [2025-04-06 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846038', 'tblTempUsageDetail_20' ) start [2025-04-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846038', 'tblTempUsageDetail_20' ) end [2025-04-06 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:37:21] Production.INFO: ==30761== Releasing lock... [2025-04-06 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:37:21] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:38:05 [end_date_ymd] => 2025-04-06 07:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:38:05' and `end` < '2025-04-06 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-04-06 07:38:18] Production.INFO: count ==720 [2025-04-06 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:38:05 - End Time 2025-04-06 07:38:05 [2025-04-06 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846043', 'tblTempUsageDetail_20' ) start [2025-04-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846043', 'tblTempUsageDetail_20' ) end [2025-04-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846043', 'tblTempVendorCDR_20' ) start [2025-04-06 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846043', 'tblTempVendorCDR_20' ) end [2025-04-06 07:38:18] Production.INFO: ProcessCDR(1,14846043,1,1,2) [2025-04-06 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846043', 'tblTempUsageDetail_20' ) start [2025-04-06 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846043', 'tblTempUsageDetail_20' ) end [2025-04-06 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:38:22] Production.INFO: ==30833== Releasing lock... [2025-04-06 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:38:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:39:05 [end_date_ymd] => 2025-04-06 07:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:39:05' and `end` < '2025-04-06 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-04-06 07:39:18] Production.INFO: count ==709 [2025-04-06 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:39:05 - End Time 2025-04-06 07:39:05 [2025-04-06 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846048', 'tblTempUsageDetail_20' ) start [2025-04-06 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846048', 'tblTempUsageDetail_20' ) end [2025-04-06 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846048', 'tblTempVendorCDR_20' ) start [2025-04-06 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846048', 'tblTempVendorCDR_20' ) end [2025-04-06 07:39:18] Production.INFO: ProcessCDR(1,14846048,1,1,2) [2025-04-06 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846048', 'tblTempUsageDetail_20' ) start [2025-04-06 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846048', 'tblTempUsageDetail_20' ) end [2025-04-06 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:39:21] Production.INFO: ==30905== Releasing lock... [2025-04-06 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:40:06 [end_date_ymd] => 2025-04-06 07:40:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:40:06' and `end` < '2025-04-06 07: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-04-06 07:40:18] Production.INFO: count ==706 [2025-04-06 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:40:06 - End Time 2025-04-06 07:40:06 [2025-04-06 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846054', 'tblTempUsageDetail_20' ) start [2025-04-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846054', 'tblTempUsageDetail_20' ) end [2025-04-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846054', 'tblTempVendorCDR_20' ) start [2025-04-06 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846054', 'tblTempVendorCDR_20' ) end [2025-04-06 07:40:19] Production.INFO: ProcessCDR(1,14846054,1,1,2) [2025-04-06 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846054', 'tblTempUsageDetail_20' ) start [2025-04-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846054', 'tblTempUsageDetail_20' ) end [2025-04-06 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:40:22] Production.INFO: ==31016== Releasing lock... [2025-04-06 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:40:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:41:06 [end_date_ymd] => 2025-04-06 07:41:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:41:06' and `end` < '2025-04-06 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-04-06 07:41:19] Production.INFO: count ==700 [2025-04-06 07:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:41:06 - End Time 2025-04-06 07:41:06 [2025-04-06 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846059', 'tblTempUsageDetail_20' ) start [2025-04-06 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846059', 'tblTempUsageDetail_20' ) end [2025-04-06 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846059', 'tblTempVendorCDR_20' ) start [2025-04-06 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846059', 'tblTempVendorCDR_20' ) end [2025-04-06 07:41:19] Production.INFO: ProcessCDR(1,14846059,1,1,2) [2025-04-06 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846059', 'tblTempUsageDetail_20' ) start [2025-04-06 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846059', 'tblTempUsageDetail_20' ) end [2025-04-06 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:41:22] Production.INFO: ==31093== Releasing lock... [2025-04-06 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:42:05 [end_date_ymd] => 2025-04-06 07:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:42:05' and `end` < '2025-04-06 07: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-04-06 07:42:17] Production.INFO: count ==644 [2025-04-06 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:42:05 - End Time 2025-04-06 07:42:05 [2025-04-06 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846064', 'tblTempUsageDetail_20' ) start [2025-04-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846064', 'tblTempUsageDetail_20' ) end [2025-04-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846064', 'tblTempVendorCDR_20' ) start [2025-04-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846064', 'tblTempVendorCDR_20' ) end [2025-04-06 07:42:18] Production.INFO: ProcessCDR(1,14846064,1,1,2) [2025-04-06 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846064', 'tblTempUsageDetail_20' ) start [2025-04-06 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846064', 'tblTempUsageDetail_20' ) end [2025-04-06 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:42:23] Production.INFO: ==31165== Releasing lock... [2025-04-06 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:43:05 [end_date_ymd] => 2025-04-06 07:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:43:05' and `end` < '2025-04-06 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-04-06 07:43:18] Production.INFO: count ==583 [2025-04-06 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:43:05 - End Time 2025-04-06 07:43:05 [2025-04-06 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846069', 'tblTempUsageDetail_20' ) start [2025-04-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846069', 'tblTempUsageDetail_20' ) end [2025-04-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846069', 'tblTempVendorCDR_20' ) start [2025-04-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846069', 'tblTempVendorCDR_20' ) end [2025-04-06 07:43:18] Production.INFO: ProcessCDR(1,14846069,1,1,2) [2025-04-06 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846069', 'tblTempUsageDetail_20' ) start [2025-04-06 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846069', 'tblTempUsageDetail_20' ) end [2025-04-06 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:43:21] Production.INFO: ==31239== Releasing lock... [2025-04-06 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:44:05 [end_date_ymd] => 2025-04-06 07:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:44:05' and `end` < '2025-04-06 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-04-06 07:44:19] Production.INFO: count ==523 [2025-04-06 07:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:44:05 - End Time 2025-04-06 07:44:05 [2025-04-06 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846074', 'tblTempUsageDetail_20' ) start [2025-04-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846074', 'tblTempUsageDetail_20' ) end [2025-04-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846074', 'tblTempVendorCDR_20' ) start [2025-04-06 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846074', 'tblTempVendorCDR_20' ) end [2025-04-06 07:44:19] Production.INFO: ProcessCDR(1,14846074,1,1,2) [2025-04-06 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846074', 'tblTempUsageDetail_20' ) start [2025-04-06 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846074', 'tblTempUsageDetail_20' ) end [2025-04-06 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:44:23] Production.INFO: ==31310== Releasing lock... [2025-04-06 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:44:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-06 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:45:05 [end_date_ymd] => 2025-04-06 07:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:45:05' and `end` < '2025-04-06 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-04-06 07:45:18] Production.INFO: count ==457 [2025-04-06 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:45:05 - End Time 2025-04-06 07:45:05 [2025-04-06 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846079', 'tblTempUsageDetail_20' ) start [2025-04-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846079', 'tblTempUsageDetail_20' ) end [2025-04-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846079', 'tblTempVendorCDR_20' ) start [2025-04-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846079', 'tblTempVendorCDR_20' ) end [2025-04-06 07:45:18] Production.INFO: ProcessCDR(1,14846079,1,1,2) [2025-04-06 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846079', 'tblTempUsageDetail_20' ) start [2025-04-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846079', 'tblTempUsageDetail_20' ) end [2025-04-06 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:45:22] Production.INFO: ==31387== Releasing lock... [2025-04-06 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-06 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:46:05 [end_date_ymd] => 2025-04-06 07:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:46:05' and `end` < '2025-04-06 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-04-06 07:46:18] Production.INFO: count ==430 [2025-04-06 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:46:05 - End Time 2025-04-06 07:46:05 [2025-04-06 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846084', 'tblTempUsageDetail_20' ) start [2025-04-06 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846084', 'tblTempUsageDetail_20' ) end [2025-04-06 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846084', 'tblTempVendorCDR_20' ) start [2025-04-06 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846084', 'tblTempVendorCDR_20' ) end [2025-04-06 07:46:18] Production.INFO: ProcessCDR(1,14846084,1,1,2) [2025-04-06 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846084', 'tblTempUsageDetail_20' ) start [2025-04-06 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846084', 'tblTempUsageDetail_20' ) end [2025-04-06 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:46:21] Production.INFO: ==31476== Releasing lock... [2025-04-06 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:47:05 [end_date_ymd] => 2025-04-06 07:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:47:05' and `end` < '2025-04-06 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-04-06 07:47:18] Production.INFO: count ==430 [2025-04-06 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:47:05 - End Time 2025-04-06 07:47:05 [2025-04-06 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846089', 'tblTempUsageDetail_20' ) start [2025-04-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846089', 'tblTempUsageDetail_20' ) end [2025-04-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846089', 'tblTempVendorCDR_20' ) start [2025-04-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846089', 'tblTempVendorCDR_20' ) end [2025-04-06 07:47:18] Production.INFO: ProcessCDR(1,14846089,1,1,2) [2025-04-06 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846089', 'tblTempUsageDetail_20' ) start [2025-04-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846089', 'tblTempUsageDetail_20' ) end [2025-04-06 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:47:21] Production.INFO: ==31571== Releasing lock... [2025-04-06 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:48:05 [end_date_ymd] => 2025-04-06 07:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:48:05' and `end` < '2025-04-06 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-04-06 07:48:18] Production.INFO: count ==430 [2025-04-06 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:48:05 - End Time 2025-04-06 07:48:05 [2025-04-06 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846094', 'tblTempUsageDetail_20' ) start [2025-04-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846094', 'tblTempUsageDetail_20' ) end [2025-04-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846094', 'tblTempVendorCDR_20' ) start [2025-04-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846094', 'tblTempVendorCDR_20' ) end [2025-04-06 07:48:18] Production.INFO: ProcessCDR(1,14846094,1,1,2) [2025-04-06 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846094', 'tblTempUsageDetail_20' ) start [2025-04-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846094', 'tblTempUsageDetail_20' ) end [2025-04-06 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:48:21] Production.INFO: ==31662== Releasing lock... [2025-04-06 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:49:05 [end_date_ymd] => 2025-04-06 07:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:49:05' and `end` < '2025-04-06 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-04-06 07:49:18] Production.INFO: count ==430 [2025-04-06 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:49:05 - End Time 2025-04-06 07:49:05 [2025-04-06 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846099', 'tblTempUsageDetail_20' ) start [2025-04-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846099', 'tblTempUsageDetail_20' ) end [2025-04-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846099', 'tblTempVendorCDR_20' ) start [2025-04-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846099', 'tblTempVendorCDR_20' ) end [2025-04-06 07:49:18] Production.INFO: ProcessCDR(1,14846099,1,1,2) [2025-04-06 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846099', 'tblTempUsageDetail_20' ) start [2025-04-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846099', 'tblTempUsageDetail_20' ) end [2025-04-06 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:49:21] Production.INFO: ==31753== Releasing lock... [2025-04-06 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:50:06 [end_date_ymd] => 2025-04-06 07:50:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:50:06' and `end` < '2025-04-06 07: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-04-06 07:50:19] Production.INFO: count ==426 [2025-04-06 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:50:06 - End Time 2025-04-06 07:50:06 [2025-04-06 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846105', 'tblTempUsageDetail_20' ) start [2025-04-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846105', 'tblTempUsageDetail_20' ) end [2025-04-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846105', 'tblTempVendorCDR_20' ) start [2025-04-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846105', 'tblTempVendorCDR_20' ) end [2025-04-06 07:50:19] Production.INFO: ProcessCDR(1,14846105,1,1,2) [2025-04-06 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846105', 'tblTempUsageDetail_20' ) start [2025-04-06 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846105', 'tblTempUsageDetail_20' ) end [2025-04-06 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:50:22] Production.INFO: ==31850== Releasing lock... [2025-04-06 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:51:05 [end_date_ymd] => 2025-04-06 07:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:51:05' and `end` < '2025-04-06 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-04-06 07:51:18] Production.INFO: count ==426 [2025-04-06 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:51:05 - End Time 2025-04-06 07:51:05 [2025-04-06 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846110', 'tblTempUsageDetail_20' ) start [2025-04-06 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846110', 'tblTempUsageDetail_20' ) end [2025-04-06 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846110', 'tblTempVendorCDR_20' ) start [2025-04-06 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846110', 'tblTempVendorCDR_20' ) end [2025-04-06 07:51:18] Production.INFO: ProcessCDR(1,14846110,1,1,2) [2025-04-06 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846110', 'tblTempUsageDetail_20' ) start [2025-04-06 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846110', 'tblTempUsageDetail_20' ) end [2025-04-06 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:51:21] Production.INFO: ==31947== Releasing lock... [2025-04-06 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:52:06 [end_date_ymd] => 2025-04-06 07:52:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:52:06' and `end` < '2025-04-06 07: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-04-06 07:52:18] Production.INFO: count ==426 [2025-04-06 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:52:06 - End Time 2025-04-06 07:52:06 [2025-04-06 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846115', 'tblTempUsageDetail_20' ) start [2025-04-06 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846115', 'tblTempUsageDetail_20' ) end [2025-04-06 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846115', 'tblTempVendorCDR_20' ) start [2025-04-06 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846115', 'tblTempVendorCDR_20' ) end [2025-04-06 07:52:19] Production.INFO: ProcessCDR(1,14846115,1,1,2) [2025-04-06 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846115', 'tblTempUsageDetail_20' ) start [2025-04-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846115', 'tblTempUsageDetail_20' ) end [2025-04-06 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:52:22] Production.INFO: ==32037== Releasing lock... [2025-04-06 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:53:05 [end_date_ymd] => 2025-04-06 07:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:53:05' and `end` < '2025-04-06 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-04-06 07:53:18] Production.INFO: count ==426 [2025-04-06 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:53:05 - End Time 2025-04-06 07:53:05 [2025-04-06 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846120', 'tblTempUsageDetail_20' ) start [2025-04-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846120', 'tblTempUsageDetail_20' ) end [2025-04-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846120', 'tblTempVendorCDR_20' ) start [2025-04-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846120', 'tblTempVendorCDR_20' ) end [2025-04-06 07:53:18] Production.INFO: ProcessCDR(1,14846120,1,1,2) [2025-04-06 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846120', 'tblTempUsageDetail_20' ) start [2025-04-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846120', 'tblTempUsageDetail_20' ) end [2025-04-06 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:53:21] Production.INFO: ==32129== Releasing lock... [2025-04-06 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:54:06 [end_date_ymd] => 2025-04-06 07:54:06 [RateCDR] => 1 ) [2025-04-06 07:54: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-04-06 04:54:06' and `end` < '2025-04-06 07:54: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-04-06 07:54:19] Production.INFO: count ==430 [2025-04-06 07:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:54:06 - End Time 2025-04-06 07:54:06 [2025-04-06 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846125', 'tblTempUsageDetail_20' ) start [2025-04-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846125', 'tblTempUsageDetail_20' ) end [2025-04-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846125', 'tblTempVendorCDR_20' ) start [2025-04-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846125', 'tblTempVendorCDR_20' ) end [2025-04-06 07:54:19] Production.INFO: ProcessCDR(1,14846125,1,1,2) [2025-04-06 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846125', 'tblTempUsageDetail_20' ) start [2025-04-06 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846125', 'tblTempUsageDetail_20' ) end [2025-04-06 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:54:22] Production.INFO: ==32219== Releasing lock... [2025-04-06 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:55:05 [end_date_ymd] => 2025-04-06 07:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:55:05' and `end` < '2025-04-06 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-04-06 07:55:18] Production.INFO: count ==426 [2025-04-06 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:55:05 - End Time 2025-04-06 07:55:05 [2025-04-06 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846130', 'tblTempUsageDetail_20' ) start [2025-04-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846130', 'tblTempUsageDetail_20' ) end [2025-04-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846130', 'tblTempVendorCDR_20' ) start [2025-04-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846130', 'tblTempVendorCDR_20' ) end [2025-04-06 07:55:18] Production.INFO: ProcessCDR(1,14846130,1,1,2) [2025-04-06 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846130', 'tblTempUsageDetail_20' ) start [2025-04-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846130', 'tblTempUsageDetail_20' ) end [2025-04-06 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:55:21] Production.INFO: ==32308== Releasing lock... [2025-04-06 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:56:06 [end_date_ymd] => 2025-04-06 07:56:06 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:56:06' and `end` < '2025-04-06 07: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-04-06 07:56:19] Production.INFO: count ==422 [2025-04-06 07:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 04:56:06 - End Time 2025-04-06 07:56:06 [2025-04-06 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846135', 'tblTempUsageDetail_20' ) start [2025-04-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846135', 'tblTempUsageDetail_20' ) end [2025-04-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846135', 'tblTempVendorCDR_20' ) start [2025-04-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846135', 'tblTempVendorCDR_20' ) end [2025-04-06 07:56:19] Production.INFO: ProcessCDR(1,14846135,1,1,2) [2025-04-06 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846135', 'tblTempUsageDetail_20' ) start [2025-04-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846135', 'tblTempUsageDetail_20' ) end [2025-04-06 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:56:22] Production.INFO: ==32437== Releasing lock... [2025-04-06 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:57:05 [end_date_ymd] => 2025-04-06 07:57:05 [RateCDR] => 1 ) [2025-04-06 07: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-04-06 04:57:05' and `end` < '2025-04-06 07: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-04-06 07:57:18] Production.INFO: count ==422 [2025-04-06 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:57:05 - End Time 2025-04-06 07:57:05 [2025-04-06 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846140', 'tblTempUsageDetail_20' ) start [2025-04-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846140', 'tblTempUsageDetail_20' ) end [2025-04-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846140', 'tblTempVendorCDR_20' ) start [2025-04-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846140', 'tblTempVendorCDR_20' ) end [2025-04-06 07:57:18] Production.INFO: ProcessCDR(1,14846140,1,1,2) [2025-04-06 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846140', 'tblTempUsageDetail_20' ) start [2025-04-06 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846140', 'tblTempUsageDetail_20' ) end [2025-04-06 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:57:21] Production.INFO: ==32530== Releasing lock... [2025-04-06 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:58:05 [end_date_ymd] => 2025-04-06 07:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:58:05' and `end` < '2025-04-06 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-04-06 07:58:18] Production.INFO: count ==423 [2025-04-06 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:58:05 - End Time 2025-04-06 07:58:05 [2025-04-06 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846145', 'tblTempUsageDetail_20' ) start [2025-04-06 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846145', 'tblTempUsageDetail_20' ) end [2025-04-06 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846145', 'tblTempVendorCDR_20' ) start [2025-04-06 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846145', 'tblTempVendorCDR_20' ) end [2025-04-06 07:58:18] Production.INFO: ProcessCDR(1,14846145,1,1,2) [2025-04-06 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846145', 'tblTempUsageDetail_20' ) start [2025-04-06 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846145', 'tblTempUsageDetail_20' ) end [2025-04-06 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:58:23] Production.INFO: ==32618== Releasing lock... [2025-04-06 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:58:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 04:59:05 [end_date_ymd] => 2025-04-06 07:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 04:59:05' and `end` < '2025-04-06 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-04-06 07:59:18] Production.INFO: count ==423 [2025-04-06 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 04:59:05 - End Time 2025-04-06 07:59:05 [2025-04-06 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846150', 'tblTempUsageDetail_20' ) start [2025-04-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846150', 'tblTempUsageDetail_20' ) end [2025-04-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846150', 'tblTempVendorCDR_20' ) start [2025-04-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846150', 'tblTempVendorCDR_20' ) end [2025-04-06 07:59:18] Production.INFO: ProcessCDR(1,14846150,1,1,2) [2025-04-06 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846150', 'tblTempUsageDetail_20' ) start [2025-04-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846150', 'tblTempUsageDetail_20' ) end [2025-04-06 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 07:59:21] Production.INFO: ==32708== Releasing lock... [2025-04-06 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 07:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:00:06 [end_date_ymd] => 2025-04-06 08:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:00:06' and `end` < '2025-04-06 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-04-06 08:00:19] Production.INFO: count ==414 [2025-04-06 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:00:06 - End Time 2025-04-06 08:00:06 [2025-04-06 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846156', 'tblTempUsageDetail_20' ) start [2025-04-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846156', 'tblTempUsageDetail_20' ) end [2025-04-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846156', 'tblTempVendorCDR_20' ) start [2025-04-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846156', 'tblTempVendorCDR_20' ) end [2025-04-06 08:00:19] Production.INFO: ProcessCDR(1,14846156,1,1,2) [2025-04-06 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846156', 'tblTempUsageDetail_20' ) start [2025-04-06 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846156', 'tblTempUsageDetail_20' ) end [2025-04-06 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:00:22] Production.INFO: ==354== Releasing lock... [2025-04-06 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:01:05 [end_date_ymd] => 2025-04-06 08:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:01:05' and `end` < '2025-04-06 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-04-06 08:01:18] Production.INFO: count ==396 [2025-04-06 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:01:05 - End Time 2025-04-06 08:01:05 [2025-04-06 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846161', 'tblTempUsageDetail_20' ) start [2025-04-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846161', 'tblTempUsageDetail_20' ) end [2025-04-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846161', 'tblTempVendorCDR_20' ) start [2025-04-06 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846161', 'tblTempVendorCDR_20' ) end [2025-04-06 08:01:18] Production.INFO: ProcessCDR(1,14846161,1,1,2) [2025-04-06 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846161', 'tblTempUsageDetail_20' ) start [2025-04-06 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846161', 'tblTempUsageDetail_20' ) end [2025-04-06 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:01:21] Production.INFO: ==457== Releasing lock... [2025-04-06 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:02:06 [end_date_ymd] => 2025-04-06 08:02:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:02:06' and `end` < '2025-04-06 08: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-04-06 08:02:18] Production.INFO: count ==371 [2025-04-06 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:02:06 - End Time 2025-04-06 08:02:06 [2025-04-06 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846166', 'tblTempUsageDetail_20' ) start [2025-04-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846166', 'tblTempUsageDetail_20' ) end [2025-04-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846166', 'tblTempVendorCDR_20' ) start [2025-04-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846166', 'tblTempVendorCDR_20' ) end [2025-04-06 08:02:18] Production.INFO: ProcessCDR(1,14846166,1,1,2) [2025-04-06 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846166', 'tblTempUsageDetail_20' ) start [2025-04-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846166', 'tblTempUsageDetail_20' ) end [2025-04-06 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:02:22] Production.INFO: ==549== Releasing lock... [2025-04-06 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-06 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:03:04 [end_date_ymd] => 2025-04-06 08:03:04 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:03:04' and `end` < '2025-04-06 08: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-04-06 08:03:17] Production.INFO: count ==312 [2025-04-06 08:03:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:03:04 - End Time 2025-04-06 08:03:04 [2025-04-06 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846171', 'tblTempUsageDetail_20' ) start [2025-04-06 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846171', 'tblTempUsageDetail_20' ) end [2025-04-06 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846171', 'tblTempVendorCDR_20' ) start [2025-04-06 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846171', 'tblTempVendorCDR_20' ) end [2025-04-06 08:03:17] Production.INFO: ProcessCDR(1,14846171,1,1,2) [2025-04-06 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846171', 'tblTempUsageDetail_20' ) start [2025-04-06 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846171', 'tblTempUsageDetail_20' ) end [2025-04-06 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:03:20] Production.INFO: ==648== Releasing lock... [2025-04-06 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:03:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:04:06 [end_date_ymd] => 2025-04-06 08:04:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:04:06' and `end` < '2025-04-06 08: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-04-06 08:04:19] Production.INFO: count ==282 [2025-04-06 08:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:04:06 - End Time 2025-04-06 08:04:06 [2025-04-06 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846176', 'tblTempUsageDetail_20' ) start [2025-04-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846176', 'tblTempUsageDetail_20' ) end [2025-04-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846176', 'tblTempVendorCDR_20' ) start [2025-04-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846176', 'tblTempVendorCDR_20' ) end [2025-04-06 08:04:19] Production.INFO: ProcessCDR(1,14846176,1,1,2) [2025-04-06 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846176', 'tblTempUsageDetail_20' ) start [2025-04-06 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846176', 'tblTempUsageDetail_20' ) end [2025-04-06 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:04:23] Production.INFO: ==766== Releasing lock... [2025-04-06 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:04:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:05:06 [end_date_ymd] => 2025-04-06 08:05:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:05:06' and `end` < '2025-04-06 08: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-04-06 08:05:18] Production.INFO: count ==273 [2025-04-06 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:05:06 - End Time 2025-04-06 08:05:06 [2025-04-06 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846181', 'tblTempUsageDetail_20' ) start [2025-04-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846181', 'tblTempUsageDetail_20' ) end [2025-04-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846181', 'tblTempVendorCDR_20' ) start [2025-04-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846181', 'tblTempVendorCDR_20' ) end [2025-04-06 08:05:18] Production.INFO: ProcessCDR(1,14846181,1,1,2) [2025-04-06 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846181', 'tblTempUsageDetail_20' ) start [2025-04-06 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846181', 'tblTempUsageDetail_20' ) end [2025-04-06 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:05:22] Production.INFO: ==856== Releasing lock... [2025-04-06 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:05:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:06:05 [end_date_ymd] => 2025-04-06 08:06:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:06:05' and `end` < '2025-04-06 08: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-04-06 08:06:19] Production.INFO: count ==266 [2025-04-06 08:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:06:05 - End Time 2025-04-06 08:06:05 [2025-04-06 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846186', 'tblTempUsageDetail_20' ) start [2025-04-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846186', 'tblTempUsageDetail_20' ) end [2025-04-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846186', 'tblTempVendorCDR_20' ) start [2025-04-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846186', 'tblTempVendorCDR_20' ) end [2025-04-06 08:06:19] Production.INFO: ProcessCDR(1,14846186,1,1,2) [2025-04-06 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846186', 'tblTempUsageDetail_20' ) start [2025-04-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846186', 'tblTempUsageDetail_20' ) end [2025-04-06 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:06:22] Production.INFO: ==970== Releasing lock... [2025-04-06 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:07:05 [end_date_ymd] => 2025-04-06 08:07:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:07:05' and `end` < '2025-04-06 08: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-04-06 08:07:18] Production.INFO: count ==266 [2025-04-06 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:07:05 - End Time 2025-04-06 08:07:05 [2025-04-06 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846191', 'tblTempUsageDetail_20' ) start [2025-04-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846191', 'tblTempUsageDetail_20' ) end [2025-04-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846191', 'tblTempVendorCDR_20' ) start [2025-04-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846191', 'tblTempVendorCDR_20' ) end [2025-04-06 08:07:18] Production.INFO: ProcessCDR(1,14846191,1,1,2) [2025-04-06 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846191', 'tblTempUsageDetail_20' ) start [2025-04-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846191', 'tblTempUsageDetail_20' ) end [2025-04-06 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:07:21] Production.INFO: ==1060== Releasing lock... [2025-04-06 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:08:05 [end_date_ymd] => 2025-04-06 08:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:08:05' and `end` < '2025-04-06 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-04-06 08:08:18] Production.INFO: count ==266 [2025-04-06 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:08:05 - End Time 2025-04-06 08:08:05 [2025-04-06 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846196', 'tblTempUsageDetail_20' ) start [2025-04-06 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846196', 'tblTempUsageDetail_20' ) end [2025-04-06 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846196', 'tblTempVendorCDR_20' ) start [2025-04-06 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846196', 'tblTempVendorCDR_20' ) end [2025-04-06 08:08:18] Production.INFO: ProcessCDR(1,14846196,1,1,2) [2025-04-06 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846196', 'tblTempUsageDetail_20' ) start [2025-04-06 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846196', 'tblTempUsageDetail_20' ) end [2025-04-06 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:08:21] Production.INFO: ==1154== Releasing lock... [2025-04-06 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:09:04 [end_date_ymd] => 2025-04-06 08:09:04 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:09:04' and `end` < '2025-04-06 08: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-04-06 08:09:17] Production.INFO: count ==266 [2025-04-06 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:09:04 - End Time 2025-04-06 08:09:04 [2025-04-06 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846201', 'tblTempUsageDetail_20' ) start [2025-04-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846201', 'tblTempUsageDetail_20' ) end [2025-04-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846201', 'tblTempVendorCDR_20' ) start [2025-04-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846201', 'tblTempVendorCDR_20' ) end [2025-04-06 08:09:17] Production.INFO: ProcessCDR(1,14846201,1,1,2) [2025-04-06 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846201', 'tblTempUsageDetail_20' ) start [2025-04-06 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846201', 'tblTempUsageDetail_20' ) end [2025-04-06 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:09:21] Production.INFO: ==1255== Releasing lock... [2025-04-06 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:10:06 [end_date_ymd] => 2025-04-06 08:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:10:06' and `end` < '2025-04-06 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-04-06 08:10:19] Production.INFO: count ==274 [2025-04-06 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:10:06 - End Time 2025-04-06 08:10:06 [2025-04-06 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846207', 'tblTempUsageDetail_20' ) start [2025-04-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846207', 'tblTempUsageDetail_20' ) end [2025-04-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846207', 'tblTempVendorCDR_20' ) start [2025-04-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846207', 'tblTempVendorCDR_20' ) end [2025-04-06 08:10:19] Production.INFO: ProcessCDR(1,14846207,1,1,2) [2025-04-06 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846207', 'tblTempUsageDetail_20' ) start [2025-04-06 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846207', 'tblTempUsageDetail_20' ) end [2025-04-06 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:10:23] Production.INFO: ==1353== Releasing lock... [2025-04-06 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:11:05 [end_date_ymd] => 2025-04-06 08:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:11:05' and `end` < '2025-04-06 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-04-06 08:11:18] Production.INFO: count ==274 [2025-04-06 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:11:05 - End Time 2025-04-06 08:11:05 [2025-04-06 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846212', 'tblTempUsageDetail_20' ) start [2025-04-06 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846212', 'tblTempUsageDetail_20' ) end [2025-04-06 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846212', 'tblTempVendorCDR_20' ) start [2025-04-06 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846212', 'tblTempVendorCDR_20' ) end [2025-04-06 08:11:18] Production.INFO: ProcessCDR(1,14846212,1,1,2) [2025-04-06 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846212', 'tblTempUsageDetail_20' ) start [2025-04-06 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846212', 'tblTempUsageDetail_20' ) end [2025-04-06 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:11:21] Production.INFO: ==1484== Releasing lock... [2025-04-06 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:12:05 [end_date_ymd] => 2025-04-06 08:12:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:12:05' and `end` < '2025-04-06 08: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-04-06 08:12:18] Production.INFO: count ==275 [2025-04-06 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:12:05 - End Time 2025-04-06 08:12:05 [2025-04-06 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846217', 'tblTempUsageDetail_20' ) start [2025-04-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846217', 'tblTempUsageDetail_20' ) end [2025-04-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846217', 'tblTempVendorCDR_20' ) start [2025-04-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846217', 'tblTempVendorCDR_20' ) end [2025-04-06 08:12:18] Production.INFO: ProcessCDR(1,14846217,1,1,2) [2025-04-06 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846217', 'tblTempUsageDetail_20' ) start [2025-04-06 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846217', 'tblTempUsageDetail_20' ) end [2025-04-06 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:12:23] Production.INFO: ==1606== Releasing lock... [2025-04-06 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:13:05 [end_date_ymd] => 2025-04-06 08:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:13:05' and `end` < '2025-04-06 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-04-06 08:13:18] Production.INFO: count ==276 [2025-04-06 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:13:05 - End Time 2025-04-06 08:13:05 [2025-04-06 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846222', 'tblTempUsageDetail_20' ) start [2025-04-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846222', 'tblTempUsageDetail_20' ) end [2025-04-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846222', 'tblTempVendorCDR_20' ) start [2025-04-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846222', 'tblTempVendorCDR_20' ) end [2025-04-06 08:13:18] Production.INFO: ProcessCDR(1,14846222,1,1,2) [2025-04-06 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846222', 'tblTempUsageDetail_20' ) start [2025-04-06 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846222', 'tblTempUsageDetail_20' ) end [2025-04-06 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:13:23] Production.INFO: ==1701== Releasing lock... [2025-04-06 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:14:05 [end_date_ymd] => 2025-04-06 08:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:14:05' and `end` < '2025-04-06 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-04-06 08:14:18] Production.INFO: count ==276 [2025-04-06 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:14:05 - End Time 2025-04-06 08:14:05 [2025-04-06 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846227', 'tblTempUsageDetail_20' ) start [2025-04-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846227', 'tblTempUsageDetail_20' ) end [2025-04-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846227', 'tblTempVendorCDR_20' ) start [2025-04-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846227', 'tblTempVendorCDR_20' ) end [2025-04-06 08:14:18] Production.INFO: ProcessCDR(1,14846227,1,1,2) [2025-04-06 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846227', 'tblTempUsageDetail_20' ) start [2025-04-06 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846227', 'tblTempUsageDetail_20' ) end [2025-04-06 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:14:21] Production.INFO: ==1775== Releasing lock... [2025-04-06 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:15:06 [end_date_ymd] => 2025-04-06 08:15:06 [RateCDR] => 1 ) [2025-04-06 08:15: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-04-06 05:15:06' and `end` < '2025-04-06 08:15: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-04-06 08:15:19] Production.INFO: count ==279 [2025-04-06 08:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:15:06 - End Time 2025-04-06 08:15:06 [2025-04-06 08:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846232', 'tblTempUsageDetail_20' ) start [2025-04-06 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846232', 'tblTempUsageDetail_20' ) end [2025-04-06 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846232', 'tblTempVendorCDR_20' ) start [2025-04-06 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846232', 'tblTempVendorCDR_20' ) end [2025-04-06 08:15:19] Production.INFO: ProcessCDR(1,14846232,1,1,2) [2025-04-06 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846232', 'tblTempUsageDetail_20' ) start [2025-04-06 08:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846232', 'tblTempUsageDetail_20' ) end [2025-04-06 08:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:15:25] Production.INFO: ==1850== Releasing lock... [2025-04-06 08:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:15:25] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:16:05 [end_date_ymd] => 2025-04-06 08:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:16:05' and `end` < '2025-04-06 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-04-06 08:16:18] Production.INFO: count ==275 [2025-04-06 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:16:05 - End Time 2025-04-06 08:16:05 [2025-04-06 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846237', 'tblTempUsageDetail_20' ) start [2025-04-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846237', 'tblTempUsageDetail_20' ) end [2025-04-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846237', 'tblTempVendorCDR_20' ) start [2025-04-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846237', 'tblTempVendorCDR_20' ) end [2025-04-06 08:16:18] Production.INFO: ProcessCDR(1,14846237,1,1,2) [2025-04-06 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846237', 'tblTempUsageDetail_20' ) start [2025-04-06 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846237', 'tblTempUsageDetail_20' ) end [2025-04-06 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:16:21] Production.INFO: ==1922== Releasing lock... [2025-04-06 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:16:21] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:17:05 [end_date_ymd] => 2025-04-06 08:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:17:05' and `end` < '2025-04-06 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-04-06 08:17:18] Production.INFO: count ==266 [2025-04-06 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:17:05 - End Time 2025-04-06 08:17:05 [2025-04-06 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846242', 'tblTempUsageDetail_20' ) start [2025-04-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846242', 'tblTempUsageDetail_20' ) end [2025-04-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846242', 'tblTempVendorCDR_20' ) start [2025-04-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846242', 'tblTempVendorCDR_20' ) end [2025-04-06 08:17:18] Production.INFO: ProcessCDR(1,14846242,1,1,2) [2025-04-06 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846242', 'tblTempUsageDetail_20' ) start [2025-04-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846242', 'tblTempUsageDetail_20' ) end [2025-04-06 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:17:21] Production.INFO: ==1992== Releasing lock... [2025-04-06 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:18:05 [end_date_ymd] => 2025-04-06 08:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:18:05' and `end` < '2025-04-06 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-04-06 08:18:18] Production.INFO: count ==266 [2025-04-06 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:18:05 - End Time 2025-04-06 08:18:05 [2025-04-06 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846247', 'tblTempUsageDetail_20' ) start [2025-04-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846247', 'tblTempUsageDetail_20' ) end [2025-04-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846247', 'tblTempVendorCDR_20' ) start [2025-04-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846247', 'tblTempVendorCDR_20' ) end [2025-04-06 08:18:18] Production.INFO: ProcessCDR(1,14846247,1,1,2) [2025-04-06 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846247', 'tblTempUsageDetail_20' ) start [2025-04-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846247', 'tblTempUsageDetail_20' ) end [2025-04-06 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:18:21] Production.INFO: ==2062== Releasing lock... [2025-04-06 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:19:05 [end_date_ymd] => 2025-04-06 08:19:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:19:05' and `end` < '2025-04-06 08: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-04-06 08:19:18] Production.INFO: count ==266 [2025-04-06 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:19:05 - End Time 2025-04-06 08:19:05 [2025-04-06 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846252', 'tblTempUsageDetail_20' ) start [2025-04-06 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846252', 'tblTempUsageDetail_20' ) end [2025-04-06 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846252', 'tblTempVendorCDR_20' ) start [2025-04-06 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846252', 'tblTempVendorCDR_20' ) end [2025-04-06 08:19:18] Production.INFO: ProcessCDR(1,14846252,1,1,2) [2025-04-06 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846252', 'tblTempUsageDetail_20' ) start [2025-04-06 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846252', 'tblTempUsageDetail_20' ) end [2025-04-06 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:19:21] Production.INFO: ==2133== Releasing lock... [2025-04-06 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:20:06 [end_date_ymd] => 2025-04-06 08:20:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:20:06' and `end` < '2025-04-06 08: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-04-06 08:20:19] Production.INFO: count ==266 [2025-04-06 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:20:06 - End Time 2025-04-06 08:20:06 [2025-04-06 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846258', 'tblTempUsageDetail_20' ) start [2025-04-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846258', 'tblTempUsageDetail_20' ) end [2025-04-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846258', 'tblTempVendorCDR_20' ) start [2025-04-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846258', 'tblTempVendorCDR_20' ) end [2025-04-06 08:20:19] Production.INFO: ProcessCDR(1,14846258,1,1,2) [2025-04-06 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846258', 'tblTempUsageDetail_20' ) start [2025-04-06 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846258', 'tblTempUsageDetail_20' ) end [2025-04-06 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:20:22] Production.INFO: ==2207== Releasing lock... [2025-04-06 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:21:05 [end_date_ymd] => 2025-04-06 08:21:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:21:05' and `end` < '2025-04-06 08: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-04-06 08:21:18] Production.INFO: count ==266 [2025-04-06 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:21:05 - End Time 2025-04-06 08:21:05 [2025-04-06 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846263', 'tblTempUsageDetail_20' ) start [2025-04-06 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846263', 'tblTempUsageDetail_20' ) end [2025-04-06 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846263', 'tblTempVendorCDR_20' ) start [2025-04-06 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846263', 'tblTempVendorCDR_20' ) end [2025-04-06 08:21:18] Production.INFO: ProcessCDR(1,14846263,1,1,2) [2025-04-06 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846263', 'tblTempUsageDetail_20' ) start [2025-04-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846263', 'tblTempUsageDetail_20' ) end [2025-04-06 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:21:22] Production.INFO: ==2279== Releasing lock... [2025-04-06 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:22:06 [end_date_ymd] => 2025-04-06 08:22:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:22:06' and `end` < '2025-04-06 08: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-04-06 08:22:19] Production.INFO: count ==267 [2025-04-06 08:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:22:06 - End Time 2025-04-06 08:22:06 [2025-04-06 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846268', 'tblTempUsageDetail_20' ) start [2025-04-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846268', 'tblTempUsageDetail_20' ) end [2025-04-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846268', 'tblTempVendorCDR_20' ) start [2025-04-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846268', 'tblTempVendorCDR_20' ) end [2025-04-06 08:22:19] Production.INFO: ProcessCDR(1,14846268,1,1,2) [2025-04-06 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846268', 'tblTempUsageDetail_20' ) start [2025-04-06 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846268', 'tblTempUsageDetail_20' ) end [2025-04-06 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:22:24] Production.INFO: ==2350== Releasing lock... [2025-04-06 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:22:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:23:04 [end_date_ymd] => 2025-04-06 08:23:04 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:23:04' and `end` < '2025-04-06 08: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-04-06 08:23:17] Production.INFO: count ==267 [2025-04-06 08:23:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:23:04 - End Time 2025-04-06 08:23:04 [2025-04-06 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846273', 'tblTempUsageDetail_20' ) start [2025-04-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846273', 'tblTempUsageDetail_20' ) end [2025-04-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846273', 'tblTempVendorCDR_20' ) start [2025-04-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846273', 'tblTempVendorCDR_20' ) end [2025-04-06 08:23:17] Production.INFO: ProcessCDR(1,14846273,1,1,2) [2025-04-06 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846273', 'tblTempUsageDetail_20' ) start [2025-04-06 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846273', 'tblTempUsageDetail_20' ) end [2025-04-06 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:23:20] Production.INFO: ==2423== Releasing lock... [2025-04-06 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:24:05 [end_date_ymd] => 2025-04-06 08:24:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:24:05' and `end` < '2025-04-06 08: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-04-06 08:24:18] Production.INFO: count ==267 [2025-04-06 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:24:05 - End Time 2025-04-06 08:24:05 [2025-04-06 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846278', 'tblTempUsageDetail_20' ) start [2025-04-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846278', 'tblTempUsageDetail_20' ) end [2025-04-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846278', 'tblTempVendorCDR_20' ) start [2025-04-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846278', 'tblTempVendorCDR_20' ) end [2025-04-06 08:24:18] Production.INFO: ProcessCDR(1,14846278,1,1,2) [2025-04-06 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846278', 'tblTempUsageDetail_20' ) start [2025-04-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846278', 'tblTempUsageDetail_20' ) end [2025-04-06 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:24:21] Production.INFO: ==2494== Releasing lock... [2025-04-06 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:25:05 [end_date_ymd] => 2025-04-06 08:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:25:05' and `end` < '2025-04-06 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-04-06 08:25:17] Production.INFO: count ==269 [2025-04-06 08:25:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:25:05 - End Time 2025-04-06 08:25:05 [2025-04-06 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846283', 'tblTempUsageDetail_20' ) start [2025-04-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846283', 'tblTempUsageDetail_20' ) end [2025-04-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846283', 'tblTempVendorCDR_20' ) start [2025-04-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846283', 'tblTempVendorCDR_20' ) end [2025-04-06 08:25:17] Production.INFO: ProcessCDR(1,14846283,1,1,2) [2025-04-06 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846283', 'tblTempUsageDetail_20' ) start [2025-04-06 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846283', 'tblTempUsageDetail_20' ) end [2025-04-06 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:25:21] Production.INFO: ==2566== Releasing lock... [2025-04-06 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:26:05 [end_date_ymd] => 2025-04-06 08:26:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:26:05' and `end` < '2025-04-06 08: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-04-06 08:26:18] Production.INFO: count ==265 [2025-04-06 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:26:05 - End Time 2025-04-06 08:26:05 [2025-04-06 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846288', 'tblTempUsageDetail_20' ) start [2025-04-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846288', 'tblTempUsageDetail_20' ) end [2025-04-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846288', 'tblTempVendorCDR_20' ) start [2025-04-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846288', 'tblTempVendorCDR_20' ) end [2025-04-06 08:26:18] Production.INFO: ProcessCDR(1,14846288,1,1,2) [2025-04-06 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846288', 'tblTempUsageDetail_20' ) start [2025-04-06 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846288', 'tblTempUsageDetail_20' ) end [2025-04-06 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:26:21] Production.INFO: ==2640== Releasing lock... [2025-04-06 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:27:06 [end_date_ymd] => 2025-04-06 08:27:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:27:06' and `end` < '2025-04-06 08: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-04-06 08:27:18] Production.INFO: count ==265 [2025-04-06 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:27:06 - End Time 2025-04-06 08:27:06 [2025-04-06 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846293', 'tblTempUsageDetail_20' ) start [2025-04-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846293', 'tblTempUsageDetail_20' ) end [2025-04-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846293', 'tblTempVendorCDR_20' ) start [2025-04-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846293', 'tblTempVendorCDR_20' ) end [2025-04-06 08:27:18] Production.INFO: ProcessCDR(1,14846293,1,1,2) [2025-04-06 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846293', 'tblTempUsageDetail_20' ) start [2025-04-06 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846293', 'tblTempUsageDetail_20' ) end [2025-04-06 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:27:21] Production.INFO: ==2749== Releasing lock... [2025-04-06 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:28:05 [end_date_ymd] => 2025-04-06 08:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:28:05' and `end` < '2025-04-06 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-04-06 08:28:18] Production.INFO: count ==265 [2025-04-06 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:28:05 - End Time 2025-04-06 08:28:05 [2025-04-06 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846298', 'tblTempUsageDetail_20' ) start [2025-04-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846298', 'tblTempUsageDetail_20' ) end [2025-04-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846298', 'tblTempVendorCDR_20' ) start [2025-04-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846298', 'tblTempVendorCDR_20' ) end [2025-04-06 08:28:18] Production.INFO: ProcessCDR(1,14846298,1,1,2) [2025-04-06 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846298', 'tblTempUsageDetail_20' ) start [2025-04-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846298', 'tblTempUsageDetail_20' ) end [2025-04-06 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:28:21] Production.INFO: ==2824== Releasing lock... [2025-04-06 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:29:06 [end_date_ymd] => 2025-04-06 08:29:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:29:06' and `end` < '2025-04-06 08: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-04-06 08:29:18] Production.INFO: count ==263 [2025-04-06 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:29:06 - End Time 2025-04-06 08:29:06 [2025-04-06 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846303', 'tblTempUsageDetail_20' ) start [2025-04-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846303', 'tblTempUsageDetail_20' ) end [2025-04-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846303', 'tblTempVendorCDR_20' ) start [2025-04-06 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846303', 'tblTempVendorCDR_20' ) end [2025-04-06 08:29:18] Production.INFO: ProcessCDR(1,14846303,1,1,2) [2025-04-06 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846303', 'tblTempUsageDetail_20' ) start [2025-04-06 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846303', 'tblTempUsageDetail_20' ) end [2025-04-06 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:29:22] Production.INFO: ==2901== Releasing lock... [2025-04-06 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:29:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:30:06 [end_date_ymd] => 2025-04-06 08:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:30:06' and `end` < '2025-04-06 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-04-06 08:30:19] Production.INFO: count ==265 [2025-04-06 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:30:06 - End Time 2025-04-06 08:30:06 [2025-04-06 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846309', 'tblTempUsageDetail_20' ) start [2025-04-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846309', 'tblTempUsageDetail_20' ) end [2025-04-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846309', 'tblTempVendorCDR_20' ) start [2025-04-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846309', 'tblTempVendorCDR_20' ) end [2025-04-06 08:30:19] Production.INFO: ProcessCDR(1,14846309,1,1,2) [2025-04-06 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846309', 'tblTempUsageDetail_20' ) start [2025-04-06 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846309', 'tblTempUsageDetail_20' ) end [2025-04-06 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:30:22] Production.INFO: ==2976== Releasing lock... [2025-04-06 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:30:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:31:06 [end_date_ymd] => 2025-04-06 08:31:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:31:06' and `end` < '2025-04-06 08: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-04-06 08:31:18] Production.INFO: count ==265 [2025-04-06 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:31:06 - End Time 2025-04-06 08:31:06 [2025-04-06 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846314', 'tblTempUsageDetail_20' ) start [2025-04-06 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846314', 'tblTempUsageDetail_20' ) end [2025-04-06 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846314', 'tblTempVendorCDR_20' ) start [2025-04-06 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846314', 'tblTempVendorCDR_20' ) end [2025-04-06 08:31:18] Production.INFO: ProcessCDR(1,14846314,1,1,2) [2025-04-06 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846314', 'tblTempUsageDetail_20' ) start [2025-04-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846314', 'tblTempUsageDetail_20' ) end [2025-04-06 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:31:22] Production.INFO: ==3052== Releasing lock... [2025-04-06 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:31:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:32:05 [end_date_ymd] => 2025-04-06 08:32:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:32:05' and `end` < '2025-04-06 08: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-04-06 08:32:18] Production.INFO: count ==257 [2025-04-06 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:32:05 - End Time 2025-04-06 08:32:05 [2025-04-06 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846319', 'tblTempUsageDetail_20' ) start [2025-04-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846319', 'tblTempUsageDetail_20' ) end [2025-04-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846319', 'tblTempVendorCDR_20' ) start [2025-04-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846319', 'tblTempVendorCDR_20' ) end [2025-04-06 08:32:18] Production.INFO: ProcessCDR(1,14846319,1,1,2) [2025-04-06 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846319', 'tblTempUsageDetail_20' ) start [2025-04-06 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846319', 'tblTempUsageDetail_20' ) end [2025-04-06 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:32:21] Production.INFO: ==3127== Releasing lock... [2025-04-06 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:33:05 [end_date_ymd] => 2025-04-06 08:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:33:05' and `end` < '2025-04-06 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-04-06 08:33:18] Production.INFO: count ==257 [2025-04-06 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:33:05 - End Time 2025-04-06 08:33:05 [2025-04-06 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846324', 'tblTempUsageDetail_20' ) start [2025-04-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846324', 'tblTempUsageDetail_20' ) end [2025-04-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846324', 'tblTempVendorCDR_20' ) start [2025-04-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846324', 'tblTempVendorCDR_20' ) end [2025-04-06 08:33:18] Production.INFO: ProcessCDR(1,14846324,1,1,2) [2025-04-06 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846324', 'tblTempUsageDetail_20' ) start [2025-04-06 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846324', 'tblTempUsageDetail_20' ) end [2025-04-06 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:33:21] Production.INFO: ==3197== Releasing lock... [2025-04-06 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:34:04 [end_date_ymd] => 2025-04-06 08:34:04 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:34:04' and `end` < '2025-04-06 08: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-04-06 08:34:17] Production.INFO: count ==257 [2025-04-06 08:34:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:34:04 - End Time 2025-04-06 08:34:04 [2025-04-06 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846329', 'tblTempUsageDetail_20' ) start [2025-04-06 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846329', 'tblTempUsageDetail_20' ) end [2025-04-06 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846329', 'tblTempVendorCDR_20' ) start [2025-04-06 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846329', 'tblTempVendorCDR_20' ) end [2025-04-06 08:34:17] Production.INFO: ProcessCDR(1,14846329,1,1,2) [2025-04-06 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846329', 'tblTempUsageDetail_20' ) start [2025-04-06 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846329', 'tblTempUsageDetail_20' ) end [2025-04-06 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:34:20] Production.INFO: ==3270== Releasing lock... [2025-04-06 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:34:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:35:05 [end_date_ymd] => 2025-04-06 08:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:35:05' and `end` < '2025-04-06 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-04-06 08:35:18] Production.INFO: count ==257 [2025-04-06 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:35:05 - End Time 2025-04-06 08:35:05 [2025-04-06 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846334', 'tblTempUsageDetail_20' ) start [2025-04-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846334', 'tblTempUsageDetail_20' ) end [2025-04-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846334', 'tblTempVendorCDR_20' ) start [2025-04-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846334', 'tblTempVendorCDR_20' ) end [2025-04-06 08:35:18] Production.INFO: ProcessCDR(1,14846334,1,1,2) [2025-04-06 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846334', 'tblTempUsageDetail_20' ) start [2025-04-06 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846334', 'tblTempUsageDetail_20' ) end [2025-04-06 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:35:21] Production.INFO: ==3342== Releasing lock... [2025-04-06 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:36:06 [end_date_ymd] => 2025-04-06 08:36:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:36:06' and `end` < '2025-04-06 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-04-06 08:36:18] Production.INFO: count ==253 [2025-04-06 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:36:06 - End Time 2025-04-06 08:36:06 [2025-04-06 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846339', 'tblTempUsageDetail_20' ) start [2025-04-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846339', 'tblTempUsageDetail_20' ) end [2025-04-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846339', 'tblTempVendorCDR_20' ) start [2025-04-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846339', 'tblTempVendorCDR_20' ) end [2025-04-06 08:36:18] Production.INFO: ProcessCDR(1,14846339,1,1,2) [2025-04-06 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846339', 'tblTempUsageDetail_20' ) start [2025-04-06 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846339', 'tblTempUsageDetail_20' ) end [2025-04-06 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:36:22] Production.INFO: ==3417== Releasing lock... [2025-04-06 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:37:05 [end_date_ymd] => 2025-04-06 08:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:37:05' and `end` < '2025-04-06 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-04-06 08:37:18] Production.INFO: count ==253 [2025-04-06 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:37:05 - End Time 2025-04-06 08:37:05 [2025-04-06 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846344', 'tblTempUsageDetail_20' ) start [2025-04-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846344', 'tblTempUsageDetail_20' ) end [2025-04-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846344', 'tblTempVendorCDR_20' ) start [2025-04-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846344', 'tblTempVendorCDR_20' ) end [2025-04-06 08:37:18] Production.INFO: ProcessCDR(1,14846344,1,1,2) [2025-04-06 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846344', 'tblTempUsageDetail_20' ) start [2025-04-06 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846344', 'tblTempUsageDetail_20' ) end [2025-04-06 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:37:22] Production.INFO: ==3489== Releasing lock... [2025-04-06 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:38:05 [end_date_ymd] => 2025-04-06 08:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:38:05' and `end` < '2025-04-06 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-04-06 08:38:18] Production.INFO: count ==253 [2025-04-06 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:38:05 - End Time 2025-04-06 08:38:05 [2025-04-06 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846349', 'tblTempUsageDetail_20' ) start [2025-04-06 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846349', 'tblTempUsageDetail_20' ) end [2025-04-06 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846349', 'tblTempVendorCDR_20' ) start [2025-04-06 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846349', 'tblTempVendorCDR_20' ) end [2025-04-06 08:38:18] Production.INFO: ProcessCDR(1,14846349,1,1,2) [2025-04-06 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846349', 'tblTempUsageDetail_20' ) start [2025-04-06 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846349', 'tblTempUsageDetail_20' ) end [2025-04-06 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:38:22] Production.INFO: ==3564== Releasing lock... [2025-04-06 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:39:06 [end_date_ymd] => 2025-04-06 08:39:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:39:06' and `end` < '2025-04-06 08: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-04-06 08:39:18] Production.INFO: count ==253 [2025-04-06 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:39:06 - End Time 2025-04-06 08:39:06 [2025-04-06 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846354', 'tblTempUsageDetail_20' ) start [2025-04-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846354', 'tblTempUsageDetail_20' ) end [2025-04-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846354', 'tblTempVendorCDR_20' ) start [2025-04-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846354', 'tblTempVendorCDR_20' ) end [2025-04-06 08:39:18] Production.INFO: ProcessCDR(1,14846354,1,1,2) [2025-04-06 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846354', 'tblTempUsageDetail_20' ) start [2025-04-06 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846354', 'tblTempUsageDetail_20' ) end [2025-04-06 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:39:22] Production.INFO: ==3636== Releasing lock... [2025-04-06 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:40:06 [end_date_ymd] => 2025-04-06 08:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:40:06' and `end` < '2025-04-06 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-04-06 08:40:19] Production.INFO: count ==255 [2025-04-06 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:40:06 - End Time 2025-04-06 08:40:06 [2025-04-06 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846360', 'tblTempUsageDetail_20' ) start [2025-04-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846360', 'tblTempUsageDetail_20' ) end [2025-04-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846360', 'tblTempVendorCDR_20' ) start [2025-04-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846360', 'tblTempVendorCDR_20' ) end [2025-04-06 08:40:19] Production.INFO: ProcessCDR(1,14846360,1,1,2) [2025-04-06 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846360', 'tblTempUsageDetail_20' ) start [2025-04-06 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846360', 'tblTempUsageDetail_20' ) end [2025-04-06 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:40:22] Production.INFO: ==3710== Releasing lock... [2025-04-06 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:41:05 [end_date_ymd] => 2025-04-06 08:41:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:41:05' and `end` < '2025-04-06 08: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-04-06 08:41:17] Production.INFO: count ==251 [2025-04-06 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:41:05 - End Time 2025-04-06 08:41:05 [2025-04-06 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846365', 'tblTempUsageDetail_20' ) start [2025-04-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846365', 'tblTempUsageDetail_20' ) end [2025-04-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846365', 'tblTempVendorCDR_20' ) start [2025-04-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846365', 'tblTempVendorCDR_20' ) end [2025-04-06 08:41:18] Production.INFO: ProcessCDR(1,14846365,1,1,2) [2025-04-06 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846365', 'tblTempUsageDetail_20' ) start [2025-04-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846365', 'tblTempUsageDetail_20' ) end [2025-04-06 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:41:21] Production.INFO: ==3782== Releasing lock... [2025-04-06 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:42:06 [end_date_ymd] => 2025-04-06 08:42:06 [RateCDR] => 1 ) [2025-04-06 08:42: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-04-06 05:42:06' and `end` < '2025-04-06 08:42: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-04-06 08:42:19] Production.INFO: count ==250 [2025-04-06 08:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:42:06 - End Time 2025-04-06 08:42:06 [2025-04-06 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846370', 'tblTempUsageDetail_20' ) start [2025-04-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846370', 'tblTempUsageDetail_20' ) end [2025-04-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846370', 'tblTempVendorCDR_20' ) start [2025-04-06 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846370', 'tblTempVendorCDR_20' ) end [2025-04-06 08:42:19] Production.INFO: ProcessCDR(1,14846370,1,1,2) [2025-04-06 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846370', 'tblTempUsageDetail_20' ) start [2025-04-06 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846370', 'tblTempUsageDetail_20' ) end [2025-04-06 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:42:22] Production.INFO: ==3894== Releasing lock... [2025-04-06 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:43:05 [end_date_ymd] => 2025-04-06 08:43:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:43:05' and `end` < '2025-04-06 08: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-04-06 08:43:18] Production.INFO: count ==250 [2025-04-06 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:43:05 - End Time 2025-04-06 08:43:05 [2025-04-06 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846375', 'tblTempUsageDetail_20' ) start [2025-04-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846375', 'tblTempUsageDetail_20' ) end [2025-04-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846375', 'tblTempVendorCDR_20' ) start [2025-04-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846375', 'tblTempVendorCDR_20' ) end [2025-04-06 08:43:18] Production.INFO: ProcessCDR(1,14846375,1,1,2) [2025-04-06 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846375', 'tblTempUsageDetail_20' ) start [2025-04-06 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846375', 'tblTempUsageDetail_20' ) end [2025-04-06 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:43:22] Production.INFO: ==3967== Releasing lock... [2025-04-06 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:44:06 [end_date_ymd] => 2025-04-06 08:44:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:44:06' and `end` < '2025-04-06 08: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-04-06 08:44:19] Production.INFO: count ==250 [2025-04-06 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:44:06 - End Time 2025-04-06 08:44:06 [2025-04-06 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846380', 'tblTempUsageDetail_20' ) start [2025-04-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846380', 'tblTempUsageDetail_20' ) end [2025-04-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846380', 'tblTempVendorCDR_20' ) start [2025-04-06 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846380', 'tblTempVendorCDR_20' ) end [2025-04-06 08:44:19] Production.INFO: ProcessCDR(1,14846380,1,1,2) [2025-04-06 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846380', 'tblTempUsageDetail_20' ) start [2025-04-06 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846380', 'tblTempUsageDetail_20' ) end [2025-04-06 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:44:23] Production.INFO: ==4040== Releasing lock... [2025-04-06 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:44:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:45:05 [end_date_ymd] => 2025-04-06 08:45:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:45:05' and `end` < '2025-04-06 08: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-04-06 08:45:18] Production.INFO: count ==250 [2025-04-06 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:45:05 - End Time 2025-04-06 08:45:05 [2025-04-06 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846385', 'tblTempUsageDetail_20' ) start [2025-04-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846385', 'tblTempUsageDetail_20' ) end [2025-04-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846385', 'tblTempVendorCDR_20' ) start [2025-04-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846385', 'tblTempVendorCDR_20' ) end [2025-04-06 08:45:18] Production.INFO: ProcessCDR(1,14846385,1,1,2) [2025-04-06 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846385', 'tblTempUsageDetail_20' ) start [2025-04-06 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846385', 'tblTempUsageDetail_20' ) end [2025-04-06 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:45:21] Production.INFO: ==4120== Releasing lock... [2025-04-06 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:46:05 [end_date_ymd] => 2025-04-06 08:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:46:05' and `end` < '2025-04-06 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-04-06 08:46:18] Production.INFO: count ==250 [2025-04-06 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:46:05 - End Time 2025-04-06 08:46:05 [2025-04-06 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846390', 'tblTempUsageDetail_20' ) start [2025-04-06 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846390', 'tblTempUsageDetail_20' ) end [2025-04-06 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846390', 'tblTempVendorCDR_20' ) start [2025-04-06 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846390', 'tblTempVendorCDR_20' ) end [2025-04-06 08:46:18] Production.INFO: ProcessCDR(1,14846390,1,1,2) [2025-04-06 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846390', 'tblTempUsageDetail_20' ) start [2025-04-06 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846390', 'tblTempUsageDetail_20' ) end [2025-04-06 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:46:21] Production.INFO: ==4195== Releasing lock... [2025-04-06 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:47:05 [end_date_ymd] => 2025-04-06 08:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:47:05' and `end` < '2025-04-06 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-04-06 08:47:18] Production.INFO: count ==251 [2025-04-06 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:47:05 - End Time 2025-04-06 08:47:05 [2025-04-06 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846395', 'tblTempUsageDetail_20' ) start [2025-04-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846395', 'tblTempUsageDetail_20' ) end [2025-04-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846395', 'tblTempVendorCDR_20' ) start [2025-04-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846395', 'tblTempVendorCDR_20' ) end [2025-04-06 08:47:18] Production.INFO: ProcessCDR(1,14846395,1,1,2) [2025-04-06 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846395', 'tblTempUsageDetail_20' ) start [2025-04-06 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846395', 'tblTempUsageDetail_20' ) end [2025-04-06 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:47:23] Production.INFO: ==4266== Releasing lock... [2025-04-06 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:47:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:48:05 [end_date_ymd] => 2025-04-06 08:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:48:05' and `end` < '2025-04-06 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-04-06 08:48:18] Production.INFO: count ==251 [2025-04-06 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:48:05 - End Time 2025-04-06 08:48:05 [2025-04-06 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846399', 'tblTempUsageDetail_20' ) start [2025-04-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846399', 'tblTempUsageDetail_20' ) end [2025-04-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846399', 'tblTempVendorCDR_20' ) start [2025-04-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846399', 'tblTempVendorCDR_20' ) end [2025-04-06 08:48:18] Production.INFO: ProcessCDR(1,14846399,1,1,2) [2025-04-06 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846399', 'tblTempUsageDetail_20' ) start [2025-04-06 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846399', 'tblTempUsageDetail_20' ) end [2025-04-06 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:48:21] Production.INFO: ==4344== Releasing lock... [2025-04-06 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:49:05 [end_date_ymd] => 2025-04-06 08:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:49:05' and `end` < '2025-04-06 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-04-06 08:49:18] Production.INFO: count ==251 [2025-04-06 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:49:05 - End Time 2025-04-06 08:49:05 [2025-04-06 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846405', 'tblTempUsageDetail_20' ) start [2025-04-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846405', 'tblTempUsageDetail_20' ) end [2025-04-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846405', 'tblTempVendorCDR_20' ) start [2025-04-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846405', 'tblTempVendorCDR_20' ) end [2025-04-06 08:49:18] Production.INFO: ProcessCDR(1,14846405,1,1,2) [2025-04-06 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846405', 'tblTempUsageDetail_20' ) start [2025-04-06 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846405', 'tblTempUsageDetail_20' ) end [2025-04-06 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:49:21] Production.INFO: ==4415== Releasing lock... [2025-04-06 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:50:06 [end_date_ymd] => 2025-04-06 08:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:50:06' and `end` < '2025-04-06 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-04-06 08:50:19] Production.INFO: count ==263 [2025-04-06 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 05:50:06 - End Time 2025-04-06 08:50:06 [2025-04-06 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846411', 'tblTempUsageDetail_20' ) start [2025-04-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846411', 'tblTempUsageDetail_20' ) end [2025-04-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846411', 'tblTempVendorCDR_20' ) start [2025-04-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846411', 'tblTempVendorCDR_20' ) end [2025-04-06 08:50:19] Production.INFO: ProcessCDR(1,14846411,1,1,2) [2025-04-06 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846411', 'tblTempUsageDetail_20' ) start [2025-04-06 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846411', 'tblTempUsageDetail_20' ) end [2025-04-06 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:50:22] Production.INFO: ==4494== Releasing lock... [2025-04-06 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:51:05 [end_date_ymd] => 2025-04-06 08:51:05 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:51:05' and `end` < '2025-04-06 08: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-04-06 08:51:17] Production.INFO: count ==263 [2025-04-06 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:51:05 - End Time 2025-04-06 08:51:05 [2025-04-06 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846416', 'tblTempUsageDetail_20' ) start [2025-04-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846416', 'tblTempUsageDetail_20' ) end [2025-04-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846416', 'tblTempVendorCDR_20' ) start [2025-04-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846416', 'tblTempVendorCDR_20' ) end [2025-04-06 08:51:18] Production.INFO: ProcessCDR(1,14846416,1,1,2) [2025-04-06 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846416', 'tblTempUsageDetail_20' ) start [2025-04-06 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846416', 'tblTempUsageDetail_20' ) end [2025-04-06 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:51:21] Production.INFO: ==4568== Releasing lock... [2025-04-06 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:52:05 [end_date_ymd] => 2025-04-06 08:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:52:05' and `end` < '2025-04-06 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-04-06 08:52:18] Production.INFO: count ==263 [2025-04-06 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:52:05 - End Time 2025-04-06 08:52:05 [2025-04-06 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846421', 'tblTempUsageDetail_20' ) start [2025-04-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846421', 'tblTempUsageDetail_20' ) end [2025-04-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846421', 'tblTempVendorCDR_20' ) start [2025-04-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846421', 'tblTempVendorCDR_20' ) end [2025-04-06 08:52:18] Production.INFO: ProcessCDR(1,14846421,1,1,2) [2025-04-06 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846421', 'tblTempUsageDetail_20' ) start [2025-04-06 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846421', 'tblTempUsageDetail_20' ) end [2025-04-06 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:52:22] Production.INFO: ==4645== Releasing lock... [2025-04-06 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:53:05 [end_date_ymd] => 2025-04-06 08:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:53:05' and `end` < '2025-04-06 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-04-06 08:53:18] Production.INFO: count ==263 [2025-04-06 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:53:05 - End Time 2025-04-06 08:53:05 [2025-04-06 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846426', 'tblTempUsageDetail_20' ) start [2025-04-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846426', 'tblTempUsageDetail_20' ) end [2025-04-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846426', 'tblTempVendorCDR_20' ) start [2025-04-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846426', 'tblTempVendorCDR_20' ) end [2025-04-06 08:53:18] Production.INFO: ProcessCDR(1,14846426,1,1,2) [2025-04-06 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846426', 'tblTempUsageDetail_20' ) start [2025-04-06 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846426', 'tblTempUsageDetail_20' ) end [2025-04-06 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:53:22] Production.INFO: ==4718== Releasing lock... [2025-04-06 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:53:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:54:05 [end_date_ymd] => 2025-04-06 08:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:54:05' and `end` < '2025-04-06 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-04-06 08:54:18] Production.INFO: count ==263 [2025-04-06 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:54:05 - End Time 2025-04-06 08:54:05 [2025-04-06 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846431', 'tblTempUsageDetail_20' ) start [2025-04-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846431', 'tblTempUsageDetail_20' ) end [2025-04-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846431', 'tblTempVendorCDR_20' ) start [2025-04-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846431', 'tblTempVendorCDR_20' ) end [2025-04-06 08:54:18] Production.INFO: ProcessCDR(1,14846431,1,1,2) [2025-04-06 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846431', 'tblTempUsageDetail_20' ) start [2025-04-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846431', 'tblTempUsageDetail_20' ) end [2025-04-06 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:54:21] Production.INFO: ==4790== Releasing lock... [2025-04-06 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:55:04 [end_date_ymd] => 2025-04-06 08:55:04 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:55:04' and `end` < '2025-04-06 08: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-04-06 08:55:17] Production.INFO: count ==263 [2025-04-06 08:55:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:55:04 - End Time 2025-04-06 08:55:04 [2025-04-06 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846436', 'tblTempUsageDetail_20' ) start [2025-04-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846436', 'tblTempUsageDetail_20' ) end [2025-04-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846436', 'tblTempVendorCDR_20' ) start [2025-04-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846436', 'tblTempVendorCDR_20' ) end [2025-04-06 08:55:17] Production.INFO: ProcessCDR(1,14846436,1,1,2) [2025-04-06 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846436', 'tblTempUsageDetail_20' ) start [2025-04-06 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846436', 'tblTempUsageDetail_20' ) end [2025-04-06 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:55:21] Production.INFO: ==4864== Releasing lock... [2025-04-06 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:56:06 [end_date_ymd] => 2025-04-06 08:56:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:56:06' and `end` < '2025-04-06 08: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-04-06 08:56:18] Production.INFO: count ==264 [2025-04-06 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:56:06 - End Time 2025-04-06 08:56:06 [2025-04-06 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846441', 'tblTempUsageDetail_20' ) start [2025-04-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846441', 'tblTempUsageDetail_20' ) end [2025-04-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846441', 'tblTempVendorCDR_20' ) start [2025-04-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846441', 'tblTempVendorCDR_20' ) end [2025-04-06 08:56:18] Production.INFO: ProcessCDR(1,14846441,1,1,2) [2025-04-06 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846441', 'tblTempUsageDetail_20' ) start [2025-04-06 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846441', 'tblTempUsageDetail_20' ) end [2025-04-06 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:56:23] Production.INFO: ==4938== Releasing lock... [2025-04-06 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:56:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:57:05 [end_date_ymd] => 2025-04-06 08:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:57:05' and `end` < '2025-04-06 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-04-06 08:57:18] Production.INFO: count ==259 [2025-04-06 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 05:57:05 - End Time 2025-04-06 08:57:05 [2025-04-06 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846446', 'tblTempUsageDetail_20' ) start [2025-04-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846446', 'tblTempUsageDetail_20' ) end [2025-04-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846446', 'tblTempVendorCDR_20' ) start [2025-04-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846446', 'tblTempVendorCDR_20' ) end [2025-04-06 08:57:18] Production.INFO: ProcessCDR(1,14846446,1,1,2) [2025-04-06 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846446', 'tblTempUsageDetail_20' ) start [2025-04-06 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846446', 'tblTempUsageDetail_20' ) end [2025-04-06 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:57:21] Production.INFO: ==5050== Releasing lock... [2025-04-06 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:58:06 [end_date_ymd] => 2025-04-06 08:58:06 [RateCDR] => 1 ) [2025-04-06 08: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-04-06 05:58:06' and `end` < '2025-04-06 08: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-04-06 08:58:20] Production.INFO: count ==259 [2025-04-06 08:58:20] Production.ERROR: pbx CDR StartTime 2025-04-06 05:58:06 - End Time 2025-04-06 08:58:06 [2025-04-06 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846451', 'tblTempUsageDetail_20' ) start [2025-04-06 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846451', 'tblTempUsageDetail_20' ) end [2025-04-06 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846451', 'tblTempVendorCDR_20' ) start [2025-04-06 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846451', 'tblTempVendorCDR_20' ) end [2025-04-06 08:58:20] Production.INFO: ProcessCDR(1,14846451,1,1,2) [2025-04-06 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846451', 'tblTempUsageDetail_20' ) start [2025-04-06 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846451', 'tblTempUsageDetail_20' ) end [2025-04-06 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:58:23] Production.INFO: ==5121== Releasing lock... [2025-04-06 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:58:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 05:59:05 [end_date_ymd] => 2025-04-06 08:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 05:59:05' and `end` < '2025-04-06 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-04-06 08:59:17] Production.INFO: count ==255 [2025-04-06 08:59:17] Production.ERROR: pbx CDR StartTime 2025-04-06 05:59:05 - End Time 2025-04-06 08:59:05 [2025-04-06 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846454', 'tblTempUsageDetail_20' ) start [2025-04-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846454', 'tblTempUsageDetail_20' ) end [2025-04-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846454', 'tblTempVendorCDR_20' ) start [2025-04-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846454', 'tblTempVendorCDR_20' ) end [2025-04-06 08:59:17] Production.INFO: ProcessCDR(1,14846454,1,1,2) [2025-04-06 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846454', 'tblTempUsageDetail_20' ) start [2025-04-06 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846454', 'tblTempUsageDetail_20' ) end [2025-04-06 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 08:59:21] Production.INFO: ==5193== Releasing lock... [2025-04-06 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 08:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:00:07 [end_date_ymd] => 2025-04-06 09:00:07 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:00:07' and `end` < '2025-04-06 09: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-04-06 09:00:19] Production.INFO: count ==251 [2025-04-06 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:00:07 - End Time 2025-04-06 09:00:07 [2025-04-06 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846461', 'tblTempUsageDetail_20' ) start [2025-04-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846461', 'tblTempUsageDetail_20' ) end [2025-04-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846461', 'tblTempVendorCDR_20' ) start [2025-04-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846461', 'tblTempVendorCDR_20' ) end [2025-04-06 09:00:19] Production.INFO: ProcessCDR(1,14846461,1,1,2) [2025-04-06 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846461', 'tblTempUsageDetail_20' ) start [2025-04-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846461', 'tblTempUsageDetail_20' ) end [2025-04-06 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:00:23] Production.INFO: ==5273== Releasing lock... [2025-04-06 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:01:05 [end_date_ymd] => 2025-04-06 09:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:01:05' and `end` < '2025-04-06 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-04-06 09:01:18] Production.INFO: count ==247 [2025-04-06 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:01:05 - End Time 2025-04-06 09:01:05 [2025-04-06 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846467', 'tblTempUsageDetail_20' ) start [2025-04-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846467', 'tblTempUsageDetail_20' ) end [2025-04-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846467', 'tblTempVendorCDR_20' ) start [2025-04-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846467', 'tblTempVendorCDR_20' ) end [2025-04-06 09:01:18] Production.INFO: ProcessCDR(1,14846467,1,1,2) [2025-04-06 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846467', 'tblTempUsageDetail_20' ) start [2025-04-06 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846467', 'tblTempUsageDetail_20' ) end [2025-04-06 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:01:21] Production.INFO: ==5358== Releasing lock... [2025-04-06 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:02:05 [end_date_ymd] => 2025-04-06 09:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:02:05' and `end` < '2025-04-06 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-04-06 09:02:18] Production.INFO: count ==235 [2025-04-06 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:02:05 - End Time 2025-04-06 09:02:05 [2025-04-06 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846472', 'tblTempUsageDetail_20' ) start [2025-04-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846472', 'tblTempUsageDetail_20' ) end [2025-04-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846472', 'tblTempVendorCDR_20' ) start [2025-04-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846472', 'tblTempVendorCDR_20' ) end [2025-04-06 09:02:18] Production.INFO: ProcessCDR(1,14846472,1,1,2) [2025-04-06 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846472', 'tblTempUsageDetail_20' ) start [2025-04-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846472', 'tblTempUsageDetail_20' ) end [2025-04-06 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:02:23] Production.INFO: ==5432== Releasing lock... [2025-04-06 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:03:05 [end_date_ymd] => 2025-04-06 09:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:03:05' and `end` < '2025-04-06 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-04-06 09:03:18] Production.INFO: count ==235 [2025-04-06 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:03:05 - End Time 2025-04-06 09:03:05 [2025-04-06 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846477', 'tblTempUsageDetail_20' ) start [2025-04-06 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846477', 'tblTempUsageDetail_20' ) end [2025-04-06 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846477', 'tblTempVendorCDR_20' ) start [2025-04-06 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846477', 'tblTempVendorCDR_20' ) end [2025-04-06 09:03:18] Production.INFO: ProcessCDR(1,14846477,1,1,2) [2025-04-06 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846477', 'tblTempUsageDetail_20' ) start [2025-04-06 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846477', 'tblTempUsageDetail_20' ) end [2025-04-06 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:03:21] Production.INFO: ==5502== Releasing lock... [2025-04-06 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:04:05 [end_date_ymd] => 2025-04-06 09:04:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:04:05' and `end` < '2025-04-06 09: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-04-06 09:04:19] Production.INFO: count ==235 [2025-04-06 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:04:05 - End Time 2025-04-06 09:04:05 [2025-04-06 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846482', 'tblTempUsageDetail_20' ) start [2025-04-06 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846482', 'tblTempUsageDetail_20' ) end [2025-04-06 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846482', 'tblTempVendorCDR_20' ) start [2025-04-06 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846482', 'tblTempVendorCDR_20' ) end [2025-04-06 09:04:19] Production.INFO: ProcessCDR(1,14846482,1,1,2) [2025-04-06 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846482', 'tblTempUsageDetail_20' ) start [2025-04-06 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846482', 'tblTempUsageDetail_20' ) end [2025-04-06 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:04:22] Production.INFO: ==5575== Releasing lock... [2025-04-06 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:05:05 [end_date_ymd] => 2025-04-06 09:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:05:05' and `end` < '2025-04-06 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-04-06 09:05:18] Production.INFO: count ==235 [2025-04-06 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:05:05 - End Time 2025-04-06 09:05:05 [2025-04-06 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846487', 'tblTempUsageDetail_20' ) start [2025-04-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846487', 'tblTempUsageDetail_20' ) end [2025-04-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846487', 'tblTempVendorCDR_20' ) start [2025-04-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846487', 'tblTempVendorCDR_20' ) end [2025-04-06 09:05:18] Production.INFO: ProcessCDR(1,14846487,1,1,2) [2025-04-06 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846487', 'tblTempUsageDetail_20' ) start [2025-04-06 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846487', 'tblTempUsageDetail_20' ) end [2025-04-06 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:05:21] Production.INFO: ==5651== Releasing lock... [2025-04-06 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:06:05 [end_date_ymd] => 2025-04-06 09:06:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:06:05' and `end` < '2025-04-06 09: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-04-06 09:06:18] Production.INFO: count ==236 [2025-04-06 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:06:05 - End Time 2025-04-06 09:06:05 [2025-04-06 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846492', 'tblTempUsageDetail_20' ) start [2025-04-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846492', 'tblTempUsageDetail_20' ) end [2025-04-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846492', 'tblTempVendorCDR_20' ) start [2025-04-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846492', 'tblTempVendorCDR_20' ) end [2025-04-06 09:06:18] Production.INFO: ProcessCDR(1,14846492,1,1,2) [2025-04-06 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846492', 'tblTempUsageDetail_20' ) start [2025-04-06 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846492', 'tblTempUsageDetail_20' ) end [2025-04-06 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:06:23] Production.INFO: ==5723== Releasing lock... [2025-04-06 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:07:06 [end_date_ymd] => 2025-04-06 09:07:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:07:06' and `end` < '2025-04-06 09:07: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-04-06 09:07:19] Production.INFO: count ==234 [2025-04-06 09:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:07:06 - End Time 2025-04-06 09:07:06 [2025-04-06 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846497', 'tblTempUsageDetail_20' ) start [2025-04-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846497', 'tblTempUsageDetail_20' ) end [2025-04-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846497', 'tblTempVendorCDR_20' ) start [2025-04-06 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846497', 'tblTempVendorCDR_20' ) end [2025-04-06 09:07:19] Production.INFO: ProcessCDR(1,14846497,1,1,2) [2025-04-06 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846497', 'tblTempUsageDetail_20' ) start [2025-04-06 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846497', 'tblTempUsageDetail_20' ) end [2025-04-06 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:07:22] Production.INFO: ==5792== Releasing lock... [2025-04-06 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:08:06 [end_date_ymd] => 2025-04-06 09:08:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:08:06' and `end` < '2025-04-06 09: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-04-06 09:08:18] Production.INFO: count ==234 [2025-04-06 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:08:06 - End Time 2025-04-06 09:08:06 [2025-04-06 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846502', 'tblTempUsageDetail_20' ) start [2025-04-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846502', 'tblTempUsageDetail_20' ) end [2025-04-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846502', 'tblTempVendorCDR_20' ) start [2025-04-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846502', 'tblTempVendorCDR_20' ) end [2025-04-06 09:08:18] Production.INFO: ProcessCDR(1,14846502,1,1,2) [2025-04-06 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846502', 'tblTempUsageDetail_20' ) start [2025-04-06 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846502', 'tblTempUsageDetail_20' ) end [2025-04-06 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:08:22] Production.INFO: ==5873== Releasing lock... [2025-04-06 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:09:06 [end_date_ymd] => 2025-04-06 09:09:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:09:06' and `end` < '2025-04-06 09: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-04-06 09:09:18] Production.INFO: count ==234 [2025-04-06 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:09:06 - End Time 2025-04-06 09:09:06 [2025-04-06 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846507', 'tblTempUsageDetail_20' ) start [2025-04-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846507', 'tblTempUsageDetail_20' ) end [2025-04-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846507', 'tblTempVendorCDR_20' ) start [2025-04-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846507', 'tblTempVendorCDR_20' ) end [2025-04-06 09:09:18] Production.INFO: ProcessCDR(1,14846507,1,1,2) [2025-04-06 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846507', 'tblTempUsageDetail_20' ) start [2025-04-06 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846507', 'tblTempUsageDetail_20' ) end [2025-04-06 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:09:22] Production.INFO: ==5947== Releasing lock... [2025-04-06 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:10:06 [end_date_ymd] => 2025-04-06 09:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:10:06' and `end` < '2025-04-06 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-04-06 09:10:19] Production.INFO: count ==226 [2025-04-06 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:10:06 - End Time 2025-04-06 09:10:06 [2025-04-06 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846513', 'tblTempUsageDetail_20' ) start [2025-04-06 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846513', 'tblTempUsageDetail_20' ) end [2025-04-06 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846513', 'tblTempVendorCDR_20' ) start [2025-04-06 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846513', 'tblTempVendorCDR_20' ) end [2025-04-06 09:10:19] Production.INFO: ProcessCDR(1,14846513,1,1,2) [2025-04-06 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846513', 'tblTempUsageDetail_20' ) start [2025-04-06 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846513', 'tblTempUsageDetail_20' ) end [2025-04-06 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:10:22] Production.INFO: ==6024== Releasing lock... [2025-04-06 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:11:05 [end_date_ymd] => 2025-04-06 09:11:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:11:05' and `end` < '2025-04-06 09: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-04-06 09:11:18] Production.INFO: count ==222 [2025-04-06 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:11:05 - End Time 2025-04-06 09:11:05 [2025-04-06 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846518', 'tblTempUsageDetail_20' ) start [2025-04-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846518', 'tblTempUsageDetail_20' ) end [2025-04-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846518', 'tblTempVendorCDR_20' ) start [2025-04-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846518', 'tblTempVendorCDR_20' ) end [2025-04-06 09:11:18] Production.INFO: ProcessCDR(1,14846518,1,1,2) [2025-04-06 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846518', 'tblTempUsageDetail_20' ) start [2025-04-06 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846518', 'tblTempUsageDetail_20' ) end [2025-04-06 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:11:21] Production.INFO: ==6102== Releasing lock... [2025-04-06 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:11:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:12:06 [end_date_ymd] => 2025-04-06 09:12:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:12:06' and `end` < '2025-04-06 09: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-04-06 09:12:18] Production.INFO: count ==221 [2025-04-06 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:12:06 - End Time 2025-04-06 09:12:06 [2025-04-06 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846523', 'tblTempUsageDetail_20' ) start [2025-04-06 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846523', 'tblTempUsageDetail_20' ) end [2025-04-06 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846523', 'tblTempVendorCDR_20' ) start [2025-04-06 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846523', 'tblTempVendorCDR_20' ) end [2025-04-06 09:12:18] Production.INFO: ProcessCDR(1,14846523,1,1,2) [2025-04-06 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846523', 'tblTempUsageDetail_20' ) start [2025-04-06 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846523', 'tblTempUsageDetail_20' ) end [2025-04-06 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:12:22] Production.INFO: ==6174== Releasing lock... [2025-04-06 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:13:06 [end_date_ymd] => 2025-04-06 09:13:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:13:06' and `end` < '2025-04-06 09: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-04-06 09:13:18] Production.INFO: count ==221 [2025-04-06 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:13:06 - End Time 2025-04-06 09:13:06 [2025-04-06 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846528', 'tblTempUsageDetail_20' ) start [2025-04-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846528', 'tblTempUsageDetail_20' ) end [2025-04-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846528', 'tblTempVendorCDR_20' ) start [2025-04-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846528', 'tblTempVendorCDR_20' ) end [2025-04-06 09:13:18] Production.INFO: ProcessCDR(1,14846528,1,1,2) [2025-04-06 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846528', 'tblTempUsageDetail_20' ) start [2025-04-06 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846528', 'tblTempUsageDetail_20' ) end [2025-04-06 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:13:22] Production.INFO: ==6284== Releasing lock... [2025-04-06 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:14:05 [end_date_ymd] => 2025-04-06 09:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:14:05' and `end` < '2025-04-06 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-04-06 09:14:18] Production.INFO: count ==221 [2025-04-06 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:14:05 - End Time 2025-04-06 09:14:05 [2025-04-06 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846533', 'tblTempUsageDetail_20' ) start [2025-04-06 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846533', 'tblTempUsageDetail_20' ) end [2025-04-06 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846533', 'tblTempVendorCDR_20' ) start [2025-04-06 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846533', 'tblTempVendorCDR_20' ) end [2025-04-06 09:14:18] Production.INFO: ProcessCDR(1,14846533,1,1,2) [2025-04-06 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846533', 'tblTempUsageDetail_20' ) start [2025-04-06 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846533', 'tblTempUsageDetail_20' ) end [2025-04-06 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:14:21] Production.INFO: ==6357== Releasing lock... [2025-04-06 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:15:05 [end_date_ymd] => 2025-04-06 09:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:15:05' and `end` < '2025-04-06 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-04-06 09:15:18] Production.INFO: count ==217 [2025-04-06 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:15:05 - End Time 2025-04-06 09:15:05 [2025-04-06 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846538', 'tblTempUsageDetail_20' ) start [2025-04-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846538', 'tblTempUsageDetail_20' ) end [2025-04-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846538', 'tblTempVendorCDR_20' ) start [2025-04-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846538', 'tblTempVendorCDR_20' ) end [2025-04-06 09:15:18] Production.INFO: ProcessCDR(1,14846538,1,1,2) [2025-04-06 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846538', 'tblTempUsageDetail_20' ) start [2025-04-06 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846538', 'tblTempUsageDetail_20' ) end [2025-04-06 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:15:22] Production.INFO: ==6434== Releasing lock... [2025-04-06 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:16:05 [end_date_ymd] => 2025-04-06 09:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:16:05' and `end` < '2025-04-06 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-04-06 09:16:18] Production.INFO: count ==213 [2025-04-06 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:16:05 - End Time 2025-04-06 09:16:05 [2025-04-06 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846543', 'tblTempUsageDetail_20' ) start [2025-04-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846543', 'tblTempUsageDetail_20' ) end [2025-04-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846543', 'tblTempVendorCDR_20' ) start [2025-04-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846543', 'tblTempVendorCDR_20' ) end [2025-04-06 09:16:18] Production.INFO: ProcessCDR(1,14846543,1,1,2) [2025-04-06 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846543', 'tblTempUsageDetail_20' ) start [2025-04-06 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846543', 'tblTempUsageDetail_20' ) end [2025-04-06 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:16:21] Production.INFO: ==6515== Releasing lock... [2025-04-06 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:17:05 [end_date_ymd] => 2025-04-06 09:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:17:05' and `end` < '2025-04-06 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-04-06 09:17:18] Production.INFO: count ==213 [2025-04-06 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:17:05 - End Time 2025-04-06 09:17:05 [2025-04-06 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846548', 'tblTempUsageDetail_20' ) start [2025-04-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846548', 'tblTempUsageDetail_20' ) end [2025-04-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846548', 'tblTempVendorCDR_20' ) start [2025-04-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846548', 'tblTempVendorCDR_20' ) end [2025-04-06 09:17:18] Production.INFO: ProcessCDR(1,14846548,1,1,2) [2025-04-06 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846548', 'tblTempUsageDetail_20' ) start [2025-04-06 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846548', 'tblTempUsageDetail_20' ) end [2025-04-06 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:17:21] Production.INFO: ==6587== Releasing lock... [2025-04-06 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:18:05 [end_date_ymd] => 2025-04-06 09:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:18:05' and `end` < '2025-04-06 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-04-06 09:18:17] Production.INFO: count ==213 [2025-04-06 09:18:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:18:05 - End Time 2025-04-06 09:18:05 [2025-04-06 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846553', 'tblTempUsageDetail_20' ) start [2025-04-06 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846553', 'tblTempUsageDetail_20' ) end [2025-04-06 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846553', 'tblTempVendorCDR_20' ) start [2025-04-06 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846553', 'tblTempVendorCDR_20' ) end [2025-04-06 09:18:17] Production.INFO: ProcessCDR(1,14846553,1,1,2) [2025-04-06 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846553', 'tblTempUsageDetail_20' ) start [2025-04-06 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846553', 'tblTempUsageDetail_20' ) end [2025-04-06 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:18:21] Production.INFO: ==6674== Releasing lock... [2025-04-06 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:19:05 [end_date_ymd] => 2025-04-06 09:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:19:05' and `end` < '2025-04-06 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-04-06 09:19:17] Production.INFO: count ==213 [2025-04-06 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:19:05 - End Time 2025-04-06 09:19:05 [2025-04-06 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846558', 'tblTempUsageDetail_20' ) start [2025-04-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846558', 'tblTempUsageDetail_20' ) end [2025-04-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846558', 'tblTempVendorCDR_20' ) start [2025-04-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846558', 'tblTempVendorCDR_20' ) end [2025-04-06 09:19:18] Production.INFO: ProcessCDR(1,14846558,1,1,2) [2025-04-06 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846558', 'tblTempUsageDetail_20' ) start [2025-04-06 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846558', 'tblTempUsageDetail_20' ) end [2025-04-06 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:19:21] Production.INFO: ==6747== Releasing lock... [2025-04-06 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:20:06 [end_date_ymd] => 2025-04-06 09:20:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:20:06' and `end` < '2025-04-06 09: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-04-06 09:20:20] Production.INFO: count ==213 [2025-04-06 09:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 06:20:06 - End Time 2025-04-06 09:20:06 [2025-04-06 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846564', 'tblTempUsageDetail_20' ) start [2025-04-06 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846564', 'tblTempUsageDetail_20' ) end [2025-04-06 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846564', 'tblTempVendorCDR_20' ) start [2025-04-06 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846564', 'tblTempVendorCDR_20' ) end [2025-04-06 09:20:20] Production.INFO: ProcessCDR(1,14846564,1,1,2) [2025-04-06 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846564', 'tblTempUsageDetail_20' ) start [2025-04-06 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846564', 'tblTempUsageDetail_20' ) end [2025-04-06 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:20:23] Production.INFO: ==6826== Releasing lock... [2025-04-06 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:21:05 [end_date_ymd] => 2025-04-06 09:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:21:05' and `end` < '2025-04-06 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-04-06 09:21:17] Production.INFO: count ==213 [2025-04-06 09:21:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:21:05 - End Time 2025-04-06 09:21:05 [2025-04-06 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846569', 'tblTempUsageDetail_20' ) start [2025-04-06 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846569', 'tblTempUsageDetail_20' ) end [2025-04-06 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846569', 'tblTempVendorCDR_20' ) start [2025-04-06 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846569', 'tblTempVendorCDR_20' ) end [2025-04-06 09:21:17] Production.INFO: ProcessCDR(1,14846569,1,1,2) [2025-04-06 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846569', 'tblTempUsageDetail_20' ) start [2025-04-06 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846569', 'tblTempUsageDetail_20' ) end [2025-04-06 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:21:21] Production.INFO: ==6904== Releasing lock... [2025-04-06 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:22:06 [end_date_ymd] => 2025-04-06 09:22:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:22:06' and `end` < '2025-04-06 09: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-04-06 09:22:18] Production.INFO: count ==213 [2025-04-06 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:22:06 - End Time 2025-04-06 09:22:06 [2025-04-06 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846574', 'tblTempUsageDetail_20' ) start [2025-04-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846574', 'tblTempUsageDetail_20' ) end [2025-04-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846574', 'tblTempVendorCDR_20' ) start [2025-04-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846574', 'tblTempVendorCDR_20' ) end [2025-04-06 09:22:19] Production.INFO: ProcessCDR(1,14846574,1,1,2) [2025-04-06 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846574', 'tblTempUsageDetail_20' ) start [2025-04-06 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846574', 'tblTempUsageDetail_20' ) end [2025-04-06 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:22:22] Production.INFO: ==6977== Releasing lock... [2025-04-06 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:23:05 [end_date_ymd] => 2025-04-06 09:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:23:05' and `end` < '2025-04-06 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-04-06 09:23:17] Production.INFO: count ==213 [2025-04-06 09:23:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:23:05 - End Time 2025-04-06 09:23:05 [2025-04-06 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846579', 'tblTempUsageDetail_20' ) start [2025-04-06 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846579', 'tblTempUsageDetail_20' ) end [2025-04-06 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846579', 'tblTempVendorCDR_20' ) start [2025-04-06 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846579', 'tblTempVendorCDR_20' ) end [2025-04-06 09:23:17] Production.INFO: ProcessCDR(1,14846579,1,1,2) [2025-04-06 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846579', 'tblTempUsageDetail_20' ) start [2025-04-06 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846579', 'tblTempUsageDetail_20' ) end [2025-04-06 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:23:21] Production.INFO: ==7053== Releasing lock... [2025-04-06 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:24:05 [end_date_ymd] => 2025-04-06 09:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:24:05' and `end` < '2025-04-06 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-04-06 09:24:18] Production.INFO: count ==213 [2025-04-06 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:24:05 - End Time 2025-04-06 09:24:05 [2025-04-06 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846581', 'tblTempUsageDetail_20' ) start [2025-04-06 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846581', 'tblTempUsageDetail_20' ) end [2025-04-06 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846581', 'tblTempVendorCDR_20' ) start [2025-04-06 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846581', 'tblTempVendorCDR_20' ) end [2025-04-06 09:24:18] Production.INFO: ProcessCDR(1,14846581,1,1,2) [2025-04-06 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846581', 'tblTempUsageDetail_20' ) start [2025-04-06 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846581', 'tblTempUsageDetail_20' ) end [2025-04-06 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:24:22] Production.INFO: ==7128== Releasing lock... [2025-04-06 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:25:05 [end_date_ymd] => 2025-04-06 09:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:25:05' and `end` < '2025-04-06 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-04-06 09:25:18] Production.INFO: count ==209 [2025-04-06 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:25:05 - End Time 2025-04-06 09:25:05 [2025-04-06 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846589', 'tblTempUsageDetail_20' ) start [2025-04-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846589', 'tblTempUsageDetail_20' ) end [2025-04-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846589', 'tblTempVendorCDR_20' ) start [2025-04-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846589', 'tblTempVendorCDR_20' ) end [2025-04-06 09:25:18] Production.INFO: ProcessCDR(1,14846589,1,1,2) [2025-04-06 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846589', 'tblTempUsageDetail_20' ) start [2025-04-06 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846589', 'tblTempUsageDetail_20' ) end [2025-04-06 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:25:21] Production.INFO: ==7200== Releasing lock... [2025-04-06 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:25:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:26:05 [end_date_ymd] => 2025-04-06 09:26:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:26:05' and `end` < '2025-04-06 09: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-04-06 09:26:18] Production.INFO: count ==205 [2025-04-06 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:26:05 - End Time 2025-04-06 09:26:05 [2025-04-06 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846594', 'tblTempUsageDetail_20' ) start [2025-04-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846594', 'tblTempUsageDetail_20' ) end [2025-04-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846594', 'tblTempVendorCDR_20' ) start [2025-04-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846594', 'tblTempVendorCDR_20' ) end [2025-04-06 09:26:18] Production.INFO: ProcessCDR(1,14846594,1,1,2) [2025-04-06 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846594', 'tblTempUsageDetail_20' ) start [2025-04-06 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846594', 'tblTempUsageDetail_20' ) end [2025-04-06 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:26:22] Production.INFO: ==7278== Releasing lock... [2025-04-06 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:26:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:27:05 [end_date_ymd] => 2025-04-06 09:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:27:05' and `end` < '2025-04-06 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-04-06 09:27:18] Production.INFO: count ==205 [2025-04-06 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:27:05 - End Time 2025-04-06 09:27:05 [2025-04-06 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846599', 'tblTempUsageDetail_20' ) start [2025-04-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846599', 'tblTempUsageDetail_20' ) end [2025-04-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846599', 'tblTempVendorCDR_20' ) start [2025-04-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846599', 'tblTempVendorCDR_20' ) end [2025-04-06 09:27:18] Production.INFO: ProcessCDR(1,14846599,1,1,2) [2025-04-06 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846599', 'tblTempUsageDetail_20' ) start [2025-04-06 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846599', 'tblTempUsageDetail_20' ) end [2025-04-06 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:27:21] Production.INFO: ==7359== Releasing lock... [2025-04-06 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:27:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:28:06 [end_date_ymd] => 2025-04-06 09:28:06 [RateCDR] => 1 ) [2025-04-06 09:28: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-04-06 06:28:06' and `end` < '2025-04-06 09:28: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-04-06 09:28:18] Production.INFO: count ==205 [2025-04-06 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:28:06 - End Time 2025-04-06 09:28:06 [2025-04-06 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846604', 'tblTempUsageDetail_20' ) start [2025-04-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846604', 'tblTempUsageDetail_20' ) end [2025-04-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846604', 'tblTempVendorCDR_20' ) start [2025-04-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846604', 'tblTempVendorCDR_20' ) end [2025-04-06 09:28:18] Production.INFO: ProcessCDR(1,14846604,1,1,2) [2025-04-06 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846604', 'tblTempUsageDetail_20' ) start [2025-04-06 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846604', 'tblTempUsageDetail_20' ) end [2025-04-06 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:28:22] Production.INFO: ==7472== Releasing lock... [2025-04-06 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:28:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:29:05 [end_date_ymd] => 2025-04-06 09:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:29:05' and `end` < '2025-04-06 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-04-06 09:29:17] Production.INFO: count ==206 [2025-04-06 09:29:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:29:05 - End Time 2025-04-06 09:29:05 [2025-04-06 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846609', 'tblTempUsageDetail_20' ) start [2025-04-06 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846609', 'tblTempUsageDetail_20' ) end [2025-04-06 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846609', 'tblTempVendorCDR_20' ) start [2025-04-06 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846609', 'tblTempVendorCDR_20' ) end [2025-04-06 09:29:17] Production.INFO: ProcessCDR(1,14846609,1,1,2) [2025-04-06 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846609', 'tblTempUsageDetail_20' ) start [2025-04-06 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846609', 'tblTempUsageDetail_20' ) end [2025-04-06 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:29:22] Production.INFO: ==7548== Releasing lock... [2025-04-06 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:29:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:30:06 [end_date_ymd] => 2025-04-06 09:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:30:06' and `end` < '2025-04-06 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-04-06 09:30:19] Production.INFO: count ==212 [2025-04-06 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:30:06 - End Time 2025-04-06 09:30:06 [2025-04-06 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846615', 'tblTempUsageDetail_20' ) start [2025-04-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846615', 'tblTempUsageDetail_20' ) end [2025-04-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846615', 'tblTempVendorCDR_20' ) start [2025-04-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846615', 'tblTempVendorCDR_20' ) end [2025-04-06 09:30:19] Production.INFO: ProcessCDR(1,14846615,1,1,2) [2025-04-06 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846615', 'tblTempUsageDetail_20' ) start [2025-04-06 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846615', 'tblTempUsageDetail_20' ) end [2025-04-06 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:30:22] Production.INFO: ==7624== Releasing lock... [2025-04-06 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:31:05 [end_date_ymd] => 2025-04-06 09:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:31:05' and `end` < '2025-04-06 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-04-06 09:31:18] Production.INFO: count ==209 [2025-04-06 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:31:05 - End Time 2025-04-06 09:31:05 [2025-04-06 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846620', 'tblTempUsageDetail_20' ) start [2025-04-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846620', 'tblTempUsageDetail_20' ) end [2025-04-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846620', 'tblTempVendorCDR_20' ) start [2025-04-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846620', 'tblTempVendorCDR_20' ) end [2025-04-06 09:31:18] Production.INFO: ProcessCDR(1,14846620,1,1,2) [2025-04-06 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846620', 'tblTempUsageDetail_20' ) start [2025-04-06 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846620', 'tblTempUsageDetail_20' ) end [2025-04-06 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:31:22] Production.INFO: ==7702== Releasing lock... [2025-04-06 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:32:06 [end_date_ymd] => 2025-04-06 09:32:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:32:06' and `end` < '2025-04-06 09: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-04-06 09:32:18] Production.INFO: count ==209 [2025-04-06 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:32:06 - End Time 2025-04-06 09:32:06 [2025-04-06 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846625', 'tblTempUsageDetail_20' ) start [2025-04-06 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846625', 'tblTempUsageDetail_20' ) end [2025-04-06 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846625', 'tblTempVendorCDR_20' ) start [2025-04-06 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846625', 'tblTempVendorCDR_20' ) end [2025-04-06 09:32:19] Production.INFO: ProcessCDR(1,14846625,1,1,2) [2025-04-06 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846625', 'tblTempUsageDetail_20' ) start [2025-04-06 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846625', 'tblTempUsageDetail_20' ) end [2025-04-06 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:32:22] Production.INFO: ==7780== Releasing lock... [2025-04-06 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:33:05 [end_date_ymd] => 2025-04-06 09:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:33:05' and `end` < '2025-04-06 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-04-06 09:33:17] Production.INFO: count ==209 [2025-04-06 09:33:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:33:05 - End Time 2025-04-06 09:33:05 [2025-04-06 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846630', 'tblTempUsageDetail_20' ) start [2025-04-06 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846630', 'tblTempUsageDetail_20' ) end [2025-04-06 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846630', 'tblTempVendorCDR_20' ) start [2025-04-06 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846630', 'tblTempVendorCDR_20' ) end [2025-04-06 09:33:17] Production.INFO: ProcessCDR(1,14846630,1,1,2) [2025-04-06 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846630', 'tblTempUsageDetail_20' ) start [2025-04-06 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846630', 'tblTempUsageDetail_20' ) end [2025-04-06 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:33:21] Production.INFO: ==7855== Releasing lock... [2025-04-06 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:34:05 [end_date_ymd] => 2025-04-06 09:34:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:34:05' and `end` < '2025-04-06 09: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-04-06 09:34:18] Production.INFO: count ==209 [2025-04-06 09:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:34:05 - End Time 2025-04-06 09:34:05 [2025-04-06 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846635', 'tblTempUsageDetail_20' ) start [2025-04-06 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846635', 'tblTempUsageDetail_20' ) end [2025-04-06 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846635', 'tblTempVendorCDR_20' ) start [2025-04-06 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846635', 'tblTempVendorCDR_20' ) end [2025-04-06 09:34:18] Production.INFO: ProcessCDR(1,14846635,1,1,2) [2025-04-06 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846635', 'tblTempUsageDetail_20' ) start [2025-04-06 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846635', 'tblTempUsageDetail_20' ) end [2025-04-06 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:34:21] Production.INFO: ==7931== Releasing lock... [2025-04-06 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:35:06 [end_date_ymd] => 2025-04-06 09:35:06 [RateCDR] => 1 ) [2025-04-06 09:35: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-04-06 06:35:06' and `end` < '2025-04-06 09:35: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-04-06 09:35:19] Production.INFO: count ==209 [2025-04-06 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:35:06 - End Time 2025-04-06 09:35:06 [2025-04-06 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846640', 'tblTempUsageDetail_20' ) start [2025-04-06 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846640', 'tblTempUsageDetail_20' ) end [2025-04-06 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846640', 'tblTempVendorCDR_20' ) start [2025-04-06 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846640', 'tblTempVendorCDR_20' ) end [2025-04-06 09:35:19] Production.INFO: ProcessCDR(1,14846640,1,1,2) [2025-04-06 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846640', 'tblTempUsageDetail_20' ) start [2025-04-06 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846640', 'tblTempUsageDetail_20' ) end [2025-04-06 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:35:22] Production.INFO: ==8007== Releasing lock... [2025-04-06 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:36:05 [end_date_ymd] => 2025-04-06 09:36:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:36:05' and `end` < '2025-04-06 09: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-04-06 09:36:18] Production.INFO: count ==209 [2025-04-06 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:36:05 - End Time 2025-04-06 09:36:05 [2025-04-06 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846645', 'tblTempUsageDetail_20' ) start [2025-04-06 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846645', 'tblTempUsageDetail_20' ) end [2025-04-06 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846645', 'tblTempVendorCDR_20' ) start [2025-04-06 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846645', 'tblTempVendorCDR_20' ) end [2025-04-06 09:36:18] Production.INFO: ProcessCDR(1,14846645,1,1,2) [2025-04-06 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846645', 'tblTempUsageDetail_20' ) start [2025-04-06 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846645', 'tblTempUsageDetail_20' ) end [2025-04-06 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:36:21] Production.INFO: ==8077== Releasing lock... [2025-04-06 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:37:05 [end_date_ymd] => 2025-04-06 09:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:37:05' and `end` < '2025-04-06 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-04-06 09:37:18] Production.INFO: count ==209 [2025-04-06 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:37:05 - End Time 2025-04-06 09:37:05 [2025-04-06 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846650', 'tblTempUsageDetail_20' ) start [2025-04-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846650', 'tblTempUsageDetail_20' ) end [2025-04-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846650', 'tblTempVendorCDR_20' ) start [2025-04-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846650', 'tblTempVendorCDR_20' ) end [2025-04-06 09:37:18] Production.INFO: ProcessCDR(1,14846650,1,1,2) [2025-04-06 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846650', 'tblTempUsageDetail_20' ) start [2025-04-06 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846650', 'tblTempUsageDetail_20' ) end [2025-04-06 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:37:21] Production.INFO: ==8152== Releasing lock... [2025-04-06 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:38:05 [end_date_ymd] => 2025-04-06 09:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:38:05' and `end` < '2025-04-06 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-04-06 09:38:18] Production.INFO: count ==209 [2025-04-06 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:38:05 - End Time 2025-04-06 09:38:05 [2025-04-06 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846655', 'tblTempUsageDetail_20' ) start [2025-04-06 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846655', 'tblTempUsageDetail_20' ) end [2025-04-06 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846655', 'tblTempVendorCDR_20' ) start [2025-04-06 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846655', 'tblTempVendorCDR_20' ) end [2025-04-06 09:38:18] Production.INFO: ProcessCDR(1,14846655,1,1,2) [2025-04-06 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846655', 'tblTempUsageDetail_20' ) start [2025-04-06 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846655', 'tblTempUsageDetail_20' ) end [2025-04-06 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:38:21] Production.INFO: ==8227== Releasing lock... [2025-04-06 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:39:06 [end_date_ymd] => 2025-04-06 09:39:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:39:06' and `end` < '2025-04-06 09: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-04-06 09:39:19] Production.INFO: count ==206 [2025-04-06 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:39:06 - End Time 2025-04-06 09:39:06 [2025-04-06 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846660', 'tblTempUsageDetail_20' ) start [2025-04-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846660', 'tblTempUsageDetail_20' ) end [2025-04-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846660', 'tblTempVendorCDR_20' ) start [2025-04-06 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846660', 'tblTempVendorCDR_20' ) end [2025-04-06 09:39:19] Production.INFO: ProcessCDR(1,14846660,1,1,2) [2025-04-06 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846660', 'tblTempUsageDetail_20' ) start [2025-04-06 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846660', 'tblTempUsageDetail_20' ) end [2025-04-06 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:39:23] Production.INFO: ==8304== Releasing lock... [2025-04-06 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:39:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:40:06 [end_date_ymd] => 2025-04-06 09:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:40:06' and `end` < '2025-04-06 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-04-06 09:40:18] Production.INFO: count ==206 [2025-04-06 09:40:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:40:06 - End Time 2025-04-06 09:40:06 [2025-04-06 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846665', 'tblTempUsageDetail_20' ) start [2025-04-06 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846665', 'tblTempUsageDetail_20' ) end [2025-04-06 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846665', 'tblTempVendorCDR_20' ) start [2025-04-06 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846665', 'tblTempVendorCDR_20' ) end [2025-04-06 09:40:18] Production.INFO: ProcessCDR(1,14846665,1,1,2) [2025-04-06 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846665', 'tblTempUsageDetail_20' ) start [2025-04-06 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846665', 'tblTempUsageDetail_20' ) end [2025-04-06 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:40:22] Production.INFO: ==8382== Releasing lock... [2025-04-06 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:41:06 [end_date_ymd] => 2025-04-06 09:41:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:41:06' and `end` < '2025-04-06 09: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-04-06 09:41:18] Production.INFO: count ==206 [2025-04-06 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:41:06 - End Time 2025-04-06 09:41:06 [2025-04-06 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846671', 'tblTempUsageDetail_20' ) start [2025-04-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846671', 'tblTempUsageDetail_20' ) end [2025-04-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846671', 'tblTempVendorCDR_20' ) start [2025-04-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846671', 'tblTempVendorCDR_20' ) end [2025-04-06 09:41:18] Production.INFO: ProcessCDR(1,14846671,1,1,2) [2025-04-06 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846671', 'tblTempUsageDetail_20' ) start [2025-04-06 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846671', 'tblTempUsageDetail_20' ) end [2025-04-06 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:41:22] Production.INFO: ==8456== Releasing lock... [2025-04-06 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:41:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:42:06 [end_date_ymd] => 2025-04-06 09:42:06 [RateCDR] => 1 ) [2025-04-06 09:42: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-04-06 06:42:06' and `end` < '2025-04-06 09:42: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-04-06 09:42:18] Production.INFO: count ==202 [2025-04-06 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:42:06 - End Time 2025-04-06 09:42:06 [2025-04-06 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846676', 'tblTempUsageDetail_20' ) start [2025-04-06 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846676', 'tblTempUsageDetail_20' ) end [2025-04-06 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846676', 'tblTempVendorCDR_20' ) start [2025-04-06 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846676', 'tblTempVendorCDR_20' ) end [2025-04-06 09:42:18] Production.INFO: ProcessCDR(1,14846676,1,1,2) [2025-04-06 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846676', 'tblTempUsageDetail_20' ) start [2025-04-06 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846676', 'tblTempUsageDetail_20' ) end [2025-04-06 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:42:22] Production.INFO: ==8531== Releasing lock... [2025-04-06 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:43:05 [end_date_ymd] => 2025-04-06 09:43:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:43:05' and `end` < '2025-04-06 09: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-04-06 09:43:18] Production.INFO: count ==198 [2025-04-06 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:43:05 - End Time 2025-04-06 09:43:05 [2025-04-06 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846681', 'tblTempUsageDetail_20' ) start [2025-04-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846681', 'tblTempUsageDetail_20' ) end [2025-04-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846681', 'tblTempVendorCDR_20' ) start [2025-04-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846681', 'tblTempVendorCDR_20' ) end [2025-04-06 09:43:18] Production.INFO: ProcessCDR(1,14846681,1,1,2) [2025-04-06 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846681', 'tblTempUsageDetail_20' ) start [2025-04-06 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846681', 'tblTempUsageDetail_20' ) end [2025-04-06 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:43:22] Production.INFO: ==8603== Releasing lock... [2025-04-06 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:44:05 [end_date_ymd] => 2025-04-06 09:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:44:05' and `end` < '2025-04-06 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-04-06 09:44:18] Production.INFO: count ==198 [2025-04-06 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:44:05 - End Time 2025-04-06 09:44:05 [2025-04-06 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846686', 'tblTempUsageDetail_20' ) start [2025-04-06 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846686', 'tblTempUsageDetail_20' ) end [2025-04-06 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846686', 'tblTempVendorCDR_20' ) start [2025-04-06 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846686', 'tblTempVendorCDR_20' ) end [2025-04-06 09:44:18] Production.INFO: ProcessCDR(1,14846686,1,1,2) [2025-04-06 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846686', 'tblTempUsageDetail_20' ) start [2025-04-06 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846686', 'tblTempUsageDetail_20' ) end [2025-04-06 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:44:21] Production.INFO: ==8714== Releasing lock... [2025-04-06 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:45:06 [end_date_ymd] => 2025-04-06 09:45:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:45:06' and `end` < '2025-04-06 09: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-04-06 09:45:18] Production.INFO: count ==198 [2025-04-06 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:45:06 - End Time 2025-04-06 09:45:06 [2025-04-06 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846691', 'tblTempUsageDetail_20' ) start [2025-04-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846691', 'tblTempUsageDetail_20' ) end [2025-04-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846691', 'tblTempVendorCDR_20' ) start [2025-04-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846691', 'tblTempVendorCDR_20' ) end [2025-04-06 09:45:18] Production.INFO: ProcessCDR(1,14846691,1,1,2) [2025-04-06 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846691', 'tblTempUsageDetail_20' ) start [2025-04-06 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846691', 'tblTempUsageDetail_20' ) end [2025-04-06 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:45:22] Production.INFO: ==8791== Releasing lock... [2025-04-06 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:46:04 [end_date_ymd] => 2025-04-06 09:46:04 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:46:04' and `end` < '2025-04-06 09: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-04-06 09:46:17] Production.INFO: count ==201 [2025-04-06 09:46:17] Production.ERROR: pbx CDR StartTime 2025-04-06 06:46:04 - End Time 2025-04-06 09:46:04 [2025-04-06 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846696', 'tblTempUsageDetail_20' ) start [2025-04-06 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846696', 'tblTempUsageDetail_20' ) end [2025-04-06 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846696', 'tblTempVendorCDR_20' ) start [2025-04-06 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846696', 'tblTempVendorCDR_20' ) end [2025-04-06 09:46:17] Production.INFO: ProcessCDR(1,14846696,1,1,2) [2025-04-06 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846696', 'tblTempUsageDetail_20' ) start [2025-04-06 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846696', 'tblTempUsageDetail_20' ) end [2025-04-06 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:46:21] Production.INFO: ==8869== Releasing lock... [2025-04-06 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:46:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:47:05 [end_date_ymd] => 2025-04-06 09:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:47:05' and `end` < '2025-04-06 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-04-06 09:47:18] Production.INFO: count ==203 [2025-04-06 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:47:05 - End Time 2025-04-06 09:47:05 [2025-04-06 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846701', 'tblTempUsageDetail_20' ) start [2025-04-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846701', 'tblTempUsageDetail_20' ) end [2025-04-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846701', 'tblTempVendorCDR_20' ) start [2025-04-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846701', 'tblTempVendorCDR_20' ) end [2025-04-06 09:47:18] Production.INFO: ProcessCDR(1,14846701,1,1,2) [2025-04-06 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846701', 'tblTempUsageDetail_20' ) start [2025-04-06 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846701', 'tblTempUsageDetail_20' ) end [2025-04-06 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:47:21] Production.INFO: ==8947== Releasing lock... [2025-04-06 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:48:06 [end_date_ymd] => 2025-04-06 09:48:06 [RateCDR] => 1 ) [2025-04-06 09:48: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-04-06 06:48:06' and `end` < '2025-04-06 09:48: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-04-06 09:48:19] Production.INFO: count ==206 [2025-04-06 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:48:06 - End Time 2025-04-06 09:48:06 [2025-04-06 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846706', 'tblTempUsageDetail_20' ) start [2025-04-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846706', 'tblTempUsageDetail_20' ) end [2025-04-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846706', 'tblTempVendorCDR_20' ) start [2025-04-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846706', 'tblTempVendorCDR_20' ) end [2025-04-06 09:48:19] Production.INFO: ProcessCDR(1,14846706,1,1,2) [2025-04-06 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846706', 'tblTempUsageDetail_20' ) start [2025-04-06 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846706', 'tblTempUsageDetail_20' ) end [2025-04-06 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:48:22] Production.INFO: ==9024== Releasing lock... [2025-04-06 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:49:05 [end_date_ymd] => 2025-04-06 09:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:49:05' and `end` < '2025-04-06 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-04-06 09:49:18] Production.INFO: count ==202 [2025-04-06 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:49:05 - End Time 2025-04-06 09:49:05 [2025-04-06 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846711', 'tblTempUsageDetail_20' ) start [2025-04-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846711', 'tblTempUsageDetail_20' ) end [2025-04-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846711', 'tblTempVendorCDR_20' ) start [2025-04-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846711', 'tblTempVendorCDR_20' ) end [2025-04-06 09:49:18] Production.INFO: ProcessCDR(1,14846711,1,1,2) [2025-04-06 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846711', 'tblTempUsageDetail_20' ) start [2025-04-06 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846711', 'tblTempUsageDetail_20' ) end [2025-04-06 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:49:21] Production.INFO: ==9097== Releasing lock... [2025-04-06 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:50:06 [end_date_ymd] => 2025-04-06 09:50:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:50:06' and `end` < '2025-04-06 09: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-04-06 09:50:19] Production.INFO: count ==211 [2025-04-06 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 06:50:06 - End Time 2025-04-06 09:50:06 [2025-04-06 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846717', 'tblTempUsageDetail_20' ) start [2025-04-06 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846717', 'tblTempUsageDetail_20' ) end [2025-04-06 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846717', 'tblTempVendorCDR_20' ) start [2025-04-06 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846717', 'tblTempVendorCDR_20' ) end [2025-04-06 09:50:19] Production.INFO: ProcessCDR(1,14846717,1,1,2) [2025-04-06 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846717', 'tblTempUsageDetail_20' ) start [2025-04-06 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846717', 'tblTempUsageDetail_20' ) end [2025-04-06 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:50:24] Production.INFO: ==9172== Releasing lock... [2025-04-06 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:50:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:51:05 [end_date_ymd] => 2025-04-06 09:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:51:05' and `end` < '2025-04-06 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-04-06 09:51:18] Production.INFO: count ==211 [2025-04-06 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:51:05 - End Time 2025-04-06 09:51:05 [2025-04-06 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846722', 'tblTempUsageDetail_20' ) start [2025-04-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846722', 'tblTempUsageDetail_20' ) end [2025-04-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846722', 'tblTempVendorCDR_20' ) start [2025-04-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846722', 'tblTempVendorCDR_20' ) end [2025-04-06 09:51:18] Production.INFO: ProcessCDR(1,14846722,1,1,2) [2025-04-06 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846722', 'tblTempUsageDetail_20' ) start [2025-04-06 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846722', 'tblTempUsageDetail_20' ) end [2025-04-06 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:51:21] Production.INFO: ==9250== Releasing lock... [2025-04-06 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:52:05 [end_date_ymd] => 2025-04-06 09:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:52:05' and `end` < '2025-04-06 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-04-06 09:52:18] Production.INFO: count ==207 [2025-04-06 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:52:05 - End Time 2025-04-06 09:52:05 [2025-04-06 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846727', 'tblTempUsageDetail_20' ) start [2025-04-06 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846727', 'tblTempUsageDetail_20' ) end [2025-04-06 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846727', 'tblTempVendorCDR_20' ) start [2025-04-06 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846727', 'tblTempVendorCDR_20' ) end [2025-04-06 09:52:18] Production.INFO: ProcessCDR(1,14846727,1,1,2) [2025-04-06 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846727', 'tblTempUsageDetail_20' ) start [2025-04-06 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846727', 'tblTempUsageDetail_20' ) end [2025-04-06 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:52:21] Production.INFO: ==9333== Releasing lock... [2025-04-06 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:53:05 [end_date_ymd] => 2025-04-06 09:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:53:05' and `end` < '2025-04-06 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-04-06 09:53:17] Production.INFO: count ==208 [2025-04-06 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:53:05 - End Time 2025-04-06 09:53:05 [2025-04-06 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846732', 'tblTempUsageDetail_20' ) start [2025-04-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846732', 'tblTempUsageDetail_20' ) end [2025-04-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846732', 'tblTempVendorCDR_20' ) start [2025-04-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846732', 'tblTempVendorCDR_20' ) end [2025-04-06 09:53:18] Production.INFO: ProcessCDR(1,14846732,1,1,2) [2025-04-06 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846732', 'tblTempUsageDetail_20' ) start [2025-04-06 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846732', 'tblTempUsageDetail_20' ) end [2025-04-06 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:53:21] Production.INFO: ==9415== Releasing lock... [2025-04-06 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:54:06 [end_date_ymd] => 2025-04-06 09:54:06 [RateCDR] => 1 ) [2025-04-06 09:54: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-04-06 06:54:06' and `end` < '2025-04-06 09:54: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-04-06 09:54:18] Production.INFO: count ==207 [2025-04-06 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:54:06 - End Time 2025-04-06 09:54:06 [2025-04-06 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846737', 'tblTempUsageDetail_20' ) start [2025-04-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846737', 'tblTempUsageDetail_20' ) end [2025-04-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846737', 'tblTempVendorCDR_20' ) start [2025-04-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846737', 'tblTempVendorCDR_20' ) end [2025-04-06 09:54:18] Production.INFO: ProcessCDR(1,14846737,1,1,2) [2025-04-06 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846737', 'tblTempUsageDetail_20' ) start [2025-04-06 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846737', 'tblTempUsageDetail_20' ) end [2025-04-06 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:54:22] Production.INFO: ==9492== Releasing lock... [2025-04-06 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:55:05 [end_date_ymd] => 2025-04-06 09:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:55:05' and `end` < '2025-04-06 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-04-06 09:55:18] Production.INFO: count ==203 [2025-04-06 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:55:05 - End Time 2025-04-06 09:55:05 [2025-04-06 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846742', 'tblTempUsageDetail_20' ) start [2025-04-06 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846742', 'tblTempUsageDetail_20' ) end [2025-04-06 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846742', 'tblTempVendorCDR_20' ) start [2025-04-06 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846742', 'tblTempVendorCDR_20' ) end [2025-04-06 09:55:18] Production.INFO: ProcessCDR(1,14846742,1,1,2) [2025-04-06 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846742', 'tblTempUsageDetail_20' ) start [2025-04-06 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846742', 'tblTempUsageDetail_20' ) end [2025-04-06 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:55:22] Production.INFO: ==9572== Releasing lock... [2025-04-06 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:56:05 [end_date_ymd] => 2025-04-06 09:56:05 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:56:05' and `end` < '2025-04-06 09: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-04-06 09:56:18] Production.INFO: count ==204 [2025-04-06 09:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:56:05 - End Time 2025-04-06 09:56:05 [2025-04-06 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846747', 'tblTempUsageDetail_20' ) start [2025-04-06 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846747', 'tblTempUsageDetail_20' ) end [2025-04-06 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846747', 'tblTempVendorCDR_20' ) start [2025-04-06 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846747', 'tblTempVendorCDR_20' ) end [2025-04-06 09:56:18] Production.INFO: ProcessCDR(1,14846747,1,1,2) [2025-04-06 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846747', 'tblTempUsageDetail_20' ) start [2025-04-06 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846747', 'tblTempUsageDetail_20' ) end [2025-04-06 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:56:21] Production.INFO: ==9648== Releasing lock... [2025-04-06 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:57:05 [end_date_ymd] => 2025-04-06 09:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:57:05' and `end` < '2025-04-06 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-04-06 09:57:18] Production.INFO: count ==206 [2025-04-06 09:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:57:05 - End Time 2025-04-06 09:57:05 [2025-04-06 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846752', 'tblTempUsageDetail_20' ) start [2025-04-06 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846752', 'tblTempUsageDetail_20' ) end [2025-04-06 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846752', 'tblTempVendorCDR_20' ) start [2025-04-06 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846752', 'tblTempVendorCDR_20' ) end [2025-04-06 09:57:18] Production.INFO: ProcessCDR(1,14846752,1,1,2) [2025-04-06 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846752', 'tblTempUsageDetail_20' ) start [2025-04-06 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846752', 'tblTempUsageDetail_20' ) end [2025-04-06 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:57:21] Production.INFO: ==9729== Releasing lock... [2025-04-06 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:58:05 [end_date_ymd] => 2025-04-06 09:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 06:58:05' and `end` < '2025-04-06 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-04-06 09:58:18] Production.INFO: count ==208 [2025-04-06 09:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:58:05 - End Time 2025-04-06 09:58:05 [2025-04-06 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846757', 'tblTempUsageDetail_20' ) start [2025-04-06 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846757', 'tblTempUsageDetail_20' ) end [2025-04-06 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846757', 'tblTempVendorCDR_20' ) start [2025-04-06 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846757', 'tblTempVendorCDR_20' ) end [2025-04-06 09:58:18] Production.INFO: ProcessCDR(1,14846757,1,1,2) [2025-04-06 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846757', 'tblTempUsageDetail_20' ) start [2025-04-06 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846757', 'tblTempUsageDetail_20' ) end [2025-04-06 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:58:21] Production.INFO: ==9802== Releasing lock... [2025-04-06 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 06:59:06 [end_date_ymd] => 2025-04-06 09:59:06 [RateCDR] => 1 ) [2025-04-06 09: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-04-06 06:59:06' and `end` < '2025-04-06 09: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-04-06 09:59:18] Production.INFO: count ==204 [2025-04-06 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 06:59:06 - End Time 2025-04-06 09:59:06 [2025-04-06 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846762', 'tblTempUsageDetail_20' ) start [2025-04-06 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846762', 'tblTempUsageDetail_20' ) end [2025-04-06 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846762', 'tblTempVendorCDR_20' ) start [2025-04-06 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846762', 'tblTempVendorCDR_20' ) end [2025-04-06 09:59:18] Production.INFO: ProcessCDR(1,14846762,1,1,2) [2025-04-06 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846762', 'tblTempUsageDetail_20' ) start [2025-04-06 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846762', 'tblTempUsageDetail_20' ) end [2025-04-06 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 09:59:22] Production.INFO: ==9924== Releasing lock... [2025-04-06 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 09:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:00:06 [end_date_ymd] => 2025-04-06 10:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:00:06' and `end` < '2025-04-06 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-04-06 10:00:19] Production.INFO: count ==195 [2025-04-06 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 07:00:06 - End Time 2025-04-06 10:00:06 [2025-04-06 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846768', 'tblTempUsageDetail_20' ) start [2025-04-06 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846768', 'tblTempUsageDetail_20' ) end [2025-04-06 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846768', 'tblTempVendorCDR_20' ) start [2025-04-06 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846768', 'tblTempVendorCDR_20' ) end [2025-04-06 10:00:20] Production.INFO: ProcessCDR(1,14846768,1,1,2) [2025-04-06 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846768', 'tblTempUsageDetail_20' ) start [2025-04-06 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846768', 'tblTempUsageDetail_20' ) end [2025-04-06 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:00:25] Production.INFO: ==10002== Releasing lock... [2025-04-06 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:00:25] Production.INFO: 30 MB #Memory Used# [2025-04-06 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:01:06 [end_date_ymd] => 2025-04-06 10:01:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:01:06' and `end` < '2025-04-06 10: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-04-06 10:01:18] Production.INFO: count ==183 [2025-04-06 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:01:06 - End Time 2025-04-06 10:01:06 [2025-04-06 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846773', 'tblTempUsageDetail_20' ) start [2025-04-06 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846773', 'tblTempUsageDetail_20' ) end [2025-04-06 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846773', 'tblTempVendorCDR_20' ) start [2025-04-06 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846773', 'tblTempVendorCDR_20' ) end [2025-04-06 10:01:19] Production.INFO: ProcessCDR(1,14846773,1,1,2) [2025-04-06 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846773', 'tblTempUsageDetail_20' ) start [2025-04-06 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846773', 'tblTempUsageDetail_20' ) end [2025-04-06 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:01:22] Production.INFO: ==10094== Releasing lock... [2025-04-06 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:02:05 [end_date_ymd] => 2025-04-06 10:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:02:05' and `end` < '2025-04-06 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-04-06 10:02:18] Production.INFO: count ==167 [2025-04-06 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:02:05 - End Time 2025-04-06 10:02:05 [2025-04-06 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846778', 'tblTempUsageDetail_20' ) start [2025-04-06 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846778', 'tblTempUsageDetail_20' ) end [2025-04-06 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846778', 'tblTempVendorCDR_20' ) start [2025-04-06 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846778', 'tblTempVendorCDR_20' ) end [2025-04-06 10:02:18] Production.INFO: ProcessCDR(1,14846778,1,1,2) [2025-04-06 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846778', 'tblTempUsageDetail_20' ) start [2025-04-06 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846778', 'tblTempUsageDetail_20' ) end [2025-04-06 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:02:22] Production.INFO: ==10174== Releasing lock... [2025-04-06 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:03:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:03:07 [end_date_ymd] => 2025-04-06 10:03:07 [RateCDR] => 1 ) [2025-04-06 10:03: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-04-06 07:03:07' and `end` < '2025-04-06 10:03: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-04-06 10:03:19] Production.INFO: count ==154 [2025-04-06 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:03:07 - End Time 2025-04-06 10:03:07 [2025-04-06 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846783', 'tblTempUsageDetail_20' ) start [2025-04-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846783', 'tblTempUsageDetail_20' ) end [2025-04-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846783', 'tblTempVendorCDR_20' ) start [2025-04-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846783', 'tblTempVendorCDR_20' ) end [2025-04-06 10:03:19] Production.INFO: ProcessCDR(1,14846783,1,1,2) [2025-04-06 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846783', 'tblTempUsageDetail_20' ) start [2025-04-06 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846783', 'tblTempUsageDetail_20' ) end [2025-04-06 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:03:23] Production.INFO: ==10247== Releasing lock... [2025-04-06 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:03:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:04:06 [end_date_ymd] => 2025-04-06 10:04:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:04:06' and `end` < '2025-04-06 10: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-04-06 10:04:19] Production.INFO: count ==148 [2025-04-06 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:04:06 - End Time 2025-04-06 10:04:06 [2025-04-06 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846788', 'tblTempUsageDetail_20' ) start [2025-04-06 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846788', 'tblTempUsageDetail_20' ) end [2025-04-06 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846788', 'tblTempVendorCDR_20' ) start [2025-04-06 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846788', 'tblTempVendorCDR_20' ) end [2025-04-06 10:04:19] Production.INFO: ProcessCDR(1,14846788,1,1,2) [2025-04-06 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846788', 'tblTempUsageDetail_20' ) start [2025-04-06 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846788', 'tblTempUsageDetail_20' ) end [2025-04-06 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:04:23] Production.INFO: ==10329== Releasing lock... [2025-04-06 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:05:06 [end_date_ymd] => 2025-04-06 10:05:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:05:06' and `end` < '2025-04-06 10: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-04-06 10:05:19] Production.INFO: count ==145 [2025-04-06 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:05:06 - End Time 2025-04-06 10:05:06 [2025-04-06 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846793', 'tblTempUsageDetail_20' ) start [2025-04-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846793', 'tblTempUsageDetail_20' ) end [2025-04-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846793', 'tblTempVendorCDR_20' ) start [2025-04-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846793', 'tblTempVendorCDR_20' ) end [2025-04-06 10:05:19] Production.INFO: ProcessCDR(1,14846793,1,1,2) [2025-04-06 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846793', 'tblTempUsageDetail_20' ) start [2025-04-06 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846793', 'tblTempUsageDetail_20' ) end [2025-04-06 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:05:23] Production.INFO: ==10406== Releasing lock... [2025-04-06 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:06:06 [end_date_ymd] => 2025-04-06 10:06:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:06:06' and `end` < '2025-04-06 10: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-04-06 10:06:19] Production.INFO: count ==140 [2025-04-06 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:06:06 - End Time 2025-04-06 10:06:06 [2025-04-06 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846798', 'tblTempUsageDetail_20' ) start [2025-04-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846798', 'tblTempUsageDetail_20' ) end [2025-04-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846798', 'tblTempVendorCDR_20' ) start [2025-04-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846798', 'tblTempVendorCDR_20' ) end [2025-04-06 10:06:19] Production.INFO: ProcessCDR(1,14846798,1,1,2) [2025-04-06 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846798', 'tblTempUsageDetail_20' ) start [2025-04-06 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846798', 'tblTempUsageDetail_20' ) end [2025-04-06 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:06:24] Production.INFO: ==10483== Releasing lock... [2025-04-06 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:06:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:07:05 [end_date_ymd] => 2025-04-06 10:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:07:05' and `end` < '2025-04-06 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-04-06 10:07:18] Production.INFO: count ==141 [2025-04-06 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:07:05 - End Time 2025-04-06 10:07:05 [2025-04-06 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846803', 'tblTempUsageDetail_20' ) start [2025-04-06 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846803', 'tblTempUsageDetail_20' ) end [2025-04-06 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846803', 'tblTempVendorCDR_20' ) start [2025-04-06 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846803', 'tblTempVendorCDR_20' ) end [2025-04-06 10:07:18] Production.INFO: ProcessCDR(1,14846803,1,1,2) [2025-04-06 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846803', 'tblTempUsageDetail_20' ) start [2025-04-06 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846803', 'tblTempUsageDetail_20' ) end [2025-04-06 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:07:24] Production.INFO: ==10564== Releasing lock... [2025-04-06 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:07:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:08:06 [end_date_ymd] => 2025-04-06 10:08:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:08:06' and `end` < '2025-04-06 10: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-04-06 10:08:19] Production.INFO: count ==144 [2025-04-06 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:08:06 - End Time 2025-04-06 10:08:06 [2025-04-06 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846808', 'tblTempUsageDetail_20' ) start [2025-04-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846808', 'tblTempUsageDetail_20' ) end [2025-04-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846808', 'tblTempVendorCDR_20' ) start [2025-04-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846808', 'tblTempVendorCDR_20' ) end [2025-04-06 10:08:19] Production.INFO: ProcessCDR(1,14846808,1,1,2) [2025-04-06 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846808', 'tblTempUsageDetail_20' ) start [2025-04-06 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846808', 'tblTempUsageDetail_20' ) end [2025-04-06 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:08:25] Production.INFO: ==10645== Releasing lock... [2025-04-06 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:08:25] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:09:06 [end_date_ymd] => 2025-04-06 10:09:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:09:06' and `end` < '2025-04-06 10: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-04-06 10:09:19] Production.INFO: count ==145 [2025-04-06 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:09:06 - End Time 2025-04-06 10:09:06 [2025-04-06 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846813', 'tblTempUsageDetail_20' ) start [2025-04-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846813', 'tblTempUsageDetail_20' ) end [2025-04-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846813', 'tblTempVendorCDR_20' ) start [2025-04-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846813', 'tblTempVendorCDR_20' ) end [2025-04-06 10:09:19] Production.INFO: ProcessCDR(1,14846813,1,1,2) [2025-04-06 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846813', 'tblTempUsageDetail_20' ) start [2025-04-06 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846813', 'tblTempUsageDetail_20' ) end [2025-04-06 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:09:24] Production.INFO: ==10722== Releasing lock... [2025-04-06 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:09:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:10:06 [end_date_ymd] => 2025-04-06 10:10:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:10:06' and `end` < '2025-04-06 10: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-04-06 10:10:19] Production.INFO: count ==146 [2025-04-06 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:10:06 - End Time 2025-04-06 10:10:06 [2025-04-06 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846818', 'tblTempUsageDetail_20' ) start [2025-04-06 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846818', 'tblTempUsageDetail_20' ) end [2025-04-06 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846818', 'tblTempVendorCDR_20' ) start [2025-04-06 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846818', 'tblTempVendorCDR_20' ) end [2025-04-06 10:10:19] Production.INFO: ProcessCDR(1,14846818,1,1,2) [2025-04-06 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846818', 'tblTempUsageDetail_20' ) start [2025-04-06 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846818', 'tblTempUsageDetail_20' ) end [2025-04-06 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:10:24] Production.INFO: ==10808== Releasing lock... [2025-04-06 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:10:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:11:05 [end_date_ymd] => 2025-04-06 10:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:11:05' and `end` < '2025-04-06 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-04-06 10:11:18] Production.INFO: count ==147 [2025-04-06 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:11:05 - End Time 2025-04-06 10:11:05 [2025-04-06 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846824', 'tblTempUsageDetail_20' ) start [2025-04-06 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846824', 'tblTempUsageDetail_20' ) end [2025-04-06 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846824', 'tblTempVendorCDR_20' ) start [2025-04-06 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846824', 'tblTempVendorCDR_20' ) end [2025-04-06 10:11:18] Production.INFO: ProcessCDR(1,14846824,1,1,2) [2025-04-06 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846824', 'tblTempUsageDetail_20' ) start [2025-04-06 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846824', 'tblTempUsageDetail_20' ) end [2025-04-06 10:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:11:22] Production.INFO: ==10884== Releasing lock... [2025-04-06 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:12:06 [end_date_ymd] => 2025-04-06 10:12:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:12:06' and `end` < '2025-04-06 10: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-04-06 10:12:18] Production.INFO: count ==148 [2025-04-06 10:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:12:06 - End Time 2025-04-06 10:12:06 [2025-04-06 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846829', 'tblTempUsageDetail_20' ) start [2025-04-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846829', 'tblTempUsageDetail_20' ) end [2025-04-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846829', 'tblTempVendorCDR_20' ) start [2025-04-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846829', 'tblTempVendorCDR_20' ) end [2025-04-06 10:12:18] Production.INFO: ProcessCDR(1,14846829,1,1,2) [2025-04-06 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846829', 'tblTempUsageDetail_20' ) start [2025-04-06 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846829', 'tblTempUsageDetail_20' ) end [2025-04-06 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:12:23] Production.INFO: ==10962== Releasing lock... [2025-04-06 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:12:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:13:05 [end_date_ymd] => 2025-04-06 10:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:13:05' and `end` < '2025-04-06 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-04-06 10:13:18] Production.INFO: count ==149 [2025-04-06 10:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:13:05 - End Time 2025-04-06 10:13:05 [2025-04-06 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846834', 'tblTempUsageDetail_20' ) start [2025-04-06 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846834', 'tblTempUsageDetail_20' ) end [2025-04-06 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846834', 'tblTempVendorCDR_20' ) start [2025-04-06 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846834', 'tblTempVendorCDR_20' ) end [2025-04-06 10:13:18] Production.INFO: ProcessCDR(1,14846834,1,1,2) [2025-04-06 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846834', 'tblTempUsageDetail_20' ) start [2025-04-06 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846834', 'tblTempUsageDetail_20' ) end [2025-04-06 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:13:23] Production.INFO: ==11033== Releasing lock... [2025-04-06 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:13:23] Production.INFO: 29 MB #Memory Used# [2025-04-06 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:14:06 [end_date_ymd] => 2025-04-06 10:14:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:14:06' and `end` < '2025-04-06 10: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-04-06 10:14:18] Production.INFO: count ==148 [2025-04-06 10:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:14:06 - End Time 2025-04-06 10:14:06 [2025-04-06 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846839', 'tblTempUsageDetail_20' ) start [2025-04-06 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846839', 'tblTempUsageDetail_20' ) end [2025-04-06 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846839', 'tblTempVendorCDR_20' ) start [2025-04-06 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846839', 'tblTempVendorCDR_20' ) end [2025-04-06 10:14:18] Production.INFO: ProcessCDR(1,14846839,1,1,2) [2025-04-06 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846839', 'tblTempUsageDetail_20' ) start [2025-04-06 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846839', 'tblTempUsageDetail_20' ) end [2025-04-06 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:14:22] Production.INFO: ==11109== Releasing lock... [2025-04-06 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:15:05 [end_date_ymd] => 2025-04-06 10:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:15:05' and `end` < '2025-04-06 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-04-06 10:15:17] Production.INFO: count ==157 [2025-04-06 10:15:17] Production.ERROR: pbx CDR StartTime 2025-04-06 07:15:05 - End Time 2025-04-06 10:15:05 [2025-04-06 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846844', 'tblTempUsageDetail_20' ) start [2025-04-06 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846844', 'tblTempUsageDetail_20' ) end [2025-04-06 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846844', 'tblTempVendorCDR_20' ) start [2025-04-06 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846844', 'tblTempVendorCDR_20' ) end [2025-04-06 10:15:17] Production.INFO: ProcessCDR(1,14846844,1,1,2) [2025-04-06 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846844', 'tblTempUsageDetail_20' ) start [2025-04-06 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846844', 'tblTempUsageDetail_20' ) end [2025-04-06 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:15:23] Production.INFO: ==11228== Releasing lock... [2025-04-06 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:16:06 [end_date_ymd] => 2025-04-06 10:16:06 [RateCDR] => 1 ) [2025-04-06 10:16: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-04-06 07:16:06' and `end` < '2025-04-06 10:16: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-04-06 10:16:18] Production.INFO: count ==166 [2025-04-06 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:16:06 - End Time 2025-04-06 10:16:06 [2025-04-06 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846849', 'tblTempUsageDetail_20' ) start [2025-04-06 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846849', 'tblTempUsageDetail_20' ) end [2025-04-06 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846849', 'tblTempVendorCDR_20' ) start [2025-04-06 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846849', 'tblTempVendorCDR_20' ) end [2025-04-06 10:16:18] Production.INFO: ProcessCDR(1,14846849,1,1,2) [2025-04-06 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846849', 'tblTempUsageDetail_20' ) start [2025-04-06 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846849', 'tblTempUsageDetail_20' ) end [2025-04-06 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:16:22] Production.INFO: ==11311== Releasing lock... [2025-04-06 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:17:05 [end_date_ymd] => 2025-04-06 10:17:05 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:17:05' and `end` < '2025-04-06 10: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-04-06 10:17:17] Production.INFO: count ==170 [2025-04-06 10:17:17] Production.ERROR: pbx CDR StartTime 2025-04-06 07:17:05 - End Time 2025-04-06 10:17:05 [2025-04-06 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846854', 'tblTempUsageDetail_20' ) start [2025-04-06 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846854', 'tblTempUsageDetail_20' ) end [2025-04-06 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846854', 'tblTempVendorCDR_20' ) start [2025-04-06 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846854', 'tblTempVendorCDR_20' ) end [2025-04-06 10:17:17] Production.INFO: ProcessCDR(1,14846854,1,1,2) [2025-04-06 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846854', 'tblTempUsageDetail_20' ) start [2025-04-06 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846854', 'tblTempUsageDetail_20' ) end [2025-04-06 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:17:21] Production.INFO: ==11381== Releasing lock... [2025-04-06 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:18:05 [end_date_ymd] => 2025-04-06 10:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:18:05' and `end` < '2025-04-06 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-04-06 10:18:17] Production.INFO: count ==170 [2025-04-06 10:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:18:05 - End Time 2025-04-06 10:18:05 [2025-04-06 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846859', 'tblTempUsageDetail_20' ) start [2025-04-06 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846859', 'tblTempUsageDetail_20' ) end [2025-04-06 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846859', 'tblTempVendorCDR_20' ) start [2025-04-06 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846859', 'tblTempVendorCDR_20' ) end [2025-04-06 10:18:18] Production.INFO: ProcessCDR(1,14846859,1,1,2) [2025-04-06 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846859', 'tblTempUsageDetail_20' ) start [2025-04-06 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846859', 'tblTempUsageDetail_20' ) end [2025-04-06 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:18:21] Production.INFO: ==11462== Releasing lock... [2025-04-06 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:19:05 [end_date_ymd] => 2025-04-06 10:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:19:05' and `end` < '2025-04-06 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-04-06 10:19:18] Production.INFO: count ==174 [2025-04-06 10:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:19:05 - End Time 2025-04-06 10:19:05 [2025-04-06 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846864', 'tblTempUsageDetail_20' ) start [2025-04-06 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846864', 'tblTempUsageDetail_20' ) end [2025-04-06 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846864', 'tblTempVendorCDR_20' ) start [2025-04-06 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846864', 'tblTempVendorCDR_20' ) end [2025-04-06 10:19:18] Production.INFO: ProcessCDR(1,14846864,1,1,2) [2025-04-06 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846864', 'tblTempUsageDetail_20' ) start [2025-04-06 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846864', 'tblTempUsageDetail_20' ) end [2025-04-06 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:19:21] Production.INFO: ==11547== Releasing lock... [2025-04-06 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:20:06 [end_date_ymd] => 2025-04-06 10:20:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:20:06' and `end` < '2025-04-06 10: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-04-06 10:20:18] Production.INFO: count ==186 [2025-04-06 10:20:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:20:06 - End Time 2025-04-06 10:20:06 [2025-04-06 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846870', 'tblTempUsageDetail_20' ) start [2025-04-06 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846870', 'tblTempUsageDetail_20' ) end [2025-04-06 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846870', 'tblTempVendorCDR_20' ) start [2025-04-06 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846870', 'tblTempVendorCDR_20' ) end [2025-04-06 10:20:18] Production.INFO: ProcessCDR(1,14846870,1,1,2) [2025-04-06 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846870', 'tblTempUsageDetail_20' ) start [2025-04-06 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846870', 'tblTempUsageDetail_20' ) end [2025-04-06 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:20:22] Production.INFO: ==11621== Releasing lock... [2025-04-06 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:21:06 [end_date_ymd] => 2025-04-06 10:21:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:21:06' and `end` < '2025-04-06 10: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-04-06 10:21:18] Production.INFO: count ==201 [2025-04-06 10:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:21:06 - End Time 2025-04-06 10:21:06 [2025-04-06 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846875', 'tblTempUsageDetail_20' ) start [2025-04-06 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846875', 'tblTempUsageDetail_20' ) end [2025-04-06 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846875', 'tblTempVendorCDR_20' ) start [2025-04-06 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846875', 'tblTempVendorCDR_20' ) end [2025-04-06 10:21:18] Production.INFO: ProcessCDR(1,14846875,1,1,2) [2025-04-06 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846875', 'tblTempUsageDetail_20' ) start [2025-04-06 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846875', 'tblTempUsageDetail_20' ) end [2025-04-06 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:21:23] Production.INFO: ==11705== Releasing lock... [2025-04-06 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:22:05 [end_date_ymd] => 2025-04-06 10:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:22:05' and `end` < '2025-04-06 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-04-06 10:22:18] Production.INFO: count ==201 [2025-04-06 10:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:22:05 - End Time 2025-04-06 10:22:05 [2025-04-06 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846880', 'tblTempUsageDetail_20' ) start [2025-04-06 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846880', 'tblTempUsageDetail_20' ) end [2025-04-06 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846880', 'tblTempVendorCDR_20' ) start [2025-04-06 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846880', 'tblTempVendorCDR_20' ) end [2025-04-06 10:22:18] Production.INFO: ProcessCDR(1,14846880,1,1,2) [2025-04-06 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846880', 'tblTempUsageDetail_20' ) start [2025-04-06 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846880', 'tblTempUsageDetail_20' ) end [2025-04-06 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:22:21] Production.INFO: ==11778== Releasing lock... [2025-04-06 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:23:06 [end_date_ymd] => 2025-04-06 10:23:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:23:06' and `end` < '2025-04-06 10: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-04-06 10:23:19] Production.INFO: count ==201 [2025-04-06 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:23:06 - End Time 2025-04-06 10:23:06 [2025-04-06 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846885', 'tblTempUsageDetail_20' ) start [2025-04-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846885', 'tblTempUsageDetail_20' ) end [2025-04-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846885', 'tblTempVendorCDR_20' ) start [2025-04-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846885', 'tblTempVendorCDR_20' ) end [2025-04-06 10:23:19] Production.INFO: ProcessCDR(1,14846885,1,1,2) [2025-04-06 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846885', 'tblTempUsageDetail_20' ) start [2025-04-06 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846885', 'tblTempUsageDetail_20' ) end [2025-04-06 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:23:22] Production.INFO: ==11854== Releasing lock... [2025-04-06 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:24:05 [end_date_ymd] => 2025-04-06 10:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:24:05' and `end` < '2025-04-06 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-04-06 10:24:18] Production.INFO: count ==203 [2025-04-06 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:24:05 - End Time 2025-04-06 10:24:05 [2025-04-06 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846890', 'tblTempUsageDetail_20' ) start [2025-04-06 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846890', 'tblTempUsageDetail_20' ) end [2025-04-06 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846890', 'tblTempVendorCDR_20' ) start [2025-04-06 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846890', 'tblTempVendorCDR_20' ) end [2025-04-06 10:24:18] Production.INFO: ProcessCDR(1,14846890,1,1,2) [2025-04-06 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846890', 'tblTempUsageDetail_20' ) start [2025-04-06 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846890', 'tblTempUsageDetail_20' ) end [2025-04-06 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:24:23] Production.INFO: ==11930== Releasing lock... [2025-04-06 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:24:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:25:06 [end_date_ymd] => 2025-04-06 10:25:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:25:06' and `end` < '2025-04-06 10: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-04-06 10:25:19] Production.INFO: count ==203 [2025-04-06 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:25:06 - End Time 2025-04-06 10:25:06 [2025-04-06 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846895', 'tblTempUsageDetail_20' ) start [2025-04-06 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846895', 'tblTempUsageDetail_20' ) end [2025-04-06 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846895', 'tblTempVendorCDR_20' ) start [2025-04-06 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846895', 'tblTempVendorCDR_20' ) end [2025-04-06 10:25:19] Production.INFO: ProcessCDR(1,14846895,1,1,2) [2025-04-06 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846895', 'tblTempUsageDetail_20' ) start [2025-04-06 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846895', 'tblTempUsageDetail_20' ) end [2025-04-06 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:25:22] Production.INFO: ==12018== Releasing lock... [2025-04-06 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-06 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:26:05 [end_date_ymd] => 2025-04-06 10:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:26:05' and `end` < '2025-04-06 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-04-06 10:26:18] Production.INFO: count ==204 [2025-04-06 10:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:26:05 - End Time 2025-04-06 10:26:05 [2025-04-06 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846900', 'tblTempUsageDetail_20' ) start [2025-04-06 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846900', 'tblTempUsageDetail_20' ) end [2025-04-06 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846900', 'tblTempVendorCDR_20' ) start [2025-04-06 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846900', 'tblTempVendorCDR_20' ) end [2025-04-06 10:26:18] Production.INFO: ProcessCDR(1,14846900,1,1,2) [2025-04-06 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846900', 'tblTempUsageDetail_20' ) start [2025-04-06 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846900', 'tblTempUsageDetail_20' ) end [2025-04-06 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:26:22] Production.INFO: ==12094== Releasing lock... [2025-04-06 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:27:06 [end_date_ymd] => 2025-04-06 10:27:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:27:06' and `end` < '2025-04-06 10: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-04-06 10:27:19] Production.INFO: count ==203 [2025-04-06 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:27:06 - End Time 2025-04-06 10:27:06 [2025-04-06 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846905', 'tblTempUsageDetail_20' ) start [2025-04-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846905', 'tblTempUsageDetail_20' ) end [2025-04-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846905', 'tblTempVendorCDR_20' ) start [2025-04-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846905', 'tblTempVendorCDR_20' ) end [2025-04-06 10:27:19] Production.INFO: ProcessCDR(1,14846905,1,1,2) [2025-04-06 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846905', 'tblTempUsageDetail_20' ) start [2025-04-06 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846905', 'tblTempUsageDetail_20' ) end [2025-04-06 10:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:27:22] Production.INFO: ==12172== Releasing lock... [2025-04-06 10:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:28:05 [end_date_ymd] => 2025-04-06 10:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:28:05' and `end` < '2025-04-06 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-04-06 10:28:18] Production.INFO: count ==203 [2025-04-06 10:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:28:05 - End Time 2025-04-06 10:28:05 [2025-04-06 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846910', 'tblTempUsageDetail_20' ) start [2025-04-06 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846910', 'tblTempUsageDetail_20' ) end [2025-04-06 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846910', 'tblTempVendorCDR_20' ) start [2025-04-06 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846910', 'tblTempVendorCDR_20' ) end [2025-04-06 10:28:18] Production.INFO: ProcessCDR(1,14846910,1,1,2) [2025-04-06 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846910', 'tblTempUsageDetail_20' ) start [2025-04-06 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846910', 'tblTempUsageDetail_20' ) end [2025-04-06 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:28:21] Production.INFO: ==12246== Releasing lock... [2025-04-06 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-06 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:29:05 [end_date_ymd] => 2025-04-06 10:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:29:05' and `end` < '2025-04-06 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-04-06 10:29:18] Production.INFO: count ==205 [2025-04-06 10:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:29:05 - End Time 2025-04-06 10:29:05 [2025-04-06 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846915', 'tblTempUsageDetail_20' ) start [2025-04-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846915', 'tblTempUsageDetail_20' ) end [2025-04-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846915', 'tblTempVendorCDR_20' ) start [2025-04-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846915', 'tblTempVendorCDR_20' ) end [2025-04-06 10:29:18] Production.INFO: ProcessCDR(1,14846915,1,1,2) [2025-04-06 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846915', 'tblTempUsageDetail_20' ) start [2025-04-06 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846915', 'tblTempUsageDetail_20' ) end [2025-04-06 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:29:21] Production.INFO: ==12320== Releasing lock... [2025-04-06 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-06 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:30:06 [end_date_ymd] => 2025-04-06 10:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:30:06' and `end` < '2025-04-06 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-04-06 10:30:19] Production.INFO: count ==218 [2025-04-06 10:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:30:06 - End Time 2025-04-06 10:30:06 [2025-04-06 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846921', 'tblTempUsageDetail_20' ) start [2025-04-06 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846921', 'tblTempUsageDetail_20' ) end [2025-04-06 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846921', 'tblTempVendorCDR_20' ) start [2025-04-06 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846921', 'tblTempVendorCDR_20' ) end [2025-04-06 10:30:19] Production.INFO: ProcessCDR(1,14846921,1,1,2) [2025-04-06 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846921', 'tblTempUsageDetail_20' ) start [2025-04-06 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846921', 'tblTempUsageDetail_20' ) end [2025-04-06 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:30:22] Production.INFO: ==12441== Releasing lock... [2025-04-06 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-06 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:31:06 [end_date_ymd] => 2025-04-06 10:31:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:31:06' and `end` < '2025-04-06 10: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-04-06 10:31:18] Production.INFO: count ==248 [2025-04-06 10:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:31:06 - End Time 2025-04-06 10:31:06 [2025-04-06 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846926', 'tblTempUsageDetail_20' ) start [2025-04-06 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846926', 'tblTempUsageDetail_20' ) end [2025-04-06 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846926', 'tblTempVendorCDR_20' ) start [2025-04-06 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846926', 'tblTempVendorCDR_20' ) end [2025-04-06 10:31:18] Production.INFO: ProcessCDR(1,14846926,1,1,2) [2025-04-06 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846926', 'tblTempUsageDetail_20' ) start [2025-04-06 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846926', 'tblTempUsageDetail_20' ) end [2025-04-06 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:31:23] Production.INFO: ==12517== Releasing lock... [2025-04-06 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:32:05 [end_date_ymd] => 2025-04-06 10:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:32:05' and `end` < '2025-04-06 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-04-06 10:32:18] Production.INFO: count ==257 [2025-04-06 10:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:32:05 - End Time 2025-04-06 10:32:05 [2025-04-06 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846931', 'tblTempUsageDetail_20' ) start [2025-04-06 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846931', 'tblTempUsageDetail_20' ) end [2025-04-06 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846931', 'tblTempVendorCDR_20' ) start [2025-04-06 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846931', 'tblTempVendorCDR_20' ) end [2025-04-06 10:32:18] Production.INFO: ProcessCDR(1,14846931,1,1,2) [2025-04-06 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846931', 'tblTempUsageDetail_20' ) start [2025-04-06 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846931', 'tblTempUsageDetail_20' ) end [2025-04-06 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:32:21] Production.INFO: ==12588== Releasing lock... [2025-04-06 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:32:21] Production.INFO: 30 MB #Memory Used# [2025-04-06 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:33:05 [end_date_ymd] => 2025-04-06 10:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:33:05' and `end` < '2025-04-06 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-04-06 10:33:18] Production.INFO: count ==262 [2025-04-06 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:33:05 - End Time 2025-04-06 10:33:05 [2025-04-06 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846936', 'tblTempUsageDetail_20' ) start [2025-04-06 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846936', 'tblTempUsageDetail_20' ) end [2025-04-06 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846936', 'tblTempVendorCDR_20' ) start [2025-04-06 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846936', 'tblTempVendorCDR_20' ) end [2025-04-06 10:33:18] Production.INFO: ProcessCDR(1,14846936,1,1,2) [2025-04-06 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846936', 'tblTempUsageDetail_20' ) start [2025-04-06 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846936', 'tblTempUsageDetail_20' ) end [2025-04-06 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:33:21] Production.INFO: ==12662== Releasing lock... [2025-04-06 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:34:05 [end_date_ymd] => 2025-04-06 10:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:34:05' and `end` < '2025-04-06 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-04-06 10:34:17] Production.INFO: count ==262 [2025-04-06 10:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:34:05 - End Time 2025-04-06 10:34:05 [2025-04-06 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846940', 'tblTempUsageDetail_20' ) start [2025-04-06 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846940', 'tblTempUsageDetail_20' ) end [2025-04-06 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846940', 'tblTempVendorCDR_20' ) start [2025-04-06 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846940', 'tblTempVendorCDR_20' ) end [2025-04-06 10:34:18] Production.INFO: ProcessCDR(1,14846940,1,1,2) [2025-04-06 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846940', 'tblTempUsageDetail_20' ) start [2025-04-06 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846940', 'tblTempUsageDetail_20' ) end [2025-04-06 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:34:21] Production.INFO: ==12734== Releasing lock... [2025-04-06 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:35:06 [end_date_ymd] => 2025-04-06 10:35:06 [RateCDR] => 1 ) [2025-04-06 10:35: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-04-06 07:35:06' and `end` < '2025-04-06 10:35: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-04-06 10:35:18] Production.INFO: count ==277 [2025-04-06 10:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:35:06 - End Time 2025-04-06 10:35:06 [2025-04-06 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846946', 'tblTempUsageDetail_20' ) start [2025-04-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846946', 'tblTempUsageDetail_20' ) end [2025-04-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846946', 'tblTempVendorCDR_20' ) start [2025-04-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846946', 'tblTempVendorCDR_20' ) end [2025-04-06 10:35:19] Production.INFO: ProcessCDR(1,14846946,1,1,2) [2025-04-06 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846946', 'tblTempUsageDetail_20' ) start [2025-04-06 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846946', 'tblTempUsageDetail_20' ) end [2025-04-06 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:35:22] Production.INFO: ==12806== Releasing lock... [2025-04-06 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:36:06 [end_date_ymd] => 2025-04-06 10:36:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:36:06' and `end` < '2025-04-06 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-04-06 10:36:19] Production.INFO: count ==282 [2025-04-06 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:36:06 - End Time 2025-04-06 10:36:06 [2025-04-06 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846951', 'tblTempUsageDetail_20' ) start [2025-04-06 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846951', 'tblTempUsageDetail_20' ) end [2025-04-06 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846951', 'tblTempVendorCDR_20' ) start [2025-04-06 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846951', 'tblTempVendorCDR_20' ) end [2025-04-06 10:36:19] Production.INFO: ProcessCDR(1,14846951,1,1,2) [2025-04-06 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846951', 'tblTempUsageDetail_20' ) start [2025-04-06 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846951', 'tblTempUsageDetail_20' ) end [2025-04-06 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:36:22] Production.INFO: ==12879== Releasing lock... [2025-04-06 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:37:05 [end_date_ymd] => 2025-04-06 10:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:37:05' and `end` < '2025-04-06 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-04-06 10:37:18] Production.INFO: count ==292 [2025-04-06 10:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:37:05 - End Time 2025-04-06 10:37:05 [2025-04-06 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846954', 'tblTempUsageDetail_20' ) start [2025-04-06 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846954', 'tblTempUsageDetail_20' ) end [2025-04-06 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846954', 'tblTempVendorCDR_20' ) start [2025-04-06 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846954', 'tblTempVendorCDR_20' ) end [2025-04-06 10:37:18] Production.INFO: ProcessCDR(1,14846954,1,1,2) [2025-04-06 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846954', 'tblTempUsageDetail_20' ) start [2025-04-06 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846954', 'tblTempUsageDetail_20' ) end [2025-04-06 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:37:21] Production.INFO: ==12950== Releasing lock... [2025-04-06 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:38:05 [end_date_ymd] => 2025-04-06 10:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:38:05' and `end` < '2025-04-06 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-04-06 10:38:18] Production.INFO: count ==297 [2025-04-06 10:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:38:05 - End Time 2025-04-06 10:38:05 [2025-04-06 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846961', 'tblTempUsageDetail_20' ) start [2025-04-06 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846961', 'tblTempUsageDetail_20' ) end [2025-04-06 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846961', 'tblTempVendorCDR_20' ) start [2025-04-06 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846961', 'tblTempVendorCDR_20' ) end [2025-04-06 10:38:18] Production.INFO: ProcessCDR(1,14846961,1,1,2) [2025-04-06 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846961', 'tblTempUsageDetail_20' ) start [2025-04-06 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846961', 'tblTempUsageDetail_20' ) end [2025-04-06 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:38:21] Production.INFO: ==13022== Releasing lock... [2025-04-06 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:39:05 [end_date_ymd] => 2025-04-06 10:39:05 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:39:05' and `end` < '2025-04-06 10: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-04-06 10:39:18] Production.INFO: count ==298 [2025-04-06 10:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:39:05 - End Time 2025-04-06 10:39:05 [2025-04-06 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846966', 'tblTempUsageDetail_20' ) start [2025-04-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846966', 'tblTempUsageDetail_20' ) end [2025-04-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846966', 'tblTempVendorCDR_20' ) start [2025-04-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846966', 'tblTempVendorCDR_20' ) end [2025-04-06 10:39:18] Production.INFO: ProcessCDR(1,14846966,1,1,2) [2025-04-06 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846966', 'tblTempUsageDetail_20' ) start [2025-04-06 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846966', 'tblTempUsageDetail_20' ) end [2025-04-06 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:39:23] Production.INFO: ==13120== Releasing lock... [2025-04-06 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:39:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:40:05 [end_date_ymd] => 2025-04-06 10:40:05 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:40:05' and `end` < '2025-04-06 10: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-04-06 10:40:18] Production.INFO: count ==298 [2025-04-06 10:40:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:40:05 - End Time 2025-04-06 10:40:05 [2025-04-06 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846972', 'tblTempUsageDetail_20' ) start [2025-04-06 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846972', 'tblTempUsageDetail_20' ) end [2025-04-06 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846972', 'tblTempVendorCDR_20' ) start [2025-04-06 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846972', 'tblTempVendorCDR_20' ) end [2025-04-06 10:40:18] Production.INFO: ProcessCDR(1,14846972,1,1,2) [2025-04-06 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846972', 'tblTempUsageDetail_20' ) start [2025-04-06 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846972', 'tblTempUsageDetail_20' ) end [2025-04-06 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:40:22] Production.INFO: ==13218== Releasing lock... [2025-04-06 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:41:05 [end_date_ymd] => 2025-04-06 10:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:41:05' and `end` < '2025-04-06 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-04-06 10:41:18] Production.INFO: count ==300 [2025-04-06 10:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:41:05 - End Time 2025-04-06 10:41:05 [2025-04-06 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846977', 'tblTempUsageDetail_20' ) start [2025-04-06 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846977', 'tblTempUsageDetail_20' ) end [2025-04-06 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846977', 'tblTempVendorCDR_20' ) start [2025-04-06 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846977', 'tblTempVendorCDR_20' ) end [2025-04-06 10:41:18] Production.INFO: ProcessCDR(1,14846977,1,1,2) [2025-04-06 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846977', 'tblTempUsageDetail_20' ) start [2025-04-06 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846977', 'tblTempUsageDetail_20' ) end [2025-04-06 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:41:21] Production.INFO: ==13321== Releasing lock... [2025-04-06 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-06 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:42:06 [end_date_ymd] => 2025-04-06 10:42:06 [RateCDR] => 1 ) [2025-04-06 10:42: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-04-06 07:42:06' and `end` < '2025-04-06 10:42: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-04-06 10:42:19] Production.INFO: count ==299 [2025-04-06 10:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:42:06 - End Time 2025-04-06 10:42:06 [2025-04-06 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846982', 'tblTempUsageDetail_20' ) start [2025-04-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846982', 'tblTempUsageDetail_20' ) end [2025-04-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846982', 'tblTempVendorCDR_20' ) start [2025-04-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846982', 'tblTempVendorCDR_20' ) end [2025-04-06 10:42:19] Production.INFO: ProcessCDR(1,14846982,1,1,2) [2025-04-06 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846982', 'tblTempUsageDetail_20' ) start [2025-04-06 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846982', 'tblTempUsageDetail_20' ) end [2025-04-06 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:42:22] Production.INFO: ==13427== Releasing lock... [2025-04-06 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:43:05 [end_date_ymd] => 2025-04-06 10:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:43:05' and `end` < '2025-04-06 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-04-06 10:43:18] Production.INFO: count ==299 [2025-04-06 10:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:43:05 - End Time 2025-04-06 10:43:05 [2025-04-06 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846987', 'tblTempUsageDetail_20' ) start [2025-04-06 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846987', 'tblTempUsageDetail_20' ) end [2025-04-06 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846987', 'tblTempVendorCDR_20' ) start [2025-04-06 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846987', 'tblTempVendorCDR_20' ) end [2025-04-06 10:43:18] Production.INFO: ProcessCDR(1,14846987,1,1,2) [2025-04-06 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846987', 'tblTempUsageDetail_20' ) start [2025-04-06 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846987', 'tblTempUsageDetail_20' ) end [2025-04-06 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:43:21] Production.INFO: ==13528== Releasing lock... [2025-04-06 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:44:06 [end_date_ymd] => 2025-04-06 10:44:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:44:06' and `end` < '2025-04-06 10: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-04-06 10:44:19] Production.INFO: count ==301 [2025-04-06 10:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:44:06 - End Time 2025-04-06 10:44:06 [2025-04-06 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846992', 'tblTempUsageDetail_20' ) start [2025-04-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846992', 'tblTempUsageDetail_20' ) end [2025-04-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846992', 'tblTempVendorCDR_20' ) start [2025-04-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846992', 'tblTempVendorCDR_20' ) end [2025-04-06 10:44:19] Production.INFO: ProcessCDR(1,14846992,1,1,2) [2025-04-06 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846992', 'tblTempUsageDetail_20' ) start [2025-04-06 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846992', 'tblTempUsageDetail_20' ) end [2025-04-06 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:44:22] Production.INFO: ==13631== Releasing lock... [2025-04-06 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:45:05 [end_date_ymd] => 2025-04-06 10:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:45:05' and `end` < '2025-04-06 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-04-06 10:45:18] Production.INFO: count ==301 [2025-04-06 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:45:05 - End Time 2025-04-06 10:45:05 [2025-04-06 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846997', 'tblTempUsageDetail_20' ) start [2025-04-06 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14846997', 'tblTempUsageDetail_20' ) end [2025-04-06 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846997', 'tblTempVendorCDR_20' ) start [2025-04-06 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14846997', 'tblTempVendorCDR_20' ) end [2025-04-06 10:45:18] Production.INFO: ProcessCDR(1,14846997,1,1,2) [2025-04-06 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14846997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14846997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14846997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14846997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846997', 'tblTempUsageDetail_20' ) start [2025-04-06 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14846997', 'tblTempUsageDetail_20' ) end [2025-04-06 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:45:22] Production.INFO: ==13736== Releasing lock... [2025-04-06 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:46:05 [end_date_ymd] => 2025-04-06 10:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:46:05' and `end` < '2025-04-06 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-04-06 10:46:18] Production.INFO: count ==301 [2025-04-06 10:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:46:05 - End Time 2025-04-06 10:46:05 [2025-04-06 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847002', 'tblTempUsageDetail_20' ) start [2025-04-06 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847002', 'tblTempUsageDetail_20' ) end [2025-04-06 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847002', 'tblTempVendorCDR_20' ) start [2025-04-06 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847002', 'tblTempVendorCDR_20' ) end [2025-04-06 10:46:18] Production.INFO: ProcessCDR(1,14847002,1,1,2) [2025-04-06 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847002', 'tblTempUsageDetail_20' ) start [2025-04-06 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847002', 'tblTempUsageDetail_20' ) end [2025-04-06 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:46:22] Production.INFO: ==13873== Releasing lock... [2025-04-06 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-06 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:47:05 [end_date_ymd] => 2025-04-06 10:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:47:05' and `end` < '2025-04-06 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-04-06 10:47:18] Production.INFO: count ==302 [2025-04-06 10:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:47:05 - End Time 2025-04-06 10:47:05 [2025-04-06 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847007', 'tblTempUsageDetail_20' ) start [2025-04-06 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847007', 'tblTempUsageDetail_20' ) end [2025-04-06 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847007', 'tblTempVendorCDR_20' ) start [2025-04-06 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847007', 'tblTempVendorCDR_20' ) end [2025-04-06 10:47:18] Production.INFO: ProcessCDR(1,14847007,1,1,2) [2025-04-06 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847007', 'tblTempUsageDetail_20' ) start [2025-04-06 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847007', 'tblTempUsageDetail_20' ) end [2025-04-06 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:47:22] Production.INFO: ==13977== Releasing lock... [2025-04-06 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:48:06 [end_date_ymd] => 2025-04-06 10:48:06 [RateCDR] => 1 ) [2025-04-06 10:48: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-04-06 07:48:06' and `end` < '2025-04-06 10:48: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-04-06 10:48:18] Production.INFO: count ==308 [2025-04-06 10:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:48:06 - End Time 2025-04-06 10:48:06 [2025-04-06 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847012', 'tblTempUsageDetail_20' ) start [2025-04-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847012', 'tblTempUsageDetail_20' ) end [2025-04-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847012', 'tblTempVendorCDR_20' ) start [2025-04-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847012', 'tblTempVendorCDR_20' ) end [2025-04-06 10:48:19] Production.INFO: ProcessCDR(1,14847012,1,1,2) [2025-04-06 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847012', 'tblTempUsageDetail_20' ) start [2025-04-06 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847012', 'tblTempUsageDetail_20' ) end [2025-04-06 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:48:22] Production.INFO: ==14082== Releasing lock... [2025-04-06 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:49:05 [end_date_ymd] => 2025-04-06 10:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:49:05' and `end` < '2025-04-06 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-04-06 10:49:18] Production.INFO: count ==308 [2025-04-06 10:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:49:05 - End Time 2025-04-06 10:49:05 [2025-04-06 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847017', 'tblTempUsageDetail_20' ) start [2025-04-06 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847017', 'tblTempUsageDetail_20' ) end [2025-04-06 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847017', 'tblTempVendorCDR_20' ) start [2025-04-06 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847017', 'tblTempVendorCDR_20' ) end [2025-04-06 10:49:18] Production.INFO: ProcessCDR(1,14847017,1,1,2) [2025-04-06 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847017', 'tblTempUsageDetail_20' ) start [2025-04-06 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847017', 'tblTempUsageDetail_20' ) end [2025-04-06 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:49:21] Production.INFO: ==14188== Releasing lock... [2025-04-06 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:50:06 [end_date_ymd] => 2025-04-06 10:50:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:50:06' and `end` < '2025-04-06 10: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-04-06 10:50:19] Production.INFO: count ==308 [2025-04-06 10:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:50:06 - End Time 2025-04-06 10:50:06 [2025-04-06 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847022', 'tblTempUsageDetail_20' ) start [2025-04-06 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847022', 'tblTempUsageDetail_20' ) end [2025-04-06 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847022', 'tblTempVendorCDR_20' ) start [2025-04-06 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847022', 'tblTempVendorCDR_20' ) end [2025-04-06 10:50:19] Production.INFO: ProcessCDR(1,14847022,1,1,2) [2025-04-06 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847022', 'tblTempUsageDetail_20' ) start [2025-04-06 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847022', 'tblTempUsageDetail_20' ) end [2025-04-06 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:50:23] Production.INFO: ==14298== Releasing lock... [2025-04-06 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:51:05 [end_date_ymd] => 2025-04-06 10:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:51:05' and `end` < '2025-04-06 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-04-06 10:51:18] Production.INFO: count ==308 [2025-04-06 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:51:05 - End Time 2025-04-06 10:51:05 [2025-04-06 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847028', 'tblTempUsageDetail_20' ) start [2025-04-06 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847028', 'tblTempUsageDetail_20' ) end [2025-04-06 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847028', 'tblTempVendorCDR_20' ) start [2025-04-06 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847028', 'tblTempVendorCDR_20' ) end [2025-04-06 10:51:18] Production.INFO: ProcessCDR(1,14847028,1,1,2) [2025-04-06 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847028', 'tblTempUsageDetail_20' ) start [2025-04-06 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847028', 'tblTempUsageDetail_20' ) end [2025-04-06 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:51:21] Production.INFO: ==14402== Releasing lock... [2025-04-06 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:52:05 [end_date_ymd] => 2025-04-06 10:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:52:05' and `end` < '2025-04-06 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-04-06 10:52:18] Production.INFO: count ==308 [2025-04-06 10:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:52:05 - End Time 2025-04-06 10:52:05 [2025-04-06 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847033', 'tblTempUsageDetail_20' ) start [2025-04-06 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847033', 'tblTempUsageDetail_20' ) end [2025-04-06 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847033', 'tblTempVendorCDR_20' ) start [2025-04-06 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847033', 'tblTempVendorCDR_20' ) end [2025-04-06 10:52:18] Production.INFO: ProcessCDR(1,14847033,1,1,2) [2025-04-06 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847033', 'tblTempUsageDetail_20' ) start [2025-04-06 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847033', 'tblTempUsageDetail_20' ) end [2025-04-06 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:52:22] Production.INFO: ==14504== Releasing lock... [2025-04-06 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:53:04 [end_date_ymd] => 2025-04-06 10:53:04 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:53:04' and `end` < '2025-04-06 10: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-04-06 10:53:17] Production.INFO: count ==308 [2025-04-06 10:53:17] Production.ERROR: pbx CDR StartTime 2025-04-06 07:53:04 - End Time 2025-04-06 10:53:04 [2025-04-06 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847038', 'tblTempUsageDetail_20' ) start [2025-04-06 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847038', 'tblTempUsageDetail_20' ) end [2025-04-06 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847038', 'tblTempVendorCDR_20' ) start [2025-04-06 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847038', 'tblTempVendorCDR_20' ) end [2025-04-06 10:53:17] Production.INFO: ProcessCDR(1,14847038,1,1,2) [2025-04-06 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847038', 'tblTempUsageDetail_20' ) start [2025-04-06 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847038', 'tblTempUsageDetail_20' ) end [2025-04-06 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:53:21] Production.INFO: ==14606== Releasing lock... [2025-04-06 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:54:06 [end_date_ymd] => 2025-04-06 10:54:06 [RateCDR] => 1 ) [2025-04-06 10:54: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-04-06 07:54:06' and `end` < '2025-04-06 10:54: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-04-06 10:54:19] Production.INFO: count ==305 [2025-04-06 10:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:54:06 - End Time 2025-04-06 10:54:06 [2025-04-06 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847043', 'tblTempUsageDetail_20' ) start [2025-04-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847043', 'tblTempUsageDetail_20' ) end [2025-04-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847043', 'tblTempVendorCDR_20' ) start [2025-04-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847043', 'tblTempVendorCDR_20' ) end [2025-04-06 10:54:19] Production.INFO: ProcessCDR(1,14847043,1,1,2) [2025-04-06 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847043', 'tblTempUsageDetail_20' ) start [2025-04-06 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847043', 'tblTempUsageDetail_20' ) end [2025-04-06 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:54:23] Production.INFO: ==14713== Releasing lock... [2025-04-06 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:55:05 [end_date_ymd] => 2025-04-06 10:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:55:05' and `end` < '2025-04-06 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-04-06 10:55:18] Production.INFO: count ==310 [2025-04-06 10:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:55:05 - End Time 2025-04-06 10:55:05 [2025-04-06 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847047', 'tblTempUsageDetail_20' ) start [2025-04-06 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847047', 'tblTempUsageDetail_20' ) end [2025-04-06 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847047', 'tblTempVendorCDR_20' ) start [2025-04-06 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847047', 'tblTempVendorCDR_20' ) end [2025-04-06 10:55:18] Production.INFO: ProcessCDR(1,14847047,1,1,2) [2025-04-06 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847047', 'tblTempUsageDetail_20' ) start [2025-04-06 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847047', 'tblTempUsageDetail_20' ) end [2025-04-06 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:55:21] Production.INFO: ==14816== Releasing lock... [2025-04-06 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:56:05 [end_date_ymd] => 2025-04-06 10:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:56:05' and `end` < '2025-04-06 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-04-06 10:56:18] Production.INFO: count ==315 [2025-04-06 10:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:56:05 - End Time 2025-04-06 10:56:05 [2025-04-06 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847053', 'tblTempUsageDetail_20' ) start [2025-04-06 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847053', 'tblTempUsageDetail_20' ) end [2025-04-06 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847053', 'tblTempVendorCDR_20' ) start [2025-04-06 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847053', 'tblTempVendorCDR_20' ) end [2025-04-06 10:56:18] Production.INFO: ProcessCDR(1,14847053,1,1,2) [2025-04-06 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847053', 'tblTempUsageDetail_20' ) start [2025-04-06 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847053', 'tblTempUsageDetail_20' ) end [2025-04-06 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:56:23] Production.INFO: ==14922== Releasing lock... [2025-04-06 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:56:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:57:05 [end_date_ymd] => 2025-04-06 10:57:05 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:57:05' and `end` < '2025-04-06 10: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-04-06 10:57:18] Production.INFO: count ==316 [2025-04-06 10:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:57:05 - End Time 2025-04-06 10:57:05 [2025-04-06 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847058', 'tblTempUsageDetail_20' ) start [2025-04-06 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847058', 'tblTempUsageDetail_20' ) end [2025-04-06 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847058', 'tblTempVendorCDR_20' ) start [2025-04-06 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847058', 'tblTempVendorCDR_20' ) end [2025-04-06 10:57:18] Production.INFO: ProcessCDR(1,14847058,1,1,2) [2025-04-06 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847058', 'tblTempUsageDetail_20' ) start [2025-04-06 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847058', 'tblTempUsageDetail_20' ) end [2025-04-06 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:57:21] Production.INFO: ==15031== Releasing lock... [2025-04-06 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:57:21] Production.INFO: 31 MB #Memory Used# [2025-04-06 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:58:05 [end_date_ymd] => 2025-04-06 10:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 07:58:05' and `end` < '2025-04-06 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-04-06 10:58:18] Production.INFO: count ==315 [2025-04-06 10:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 07:58:05 - End Time 2025-04-06 10:58:05 [2025-04-06 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847063', 'tblTempUsageDetail_20' ) start [2025-04-06 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847063', 'tblTempUsageDetail_20' ) end [2025-04-06 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847063', 'tblTempVendorCDR_20' ) start [2025-04-06 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847063', 'tblTempVendorCDR_20' ) end [2025-04-06 10:58:18] Production.INFO: ProcessCDR(1,14847063,1,1,2) [2025-04-06 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847063', 'tblTempUsageDetail_20' ) start [2025-04-06 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847063', 'tblTempUsageDetail_20' ) end [2025-04-06 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:58:22] Production.INFO: ==15138== Releasing lock... [2025-04-06 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 07:59:06 [end_date_ymd] => 2025-04-06 10:59:06 [RateCDR] => 1 ) [2025-04-06 10: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-04-06 07:59:06' and `end` < '2025-04-06 10: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-04-06 10:59:19] Production.INFO: count ==315 [2025-04-06 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 07:59:06 - End Time 2025-04-06 10:59:06 [2025-04-06 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847068', 'tblTempUsageDetail_20' ) start [2025-04-06 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847068', 'tblTempUsageDetail_20' ) end [2025-04-06 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847068', 'tblTempVendorCDR_20' ) start [2025-04-06 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847068', 'tblTempVendorCDR_20' ) end [2025-04-06 10:59:19] Production.INFO: ProcessCDR(1,14847068,1,1,2) [2025-04-06 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847068', 'tblTempUsageDetail_20' ) start [2025-04-06 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847068', 'tblTempUsageDetail_20' ) end [2025-04-06 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 10:59:22] Production.INFO: ==15243== Releasing lock... [2025-04-06 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 10:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:00:06 [end_date_ymd] => 2025-04-06 11:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:00:06' and `end` < '2025-04-06 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-04-06 11:00:19] Production.INFO: count ==321 [2025-04-06 11:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:00:06 - End Time 2025-04-06 11:00:06 [2025-04-06 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847074', 'tblTempUsageDetail_20' ) start [2025-04-06 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847074', 'tblTempUsageDetail_20' ) end [2025-04-06 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847074', 'tblTempVendorCDR_20' ) start [2025-04-06 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847074', 'tblTempVendorCDR_20' ) end [2025-04-06 11:00:19] Production.INFO: ProcessCDR(1,14847074,1,1,2) [2025-04-06 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847074', 'tblTempUsageDetail_20' ) start [2025-04-06 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847074', 'tblTempUsageDetail_20' ) end [2025-04-06 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:00:25] Production.INFO: ==15355== Releasing lock... [2025-04-06 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:00:25] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:01:05 [end_date_ymd] => 2025-04-06 11:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:01:05' and `end` < '2025-04-06 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-04-06 11:01:18] Production.INFO: count ==344 [2025-04-06 11:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:01:05 - End Time 2025-04-06 11:01:05 [2025-04-06 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847079', 'tblTempUsageDetail_20' ) start [2025-04-06 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847079', 'tblTempUsageDetail_20' ) end [2025-04-06 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847079', 'tblTempVendorCDR_20' ) start [2025-04-06 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847079', 'tblTempVendorCDR_20' ) end [2025-04-06 11:01:18] Production.INFO: ProcessCDR(1,14847079,1,1,2) [2025-04-06 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847079', 'tblTempUsageDetail_20' ) start [2025-04-06 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847079', 'tblTempUsageDetail_20' ) end [2025-04-06 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:01:23] Production.INFO: ==15560== Releasing lock... [2025-04-06 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:01:23] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:02:05 [end_date_ymd] => 2025-04-06 11:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:02:05' and `end` < '2025-04-06 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-04-06 11:02:18] Production.INFO: count ==348 [2025-04-06 11:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:02:05 - End Time 2025-04-06 11:02:05 [2025-04-06 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847084', 'tblTempUsageDetail_20' ) start [2025-04-06 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847084', 'tblTempUsageDetail_20' ) end [2025-04-06 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847084', 'tblTempVendorCDR_20' ) start [2025-04-06 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847084', 'tblTempVendorCDR_20' ) end [2025-04-06 11:02:18] Production.INFO: ProcessCDR(1,14847084,1,1,2) [2025-04-06 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847084', 'tblTempUsageDetail_20' ) start [2025-04-06 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847084', 'tblTempUsageDetail_20' ) end [2025-04-06 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:02:22] Production.INFO: ==15706== Releasing lock... [2025-04-06 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:02:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:03:06 [end_date_ymd] => 2025-04-06 11:03:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:03:06' and `end` < '2025-04-06 11: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-04-06 11:03:19] Production.INFO: count ==353 [2025-04-06 11:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:03:06 - End Time 2025-04-06 11:03:06 [2025-04-06 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847089', 'tblTempUsageDetail_20' ) start [2025-04-06 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847089', 'tblTempUsageDetail_20' ) end [2025-04-06 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847089', 'tblTempVendorCDR_20' ) start [2025-04-06 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847089', 'tblTempVendorCDR_20' ) end [2025-04-06 11:03:19] Production.INFO: ProcessCDR(1,14847089,1,1,2) [2025-04-06 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847089', 'tblTempUsageDetail_20' ) start [2025-04-06 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847089', 'tblTempUsageDetail_20' ) end [2025-04-06 11:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:03:22] Production.INFO: ==15818== Releasing lock... [2025-04-06 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:04:05 [end_date_ymd] => 2025-04-06 11:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:04:05' and `end` < '2025-04-06 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-04-06 11:04:18] Production.INFO: count ==356 [2025-04-06 11:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:04:05 - End Time 2025-04-06 11:04:05 [2025-04-06 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847094', 'tblTempUsageDetail_20' ) start [2025-04-06 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847094', 'tblTempUsageDetail_20' ) end [2025-04-06 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847094', 'tblTempVendorCDR_20' ) start [2025-04-06 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847094', 'tblTempVendorCDR_20' ) end [2025-04-06 11:04:18] Production.INFO: ProcessCDR(1,14847094,1,1,2) [2025-04-06 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847094', 'tblTempUsageDetail_20' ) start [2025-04-06 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847094', 'tblTempUsageDetail_20' ) end [2025-04-06 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:04:22] Production.INFO: ==15928== Releasing lock... [2025-04-06 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-06 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:05:06 [end_date_ymd] => 2025-04-06 11:05:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:05:06' and `end` < '2025-04-06 11: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-04-06 11:05:19] Production.INFO: count ==362 [2025-04-06 11:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:05:06 - End Time 2025-04-06 11:05:06 [2025-04-06 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847099', 'tblTempUsageDetail_20' ) start [2025-04-06 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847099', 'tblTempUsageDetail_20' ) end [2025-04-06 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847099', 'tblTempVendorCDR_20' ) start [2025-04-06 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847099', 'tblTempVendorCDR_20' ) end [2025-04-06 11:05:19] Production.INFO: ProcessCDR(1,14847099,1,1,2) [2025-04-06 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847099', 'tblTempUsageDetail_20' ) start [2025-04-06 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847099', 'tblTempUsageDetail_20' ) end [2025-04-06 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:05:24] Production.INFO: ==16115== Releasing lock... [2025-04-06 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:05:24] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:06:05 [end_date_ymd] => 2025-04-06 11:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:06:05' and `end` < '2025-04-06 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-04-06 11:06:18] Production.INFO: count ==366 [2025-04-06 11:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:06:05 - End Time 2025-04-06 11:06:05 [2025-04-06 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847104', 'tblTempUsageDetail_20' ) start [2025-04-06 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847104', 'tblTempUsageDetail_20' ) end [2025-04-06 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847104', 'tblTempVendorCDR_20' ) start [2025-04-06 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847104', 'tblTempVendorCDR_20' ) end [2025-04-06 11:06:18] Production.INFO: ProcessCDR(1,14847104,1,1,2) [2025-04-06 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847104', 'tblTempUsageDetail_20' ) start [2025-04-06 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847104', 'tblTempUsageDetail_20' ) end [2025-04-06 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:06:21] Production.INFO: ==16217== Releasing lock... [2025-04-06 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:07:06 [end_date_ymd] => 2025-04-06 11:07:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:07:06' and `end` < '2025-04-06 11:07: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-04-06 11:07:18] Production.INFO: count ==367 [2025-04-06 11:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:07:06 - End Time 2025-04-06 11:07:06 [2025-04-06 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847109', 'tblTempUsageDetail_20' ) start [2025-04-06 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847109', 'tblTempUsageDetail_20' ) end [2025-04-06 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847109', 'tblTempVendorCDR_20' ) start [2025-04-06 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847109', 'tblTempVendorCDR_20' ) end [2025-04-06 11:07:18] Production.INFO: ProcessCDR(1,14847109,1,1,2) [2025-04-06 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847109', 'tblTempUsageDetail_20' ) start [2025-04-06 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847109', 'tblTempUsageDetail_20' ) end [2025-04-06 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:07:23] Production.INFO: ==16323== Releasing lock... [2025-04-06 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:07:23] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:08:05 [end_date_ymd] => 2025-04-06 11:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:08:05' and `end` < '2025-04-06 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-04-06 11:08:18] Production.INFO: count ==367 [2025-04-06 11:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:08:05 - End Time 2025-04-06 11:08:05 [2025-04-06 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847114', 'tblTempUsageDetail_20' ) start [2025-04-06 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847114', 'tblTempUsageDetail_20' ) end [2025-04-06 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847114', 'tblTempVendorCDR_20' ) start [2025-04-06 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847114', 'tblTempVendorCDR_20' ) end [2025-04-06 11:08:18] Production.INFO: ProcessCDR(1,14847114,1,1,2) [2025-04-06 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847114', 'tblTempUsageDetail_20' ) start [2025-04-06 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847114', 'tblTempUsageDetail_20' ) end [2025-04-06 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:08:22] Production.INFO: ==16477== Releasing lock... [2025-04-06 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:08:22] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:09:05 [end_date_ymd] => 2025-04-06 11:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:09:05' and `end` < '2025-04-06 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-04-06 11:09:18] Production.INFO: count ==370 [2025-04-06 11:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:09:05 - End Time 2025-04-06 11:09:05 [2025-04-06 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847119', 'tblTempUsageDetail_20' ) start [2025-04-06 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847119', 'tblTempUsageDetail_20' ) end [2025-04-06 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847119', 'tblTempVendorCDR_20' ) start [2025-04-06 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847119', 'tblTempVendorCDR_20' ) end [2025-04-06 11:09:18] Production.INFO: ProcessCDR(1,14847119,1,1,2) [2025-04-06 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847119', 'tblTempUsageDetail_20' ) start [2025-04-06 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847119', 'tblTempUsageDetail_20' ) end [2025-04-06 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:09:23] Production.INFO: ==16554== Releasing lock... [2025-04-06 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:09:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:10:06 [end_date_ymd] => 2025-04-06 11:10:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:10:06' and `end` < '2025-04-06 11: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-04-06 11:10:19] Production.INFO: count ==372 [2025-04-06 11:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:10:06 - End Time 2025-04-06 11:10:06 [2025-04-06 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847125', 'tblTempUsageDetail_20' ) start [2025-04-06 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847125', 'tblTempUsageDetail_20' ) end [2025-04-06 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847125', 'tblTempVendorCDR_20' ) start [2025-04-06 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847125', 'tblTempVendorCDR_20' ) end [2025-04-06 11:10:19] Production.INFO: ProcessCDR(1,14847125,1,1,2) [2025-04-06 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847125', 'tblTempUsageDetail_20' ) start [2025-04-06 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847125', 'tblTempUsageDetail_20' ) end [2025-04-06 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:10:22] Production.INFO: ==16637== Releasing lock... [2025-04-06 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:11:05 [end_date_ymd] => 2025-04-06 11:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:11:05' and `end` < '2025-04-06 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-04-06 11:11:18] Production.INFO: count ==372 [2025-04-06 11:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:11:05 - End Time 2025-04-06 11:11:05 [2025-04-06 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847130', 'tblTempUsageDetail_20' ) start [2025-04-06 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847130', 'tblTempUsageDetail_20' ) end [2025-04-06 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847130', 'tblTempVendorCDR_20' ) start [2025-04-06 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847130', 'tblTempVendorCDR_20' ) end [2025-04-06 11:11:18] Production.INFO: ProcessCDR(1,14847130,1,1,2) [2025-04-06 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847130', 'tblTempUsageDetail_20' ) start [2025-04-06 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847130', 'tblTempUsageDetail_20' ) end [2025-04-06 11:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:11:21] Production.INFO: ==16713== Releasing lock... [2025-04-06 11:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:12:06 [end_date_ymd] => 2025-04-06 11:12:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:12:06' and `end` < '2025-04-06 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-04-06 11:12:18] Production.INFO: count ==371 [2025-04-06 11:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:12:06 - End Time 2025-04-06 11:12:06 [2025-04-06 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847135', 'tblTempUsageDetail_20' ) start [2025-04-06 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847135', 'tblTempUsageDetail_20' ) end [2025-04-06 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847135', 'tblTempVendorCDR_20' ) start [2025-04-06 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847135', 'tblTempVendorCDR_20' ) end [2025-04-06 11:12:18] Production.INFO: ProcessCDR(1,14847135,1,1,2) [2025-04-06 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847135', 'tblTempUsageDetail_20' ) start [2025-04-06 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847135', 'tblTempUsageDetail_20' ) end [2025-04-06 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:12:22] Production.INFO: ==16867== Releasing lock... [2025-04-06 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:13:05 [end_date_ymd] => 2025-04-06 11:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:13:05' and `end` < '2025-04-06 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-04-06 11:13:18] Production.INFO: count ==371 [2025-04-06 11:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:13:05 - End Time 2025-04-06 11:13:05 [2025-04-06 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847140', 'tblTempUsageDetail_20' ) start [2025-04-06 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847140', 'tblTempUsageDetail_20' ) end [2025-04-06 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847140', 'tblTempVendorCDR_20' ) start [2025-04-06 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847140', 'tblTempVendorCDR_20' ) end [2025-04-06 11:13:18] Production.INFO: ProcessCDR(1,14847140,1,1,2) [2025-04-06 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847140', 'tblTempUsageDetail_20' ) start [2025-04-06 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847140', 'tblTempUsageDetail_20' ) end [2025-04-06 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:13:23] Production.INFO: ==16944== Releasing lock... [2025-04-06 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:13:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:14:06 [end_date_ymd] => 2025-04-06 11:14:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:14:06' and `end` < '2025-04-06 11: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-04-06 11:14:19] Production.INFO: count ==371 [2025-04-06 11:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:14:06 - End Time 2025-04-06 11:14:06 [2025-04-06 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847145', 'tblTempUsageDetail_20' ) start [2025-04-06 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847145', 'tblTempUsageDetail_20' ) end [2025-04-06 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847145', 'tblTempVendorCDR_20' ) start [2025-04-06 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847145', 'tblTempVendorCDR_20' ) end [2025-04-06 11:14:19] Production.INFO: ProcessCDR(1,14847145,1,1,2) [2025-04-06 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847145', 'tblTempUsageDetail_20' ) start [2025-04-06 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847145', 'tblTempUsageDetail_20' ) end [2025-04-06 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:14:22] Production.INFO: ==17021== Releasing lock... [2025-04-06 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:15:04 [end_date_ymd] => 2025-04-06 11:15:04 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:15:04' and `end` < '2025-04-06 11: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-04-06 11:15:17] Production.INFO: count ==366 [2025-04-06 11:15:17] Production.ERROR: pbx CDR StartTime 2025-04-06 08:15:04 - End Time 2025-04-06 11:15:04 [2025-04-06 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847150', 'tblTempUsageDetail_20' ) start [2025-04-06 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847150', 'tblTempUsageDetail_20' ) end [2025-04-06 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847150', 'tblTempVendorCDR_20' ) start [2025-04-06 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847150', 'tblTempVendorCDR_20' ) end [2025-04-06 11:15:17] Production.INFO: ProcessCDR(1,14847150,1,1,2) [2025-04-06 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847150', 'tblTempUsageDetail_20' ) start [2025-04-06 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847150', 'tblTempUsageDetail_20' ) end [2025-04-06 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:15:21] Production.INFO: ==17177== Releasing lock... [2025-04-06 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:16:05 [end_date_ymd] => 2025-04-06 11:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:16:05' and `end` < '2025-04-06 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-04-06 11:16:18] Production.INFO: count ==366 [2025-04-06 11:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:16:05 - End Time 2025-04-06 11:16:05 [2025-04-06 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847155', 'tblTempUsageDetail_20' ) start [2025-04-06 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847155', 'tblTempUsageDetail_20' ) end [2025-04-06 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847155', 'tblTempVendorCDR_20' ) start [2025-04-06 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847155', 'tblTempVendorCDR_20' ) end [2025-04-06 11:16:18] Production.INFO: ProcessCDR(1,14847155,1,1,2) [2025-04-06 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847155', 'tblTempUsageDetail_20' ) start [2025-04-06 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847155', 'tblTempUsageDetail_20' ) end [2025-04-06 11:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:16:21] Production.INFO: ==17295== Releasing lock... [2025-04-06 11:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:17:06 [end_date_ymd] => 2025-04-06 11:17:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:17:06' and `end` < '2025-04-06 11: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-04-06 11:17:19] Production.INFO: count ==367 [2025-04-06 11:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:17:06 - End Time 2025-04-06 11:17:06 [2025-04-06 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847160', 'tblTempUsageDetail_20' ) start [2025-04-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847160', 'tblTempUsageDetail_20' ) end [2025-04-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847160', 'tblTempVendorCDR_20' ) start [2025-04-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847160', 'tblTempVendorCDR_20' ) end [2025-04-06 11:17:19] Production.INFO: ProcessCDR(1,14847160,1,1,2) [2025-04-06 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847160', 'tblTempUsageDetail_20' ) start [2025-04-06 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847160', 'tblTempUsageDetail_20' ) end [2025-04-06 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:17:24] Production.INFO: ==17371== Releasing lock... [2025-04-06 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:17:24] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:18:06 [end_date_ymd] => 2025-04-06 11:18:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:18:06' and `end` < '2025-04-06 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-04-06 11:18:18] Production.INFO: count ==372 [2025-04-06 11:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:18:06 - End Time 2025-04-06 11:18:06 [2025-04-06 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847165', 'tblTempUsageDetail_20' ) start [2025-04-06 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847165', 'tblTempUsageDetail_20' ) end [2025-04-06 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847165', 'tblTempVendorCDR_20' ) start [2025-04-06 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847165', 'tblTempVendorCDR_20' ) end [2025-04-06 11:18:18] Production.INFO: ProcessCDR(1,14847165,1,1,2) [2025-04-06 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847165', 'tblTempUsageDetail_20' ) start [2025-04-06 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847165', 'tblTempUsageDetail_20' ) end [2025-04-06 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:18:23] Production.INFO: ==17447== Releasing lock... [2025-04-06 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:18:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:19:06 [end_date_ymd] => 2025-04-06 11:19:06 [RateCDR] => 1 ) [2025-04-06 11:19: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-04-06 08:19:06' and `end` < '2025-04-06 11:19: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-04-06 11:19:18] Production.INFO: count ==375 [2025-04-06 11:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:19:06 - End Time 2025-04-06 11:19:06 [2025-04-06 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847170', 'tblTempUsageDetail_20' ) start [2025-04-06 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847170', 'tblTempUsageDetail_20' ) end [2025-04-06 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847170', 'tblTempVendorCDR_20' ) start [2025-04-06 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847170', 'tblTempVendorCDR_20' ) end [2025-04-06 11:19:18] Production.INFO: ProcessCDR(1,14847170,1,1,2) [2025-04-06 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847170', 'tblTempUsageDetail_20' ) start [2025-04-06 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847170', 'tblTempUsageDetail_20' ) end [2025-04-06 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:19:22] Production.INFO: ==17529== Releasing lock... [2025-04-06 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-06 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:20:05 [end_date_ymd] => 2025-04-06 11:20:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:20:05' and `end` < '2025-04-06 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-04-06 11:20:18] Production.INFO: count ==386 [2025-04-06 11:20:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:20:05 - End Time 2025-04-06 11:20:05 [2025-04-06 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847176', 'tblTempUsageDetail_20' ) start [2025-04-06 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847176', 'tblTempUsageDetail_20' ) end [2025-04-06 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847176', 'tblTempVendorCDR_20' ) start [2025-04-06 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847176', 'tblTempVendorCDR_20' ) end [2025-04-06 11:20:18] Production.INFO: ProcessCDR(1,14847176,1,1,2) [2025-04-06 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847176', 'tblTempUsageDetail_20' ) start [2025-04-06 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847176', 'tblTempUsageDetail_20' ) end [2025-04-06 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:20:24] Production.INFO: ==17605== Releasing lock... [2025-04-06 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:20:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:21:06 [end_date_ymd] => 2025-04-06 11:21:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:21:06' and `end` < '2025-04-06 11: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-04-06 11:21:18] Production.INFO: count ==409 [2025-04-06 11:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:21:06 - End Time 2025-04-06 11:21:06 [2025-04-06 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847181', 'tblTempUsageDetail_20' ) start [2025-04-06 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847181', 'tblTempUsageDetail_20' ) end [2025-04-06 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847181', 'tblTempVendorCDR_20' ) start [2025-04-06 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847181', 'tblTempVendorCDR_20' ) end [2025-04-06 11:21:19] Production.INFO: ProcessCDR(1,14847181,1,1,2) [2025-04-06 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847181', 'tblTempUsageDetail_20' ) start [2025-04-06 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847181', 'tblTempUsageDetail_20' ) end [2025-04-06 11:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:21:24] Production.INFO: ==17688== Releasing lock... [2025-04-06 11:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:21:24] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:22:05 [end_date_ymd] => 2025-04-06 11:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:22:05' and `end` < '2025-04-06 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-04-06 11:22:18] Production.INFO: count ==409 [2025-04-06 11:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:22:05 - End Time 2025-04-06 11:22:05 [2025-04-06 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847186', 'tblTempUsageDetail_20' ) start [2025-04-06 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847186', 'tblTempUsageDetail_20' ) end [2025-04-06 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847186', 'tblTempVendorCDR_20' ) start [2025-04-06 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847186', 'tblTempVendorCDR_20' ) end [2025-04-06 11:22:18] Production.INFO: ProcessCDR(1,14847186,1,1,2) [2025-04-06 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847186', 'tblTempUsageDetail_20' ) start [2025-04-06 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847186', 'tblTempUsageDetail_20' ) end [2025-04-06 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:22:23] Production.INFO: ==17768== Releasing lock... [2025-04-06 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:22:23] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:23:06 [end_date_ymd] => 2025-04-06 11:23:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:23:06' and `end` < '2025-04-06 11: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-04-06 11:23:18] Production.INFO: count ==410 [2025-04-06 11:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:23:06 - End Time 2025-04-06 11:23:06 [2025-04-06 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847191', 'tblTempUsageDetail_20' ) start [2025-04-06 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847191', 'tblTempUsageDetail_20' ) end [2025-04-06 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847191', 'tblTempVendorCDR_20' ) start [2025-04-06 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847191', 'tblTempVendorCDR_20' ) end [2025-04-06 11:23:18] Production.INFO: ProcessCDR(1,14847191,1,1,2) [2025-04-06 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847191', 'tblTempUsageDetail_20' ) start [2025-04-06 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847191', 'tblTempUsageDetail_20' ) end [2025-04-06 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:23:23] Production.INFO: ==17852== Releasing lock... [2025-04-06 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:23:23] Production.INFO: 31 MB #Memory Used# [2025-04-06 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:24:05 [end_date_ymd] => 2025-04-06 11:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:24:05' and `end` < '2025-04-06 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-04-06 11:24:18] Production.INFO: count ==415 [2025-04-06 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:24:05 - End Time 2025-04-06 11:24:05 [2025-04-06 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847196', 'tblTempUsageDetail_20' ) start [2025-04-06 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847196', 'tblTempUsageDetail_20' ) end [2025-04-06 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847196', 'tblTempVendorCDR_20' ) start [2025-04-06 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847196', 'tblTempVendorCDR_20' ) end [2025-04-06 11:24:18] Production.INFO: ProcessCDR(1,14847196,1,1,2) [2025-04-06 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847196', 'tblTempUsageDetail_20' ) start [2025-04-06 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847196', 'tblTempUsageDetail_20' ) end [2025-04-06 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:24:23] Production.INFO: ==17928== Releasing lock... [2025-04-06 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:24:23] Production.INFO: 32 MB #Memory Used# [2025-04-06 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:25:06 [end_date_ymd] => 2025-04-06 11:25:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:25:06' and `end` < '2025-04-06 11: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-04-06 11:25:18] Production.INFO: count ==413 [2025-04-06 11:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:25:06 - End Time 2025-04-06 11:25:06 [2025-04-06 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847201', 'tblTempUsageDetail_20' ) start [2025-04-06 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847201', 'tblTempUsageDetail_20' ) end [2025-04-06 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847201', 'tblTempVendorCDR_20' ) start [2025-04-06 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847201', 'tblTempVendorCDR_20' ) end [2025-04-06 11:25:18] Production.INFO: ProcessCDR(1,14847201,1,1,2) [2025-04-06 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847201', 'tblTempUsageDetail_20' ) start [2025-04-06 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847201', 'tblTempUsageDetail_20' ) end [2025-04-06 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:25:24] Production.INFO: ==18012== Releasing lock... [2025-04-06 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:26:05 [end_date_ymd] => 2025-04-06 11:26:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:26:05' and `end` < '2025-04-06 11: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-04-06 11:26:17] Production.INFO: count ==416 [2025-04-06 11:26:17] Production.ERROR: pbx CDR StartTime 2025-04-06 08:26:05 - End Time 2025-04-06 11:26:05 [2025-04-06 11:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847206', 'tblTempUsageDetail_20' ) start [2025-04-06 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847206', 'tblTempUsageDetail_20' ) end [2025-04-06 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847206', 'tblTempVendorCDR_20' ) start [2025-04-06 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847206', 'tblTempVendorCDR_20' ) end [2025-04-06 11:26:17] Production.INFO: ProcessCDR(1,14847206,1,1,2) [2025-04-06 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847206', 'tblTempUsageDetail_20' ) start [2025-04-06 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847206', 'tblTempUsageDetail_20' ) end [2025-04-06 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:26:21] Production.INFO: ==18090== Releasing lock... [2025-04-06 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-06 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:27:05 [end_date_ymd] => 2025-04-06 11:27:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:27:05' and `end` < '2025-04-06 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-04-06 11:27:18] Production.INFO: count ==422 [2025-04-06 11:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:27:05 - End Time 2025-04-06 11:27:05 [2025-04-06 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847211', 'tblTempUsageDetail_20' ) start [2025-04-06 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847211', 'tblTempUsageDetail_20' ) end [2025-04-06 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847211', 'tblTempVendorCDR_20' ) start [2025-04-06 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847211', 'tblTempVendorCDR_20' ) end [2025-04-06 11:27:18] Production.INFO: ProcessCDR(1,14847211,1,1,2) [2025-04-06 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847211', 'tblTempUsageDetail_20' ) start [2025-04-06 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847211', 'tblTempUsageDetail_20' ) end [2025-04-06 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:27:23] Production.INFO: ==18167== Releasing lock... [2025-04-06 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:28:05 [end_date_ymd] => 2025-04-06 11:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:28:05' and `end` < '2025-04-06 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-04-06 11:28:18] Production.INFO: count ==424 [2025-04-06 11:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:28:05 - End Time 2025-04-06 11:28:05 [2025-04-06 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847216', 'tblTempUsageDetail_20' ) start [2025-04-06 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847216', 'tblTempUsageDetail_20' ) end [2025-04-06 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847216', 'tblTempVendorCDR_20' ) start [2025-04-06 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847216', 'tblTempVendorCDR_20' ) end [2025-04-06 11:28:18] Production.INFO: ProcessCDR(1,14847216,1,1,2) [2025-04-06 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847216', 'tblTempUsageDetail_20' ) start [2025-04-06 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847216', 'tblTempUsageDetail_20' ) end [2025-04-06 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:28:23] Production.INFO: ==18249== Releasing lock... [2025-04-06 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-06 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:29:06 [end_date_ymd] => 2025-04-06 11:29:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:29:06' and `end` < '2025-04-06 11: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-04-06 11:29:18] Production.INFO: count ==436 [2025-04-06 11:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:29:06 - End Time 2025-04-06 11:29:06 [2025-04-06 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847221', 'tblTempUsageDetail_20' ) start [2025-04-06 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847221', 'tblTempUsageDetail_20' ) end [2025-04-06 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847221', 'tblTempVendorCDR_20' ) start [2025-04-06 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847221', 'tblTempVendorCDR_20' ) end [2025-04-06 11:29:19] Production.INFO: ProcessCDR(1,14847221,1,1,2) [2025-04-06 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847221', 'tblTempUsageDetail_20' ) start [2025-04-06 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847221', 'tblTempUsageDetail_20' ) end [2025-04-06 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:29:24] Production.INFO: ==18329== Releasing lock... [2025-04-06 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:29:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-06 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:30:05 [end_date_ymd] => 2025-04-06 11:30:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:30:05' and `end` < '2025-04-06 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-04-06 11:30:18] Production.INFO: count ==461 [2025-04-06 11:30:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:30:05 - End Time 2025-04-06 11:30:05 [2025-04-06 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847226', 'tblTempUsageDetail_20' ) start [2025-04-06 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847226', 'tblTempUsageDetail_20' ) end [2025-04-06 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847226', 'tblTempVendorCDR_20' ) start [2025-04-06 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847226', 'tblTempVendorCDR_20' ) end [2025-04-06 11:30:18] Production.INFO: ProcessCDR(1,14847226,1,1,2) [2025-04-06 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847226', 'tblTempUsageDetail_20' ) start [2025-04-06 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847226', 'tblTempUsageDetail_20' ) end [2025-04-06 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:30:23] Production.INFO: ==18409== Releasing lock... [2025-04-06 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-06 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:31:05 [end_date_ymd] => 2025-04-06 11:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:31:05' and `end` < '2025-04-06 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-04-06 11:31:18] Production.INFO: count ==484 [2025-04-06 11:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:31:05 - End Time 2025-04-06 11:31:05 [2025-04-06 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847232', 'tblTempUsageDetail_20' ) start [2025-04-06 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847232', 'tblTempUsageDetail_20' ) end [2025-04-06 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847232', 'tblTempVendorCDR_20' ) start [2025-04-06 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847232', 'tblTempVendorCDR_20' ) end [2025-04-06 11:31:18] Production.INFO: ProcessCDR(1,14847232,1,1,2) [2025-04-06 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847232', 'tblTempUsageDetail_20' ) start [2025-04-06 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847232', 'tblTempUsageDetail_20' ) end [2025-04-06 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:31:23] Production.INFO: ==18492== Releasing lock... [2025-04-06 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:31:23] Production.INFO: 32 MB #Memory Used# [2025-04-06 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:32:06 [end_date_ymd] => 2025-04-06 11:32:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:32:06' and `end` < '2025-04-06 11: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-04-06 11:32:19] Production.INFO: count ==486 [2025-04-06 11:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:32:06 - End Time 2025-04-06 11:32:06 [2025-04-06 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847237', 'tblTempUsageDetail_20' ) start [2025-04-06 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847237', 'tblTempUsageDetail_20' ) end [2025-04-06 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847237', 'tblTempVendorCDR_20' ) start [2025-04-06 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847237', 'tblTempVendorCDR_20' ) end [2025-04-06 11:32:19] Production.INFO: ProcessCDR(1,14847237,1,1,2) [2025-04-06 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847237', 'tblTempUsageDetail_20' ) start [2025-04-06 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847237', 'tblTempUsageDetail_20' ) end [2025-04-06 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:32:24] Production.INFO: ==18617== Releasing lock... [2025-04-06 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:32:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-06 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:33:05 [end_date_ymd] => 2025-04-06 11:33:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:33:05' and `end` < '2025-04-06 11: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-04-06 11:33:18] Production.INFO: count ==501 [2025-04-06 11:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:33:05 - End Time 2025-04-06 11:33:05 [2025-04-06 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847242', 'tblTempUsageDetail_20' ) start [2025-04-06 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847242', 'tblTempUsageDetail_20' ) end [2025-04-06 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847242', 'tblTempVendorCDR_20' ) start [2025-04-06 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847242', 'tblTempVendorCDR_20' ) end [2025-04-06 11:33:18] Production.INFO: ProcessCDR(1,14847242,1,1,2) [2025-04-06 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847242', 'tblTempUsageDetail_20' ) start [2025-04-06 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847242', 'tblTempUsageDetail_20' ) end [2025-04-06 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:33:23] Production.INFO: ==18695== Releasing lock... [2025-04-06 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:33:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:34:06 [end_date_ymd] => 2025-04-06 11:34:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:34:06' and `end` < '2025-04-06 11: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-04-06 11:34:19] Production.INFO: count ==501 [2025-04-06 11:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:34:06 - End Time 2025-04-06 11:34:06 [2025-04-06 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847247', 'tblTempUsageDetail_20' ) start [2025-04-06 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847247', 'tblTempUsageDetail_20' ) end [2025-04-06 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847247', 'tblTempVendorCDR_20' ) start [2025-04-06 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847247', 'tblTempVendorCDR_20' ) end [2025-04-06 11:34:19] Production.INFO: ProcessCDR(1,14847247,1,1,2) [2025-04-06 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847247', 'tblTempUsageDetail_20' ) start [2025-04-06 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847247', 'tblTempUsageDetail_20' ) end [2025-04-06 11:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:34:22] Production.INFO: ==18781== Releasing lock... [2025-04-06 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:35:05 [end_date_ymd] => 2025-04-06 11:35:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:35:05' and `end` < '2025-04-06 11: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-04-06 11:35:17] Production.INFO: count ==503 [2025-04-06 11:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:35:05 - End Time 2025-04-06 11:35:05 [2025-04-06 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847252', 'tblTempUsageDetail_20' ) start [2025-04-06 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847252', 'tblTempUsageDetail_20' ) end [2025-04-06 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847252', 'tblTempVendorCDR_20' ) start [2025-04-06 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847252', 'tblTempVendorCDR_20' ) end [2025-04-06 11:35:18] Production.INFO: ProcessCDR(1,14847252,1,1,2) [2025-04-06 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847252', 'tblTempUsageDetail_20' ) start [2025-04-06 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847252', 'tblTempUsageDetail_20' ) end [2025-04-06 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:35:22] Production.INFO: ==18861== Releasing lock... [2025-04-06 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:36:05 [end_date_ymd] => 2025-04-06 11:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:36:05' and `end` < '2025-04-06 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-04-06 11:36:18] Production.INFO: count ==506 [2025-04-06 11:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:36:05 - End Time 2025-04-06 11:36:05 [2025-04-06 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847257', 'tblTempUsageDetail_20' ) start [2025-04-06 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847257', 'tblTempUsageDetail_20' ) end [2025-04-06 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847257', 'tblTempVendorCDR_20' ) start [2025-04-06 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847257', 'tblTempVendorCDR_20' ) end [2025-04-06 11:36:18] Production.INFO: ProcessCDR(1,14847257,1,1,2) [2025-04-06 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847257', 'tblTempUsageDetail_20' ) start [2025-04-06 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847257', 'tblTempUsageDetail_20' ) end [2025-04-06 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:36:23] Production.INFO: ==18943== Releasing lock... [2025-04-06 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:37:05 [end_date_ymd] => 2025-04-06 11:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:37:05' and `end` < '2025-04-06 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-04-06 11:37:18] Production.INFO: count ==507 [2025-04-06 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:37:05 - End Time 2025-04-06 11:37:05 [2025-04-06 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847262', 'tblTempUsageDetail_20' ) start [2025-04-06 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847262', 'tblTempUsageDetail_20' ) end [2025-04-06 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847262', 'tblTempVendorCDR_20' ) start [2025-04-06 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847262', 'tblTempVendorCDR_20' ) end [2025-04-06 11:37:18] Production.INFO: ProcessCDR(1,14847262,1,1,2) [2025-04-06 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847262', 'tblTempUsageDetail_20' ) start [2025-04-06 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847262', 'tblTempUsageDetail_20' ) end [2025-04-06 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:37:23] Production.INFO: ==19025== Releasing lock... [2025-04-06 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-06 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:38:05 [end_date_ymd] => 2025-04-06 11:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:38:05' and `end` < '2025-04-06 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-04-06 11:38:19] Production.INFO: count ==511 [2025-04-06 11:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:38:05 - End Time 2025-04-06 11:38:05 [2025-04-06 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847267', 'tblTempUsageDetail_20' ) start [2025-04-06 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847267', 'tblTempUsageDetail_20' ) end [2025-04-06 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847267', 'tblTempVendorCDR_20' ) start [2025-04-06 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847267', 'tblTempVendorCDR_20' ) end [2025-04-06 11:38:19] Production.INFO: ProcessCDR(1,14847267,1,1,2) [2025-04-06 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847267', 'tblTempUsageDetail_20' ) start [2025-04-06 11:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847267', 'tblTempUsageDetail_20' ) end [2025-04-06 11:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:38:24] Production.INFO: ==19110== Releasing lock... [2025-04-06 11:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:38:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-06 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:39:05 [end_date_ymd] => 2025-04-06 11:39:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:39:05' and `end` < '2025-04-06 11: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-04-06 11:39:18] Production.INFO: count ==514 [2025-04-06 11:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:39:05 - End Time 2025-04-06 11:39:05 [2025-04-06 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847272', 'tblTempUsageDetail_20' ) start [2025-04-06 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847272', 'tblTempUsageDetail_20' ) end [2025-04-06 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847272', 'tblTempVendorCDR_20' ) start [2025-04-06 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847272', 'tblTempVendorCDR_20' ) end [2025-04-06 11:39:18] Production.INFO: ProcessCDR(1,14847272,1,1,2) [2025-04-06 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847272', 'tblTempUsageDetail_20' ) start [2025-04-06 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847272', 'tblTempUsageDetail_20' ) end [2025-04-06 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:39:23] Production.INFO: ==19191== Releasing lock... [2025-04-06 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:39:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:40:06 [end_date_ymd] => 2025-04-06 11:40:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:40:06' and `end` < '2025-04-06 11: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-04-06 11:40:19] Production.INFO: count ==528 [2025-04-06 11:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:40:06 - End Time 2025-04-06 11:40:06 [2025-04-06 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847278', 'tblTempUsageDetail_20' ) start [2025-04-06 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847278', 'tblTempUsageDetail_20' ) end [2025-04-06 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847278', 'tblTempVendorCDR_20' ) start [2025-04-06 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847278', 'tblTempVendorCDR_20' ) end [2025-04-06 11:40:19] Production.INFO: ProcessCDR(1,14847278,1,1,2) [2025-04-06 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847278', 'tblTempUsageDetail_20' ) start [2025-04-06 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847278', 'tblTempUsageDetail_20' ) end [2025-04-06 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:40:24] Production.INFO: ==19268== Releasing lock... [2025-04-06 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:40:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-06 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:41:05 [end_date_ymd] => 2025-04-06 11:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:41:05' and `end` < '2025-04-06 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-04-06 11:41:18] Production.INFO: count ==554 [2025-04-06 11:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:41:05 - End Time 2025-04-06 11:41:05 [2025-04-06 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847283', 'tblTempUsageDetail_20' ) start [2025-04-06 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847283', 'tblTempUsageDetail_20' ) end [2025-04-06 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847283', 'tblTempVendorCDR_20' ) start [2025-04-06 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847283', 'tblTempVendorCDR_20' ) end [2025-04-06 11:41:18] Production.INFO: ProcessCDR(1,14847283,1,1,2) [2025-04-06 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847283', 'tblTempUsageDetail_20' ) start [2025-04-06 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847283', 'tblTempUsageDetail_20' ) end [2025-04-06 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:41:23] Production.INFO: ==19355== Releasing lock... [2025-04-06 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:41:23] Production.INFO: 33 MB #Memory Used# [2025-04-06 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:42:05 [end_date_ymd] => 2025-04-06 11:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:42:05' and `end` < '2025-04-06 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-04-06 11:42:18] Production.INFO: count ==560 [2025-04-06 11:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:42:05 - End Time 2025-04-06 11:42:05 [2025-04-06 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847288', 'tblTempUsageDetail_20' ) start [2025-04-06 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847288', 'tblTempUsageDetail_20' ) end [2025-04-06 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847288', 'tblTempVendorCDR_20' ) start [2025-04-06 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847288', 'tblTempVendorCDR_20' ) end [2025-04-06 11:42:18] Production.INFO: ProcessCDR(1,14847288,1,1,2) [2025-04-06 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847288', 'tblTempUsageDetail_20' ) start [2025-04-06 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847288', 'tblTempUsageDetail_20' ) end [2025-04-06 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:42:23] Production.INFO: ==19437== Releasing lock... [2025-04-06 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:42:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:43:06 [end_date_ymd] => 2025-04-06 11:43:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:43:06' and `end` < '2025-04-06 11: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-04-06 11:43:18] Production.INFO: count ==566 [2025-04-06 11:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:43:06 - End Time 2025-04-06 11:43:06 [2025-04-06 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847293', 'tblTempUsageDetail_20' ) start [2025-04-06 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847293', 'tblTempUsageDetail_20' ) end [2025-04-06 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847293', 'tblTempVendorCDR_20' ) start [2025-04-06 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847293', 'tblTempVendorCDR_20' ) end [2025-04-06 11:43:19] Production.INFO: ProcessCDR(1,14847293,1,1,2) [2025-04-06 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847293', 'tblTempUsageDetail_20' ) start [2025-04-06 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847293', 'tblTempUsageDetail_20' ) end [2025-04-06 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:43:24] Production.INFO: ==19520== Releasing lock... [2025-04-06 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:43:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-06 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:44:05 [end_date_ymd] => 2025-04-06 11:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:44:05' and `end` < '2025-04-06 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-04-06 11:44:18] Production.INFO: count ==569 [2025-04-06 11:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:44:05 - End Time 2025-04-06 11:44:05 [2025-04-06 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847298', 'tblTempUsageDetail_20' ) start [2025-04-06 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847298', 'tblTempUsageDetail_20' ) end [2025-04-06 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847298', 'tblTempVendorCDR_20' ) start [2025-04-06 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847298', 'tblTempVendorCDR_20' ) end [2025-04-06 11:44:18] Production.INFO: ProcessCDR(1,14847298,1,1,2) [2025-04-06 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847298', 'tblTempUsageDetail_20' ) start [2025-04-06 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847298', 'tblTempUsageDetail_20' ) end [2025-04-06 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:44:23] Production.INFO: ==19598== Releasing lock... [2025-04-06 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:44:23] Production.INFO: 33 MB #Memory Used# [2025-04-06 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:45:05 [end_date_ymd] => 2025-04-06 11:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:45:05' and `end` < '2025-04-06 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-04-06 11:45:18] Production.INFO: count ==578 [2025-04-06 11:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:45:05 - End Time 2025-04-06 11:45:05 [2025-04-06 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847303', 'tblTempUsageDetail_20' ) start [2025-04-06 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847303', 'tblTempUsageDetail_20' ) end [2025-04-06 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847303', 'tblTempVendorCDR_20' ) start [2025-04-06 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847303', 'tblTempVendorCDR_20' ) end [2025-04-06 11:45:18] Production.INFO: ProcessCDR(1,14847303,1,1,2) [2025-04-06 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847303', 'tblTempUsageDetail_20' ) start [2025-04-06 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847303', 'tblTempUsageDetail_20' ) end [2025-04-06 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:45:23] Production.INFO: ==19678== Releasing lock... [2025-04-06 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:45:23] Production.INFO: 33 MB #Memory Used# [2025-04-06 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:46:05 [end_date_ymd] => 2025-04-06 11:46:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:46:05' and `end` < '2025-04-06 11: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-04-06 11:46:18] Production.INFO: count ==595 [2025-04-06 11:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:46:05 - End Time 2025-04-06 11:46:05 [2025-04-06 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847308', 'tblTempUsageDetail_20' ) start [2025-04-06 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847308', 'tblTempUsageDetail_20' ) end [2025-04-06 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847308', 'tblTempVendorCDR_20' ) start [2025-04-06 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847308', 'tblTempVendorCDR_20' ) end [2025-04-06 11:46:18] Production.INFO: ProcessCDR(1,14847308,1,1,2) [2025-04-06 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847308', 'tblTempUsageDetail_20' ) start [2025-04-06 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847308', 'tblTempUsageDetail_20' ) end [2025-04-06 11:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:46:23] Production.INFO: ==19758== Releasing lock... [2025-04-06 11:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:47:06 [end_date_ymd] => 2025-04-06 11:47:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:47:06' and `end` < '2025-04-06 11: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-04-06 11:47:18] Production.INFO: count ==601 [2025-04-06 11:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:47:06 - End Time 2025-04-06 11:47:06 [2025-04-06 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847313', 'tblTempUsageDetail_20' ) start [2025-04-06 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847313', 'tblTempUsageDetail_20' ) end [2025-04-06 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847313', 'tblTempVendorCDR_20' ) start [2025-04-06 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847313', 'tblTempVendorCDR_20' ) end [2025-04-06 11:47:18] Production.INFO: ProcessCDR(1,14847313,1,1,2) [2025-04-06 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847313', 'tblTempUsageDetail_20' ) start [2025-04-06 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847313', 'tblTempUsageDetail_20' ) end [2025-04-06 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:47:23] Production.INFO: ==19875== Releasing lock... [2025-04-06 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:47:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:48:05 [end_date_ymd] => 2025-04-06 11:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:48:05' and `end` < '2025-04-06 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-04-06 11:48:18] Production.INFO: count ==618 [2025-04-06 11:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:48:05 - End Time 2025-04-06 11:48:05 [2025-04-06 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847318', 'tblTempUsageDetail_20' ) start [2025-04-06 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847318', 'tblTempUsageDetail_20' ) end [2025-04-06 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847318', 'tblTempVendorCDR_20' ) start [2025-04-06 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847318', 'tblTempVendorCDR_20' ) end [2025-04-06 11:48:18] Production.INFO: ProcessCDR(1,14847318,1,1,2) [2025-04-06 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847318', 'tblTempUsageDetail_20' ) start [2025-04-06 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847318', 'tblTempUsageDetail_20' ) end [2025-04-06 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:48:23] Production.INFO: ==19959== Releasing lock... [2025-04-06 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:49:06 [end_date_ymd] => 2025-04-06 11:49:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:49:06' and `end` < '2025-04-06 11: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-04-06 11:49:18] Production.INFO: count ==630 [2025-04-06 11:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:49:06 - End Time 2025-04-06 11:49:06 [2025-04-06 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847323', 'tblTempUsageDetail_20' ) start [2025-04-06 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847323', 'tblTempUsageDetail_20' ) end [2025-04-06 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847323', 'tblTempVendorCDR_20' ) start [2025-04-06 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847323', 'tblTempVendorCDR_20' ) end [2025-04-06 11:49:19] Production.INFO: ProcessCDR(1,14847323,1,1,2) [2025-04-06 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847323', 'tblTempUsageDetail_20' ) start [2025-04-06 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847323', 'tblTempUsageDetail_20' ) end [2025-04-06 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:49:24] Production.INFO: ==20046== Releasing lock... [2025-04-06 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:49:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:50:06 [end_date_ymd] => 2025-04-06 11:50:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:50:06' and `end` < '2025-04-06 11: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-04-06 11:50:19] Production.INFO: count ==636 [2025-04-06 11:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:50:06 - End Time 2025-04-06 11:50:06 [2025-04-06 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847328', 'tblTempUsageDetail_20' ) start [2025-04-06 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847328', 'tblTempUsageDetail_20' ) end [2025-04-06 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847328', 'tblTempVendorCDR_20' ) start [2025-04-06 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847328', 'tblTempVendorCDR_20' ) end [2025-04-06 11:50:19] Production.INFO: ProcessCDR(1,14847328,1,1,2) [2025-04-06 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847328', 'tblTempUsageDetail_20' ) start [2025-04-06 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847328', 'tblTempUsageDetail_20' ) end [2025-04-06 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:50:24] Production.INFO: ==20126== Releasing lock... [2025-04-06 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-06 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:51:05 [end_date_ymd] => 2025-04-06 11:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:51:05' and `end` < '2025-04-06 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-04-06 11:51:18] Production.INFO: count ==658 [2025-04-06 11:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:51:05 - End Time 2025-04-06 11:51:05 [2025-04-06 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847334', 'tblTempUsageDetail_20' ) start [2025-04-06 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847334', 'tblTempUsageDetail_20' ) end [2025-04-06 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847334', 'tblTempVendorCDR_20' ) start [2025-04-06 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847334', 'tblTempVendorCDR_20' ) end [2025-04-06 11:51:18] Production.INFO: ProcessCDR(1,14847334,1,1,2) [2025-04-06 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847334', 'tblTempUsageDetail_20' ) start [2025-04-06 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847334', 'tblTempUsageDetail_20' ) end [2025-04-06 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:51:22] Production.INFO: ==20206== Releasing lock... [2025-04-06 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:51:22] Production.INFO: 33 MB #Memory Used# [2025-04-06 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:52:05 [end_date_ymd] => 2025-04-06 11:52:05 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:52:05' and `end` < '2025-04-06 11: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-04-06 11:52:18] Production.INFO: count ==660 [2025-04-06 11:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:52:05 - End Time 2025-04-06 11:52:05 [2025-04-06 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847339', 'tblTempUsageDetail_20' ) start [2025-04-06 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847339', 'tblTempUsageDetail_20' ) end [2025-04-06 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847339', 'tblTempVendorCDR_20' ) start [2025-04-06 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847339', 'tblTempVendorCDR_20' ) end [2025-04-06 11:52:19] Production.INFO: ProcessCDR(1,14847339,1,1,2) [2025-04-06 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847339', 'tblTempUsageDetail_20' ) start [2025-04-06 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847339', 'tblTempUsageDetail_20' ) end [2025-04-06 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:52:23] Production.INFO: ==20286== Releasing lock... [2025-04-06 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:53:06 [end_date_ymd] => 2025-04-06 11:53:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:53:06' and `end` < '2025-04-06 11: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-04-06 11:53:18] Production.INFO: count ==662 [2025-04-06 11:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:53:06 - End Time 2025-04-06 11:53:06 [2025-04-06 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847344', 'tblTempUsageDetail_20' ) start [2025-04-06 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847344', 'tblTempUsageDetail_20' ) end [2025-04-06 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847344', 'tblTempVendorCDR_20' ) start [2025-04-06 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847344', 'tblTempVendorCDR_20' ) end [2025-04-06 11:53:19] Production.INFO: ProcessCDR(1,14847344,1,1,2) [2025-04-06 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847344', 'tblTempUsageDetail_20' ) start [2025-04-06 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847344', 'tblTempUsageDetail_20' ) end [2025-04-06 11:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:53:24] Production.INFO: ==20377== Releasing lock... [2025-04-06 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:53:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:54:05 [end_date_ymd] => 2025-04-06 11:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:54:05' and `end` < '2025-04-06 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-04-06 11:54:18] Production.INFO: count ==664 [2025-04-06 11:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:54:05 - End Time 2025-04-06 11:54:05 [2025-04-06 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847349', 'tblTempUsageDetail_20' ) start [2025-04-06 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847349', 'tblTempUsageDetail_20' ) end [2025-04-06 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847349', 'tblTempVendorCDR_20' ) start [2025-04-06 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847349', 'tblTempVendorCDR_20' ) end [2025-04-06 11:54:18] Production.INFO: ProcessCDR(1,14847349,1,1,2) [2025-04-06 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847349', 'tblTempUsageDetail_20' ) start [2025-04-06 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847349', 'tblTempUsageDetail_20' ) end [2025-04-06 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:54:23] Production.INFO: ==20454== Releasing lock... [2025-04-06 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:55:05 [end_date_ymd] => 2025-04-06 11:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:55:05' and `end` < '2025-04-06 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-04-06 11:55:18] Production.INFO: count ==665 [2025-04-06 11:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:55:05 - End Time 2025-04-06 11:55:05 [2025-04-06 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847354', 'tblTempUsageDetail_20' ) start [2025-04-06 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847354', 'tblTempUsageDetail_20' ) end [2025-04-06 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847354', 'tblTempVendorCDR_20' ) start [2025-04-06 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847354', 'tblTempVendorCDR_20' ) end [2025-04-06 11:55:18] Production.INFO: ProcessCDR(1,14847354,1,1,2) [2025-04-06 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847354', 'tblTempUsageDetail_20' ) start [2025-04-06 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847354', 'tblTempUsageDetail_20' ) end [2025-04-06 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:55:23] Production.INFO: ==20536== Releasing lock... [2025-04-06 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:56:06 [end_date_ymd] => 2025-04-06 11:56:06 [RateCDR] => 1 ) [2025-04-06 11: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-04-06 08:56:06' and `end` < '2025-04-06 11: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-04-06 11:56:19] Production.INFO: count ==665 [2025-04-06 11:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 08:56:06 - End Time 2025-04-06 11:56:06 [2025-04-06 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847359', 'tblTempUsageDetail_20' ) start [2025-04-06 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847359', 'tblTempUsageDetail_20' ) end [2025-04-06 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847359', 'tblTempVendorCDR_20' ) start [2025-04-06 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847359', 'tblTempVendorCDR_20' ) end [2025-04-06 11:56:19] Production.INFO: ProcessCDR(1,14847359,1,1,2) [2025-04-06 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847359', 'tblTempUsageDetail_20' ) start [2025-04-06 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847359', 'tblTempUsageDetail_20' ) end [2025-04-06 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:56:24] Production.INFO: ==20614== Releasing lock... [2025-04-06 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:56:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:57:05 [end_date_ymd] => 2025-04-06 11:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:57:05' and `end` < '2025-04-06 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-04-06 11:57:18] Production.INFO: count ==665 [2025-04-06 11:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:57:05 - End Time 2025-04-06 11:57:05 [2025-04-06 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847364', 'tblTempUsageDetail_20' ) start [2025-04-06 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847364', 'tblTempUsageDetail_20' ) end [2025-04-06 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847364', 'tblTempVendorCDR_20' ) start [2025-04-06 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847364', 'tblTempVendorCDR_20' ) end [2025-04-06 11:57:18] Production.INFO: ProcessCDR(1,14847364,1,1,2) [2025-04-06 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847364', 'tblTempUsageDetail_20' ) start [2025-04-06 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847364', 'tblTempUsageDetail_20' ) end [2025-04-06 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:57:22] Production.INFO: ==20686== Releasing lock... [2025-04-06 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:58:05 [end_date_ymd] => 2025-04-06 11:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:58:05' and `end` < '2025-04-06 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-04-06 11:58:18] Production.INFO: count ==666 [2025-04-06 11:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:58:05 - End Time 2025-04-06 11:58:05 [2025-04-06 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847369', 'tblTempUsageDetail_20' ) start [2025-04-06 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847369', 'tblTempUsageDetail_20' ) end [2025-04-06 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847369', 'tblTempVendorCDR_20' ) start [2025-04-06 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847369', 'tblTempVendorCDR_20' ) end [2025-04-06 11:58:18] Production.INFO: ProcessCDR(1,14847369,1,1,2) [2025-04-06 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847369', 'tblTempUsageDetail_20' ) start [2025-04-06 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847369', 'tblTempUsageDetail_20' ) end [2025-04-06 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:58:23] Production.INFO: ==20762== Releasing lock... [2025-04-06 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 08:59:05 [end_date_ymd] => 2025-04-06 11:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 08:59:05' and `end` < '2025-04-06 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-04-06 11:59:18] Production.INFO: count ==667 [2025-04-06 11:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 08:59:05 - End Time 2025-04-06 11:59:05 [2025-04-06 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847374', 'tblTempUsageDetail_20' ) start [2025-04-06 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847374', 'tblTempUsageDetail_20' ) end [2025-04-06 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847374', 'tblTempVendorCDR_20' ) start [2025-04-06 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847374', 'tblTempVendorCDR_20' ) end [2025-04-06 11:59:19] Production.INFO: ProcessCDR(1,14847374,1,1,2) [2025-04-06 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847374', 'tblTempUsageDetail_20' ) start [2025-04-06 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847374', 'tblTempUsageDetail_20' ) end [2025-04-06 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 11:59:24] Production.INFO: ==20840== Releasing lock... [2025-04-06 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 11:59:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:00:06 [end_date_ymd] => 2025-04-06 12:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:00:06' and `end` < '2025-04-06 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-04-06 12:00:19] Production.INFO: count ==676 [2025-04-06 12:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:00:06 - End Time 2025-04-06 12:00:06 [2025-04-06 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847380', 'tblTempUsageDetail_20' ) start [2025-04-06 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847380', 'tblTempUsageDetail_20' ) end [2025-04-06 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847380', 'tblTempVendorCDR_20' ) start [2025-04-06 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847380', 'tblTempVendorCDR_20' ) end [2025-04-06 12:00:19] Production.INFO: ProcessCDR(1,14847380,1,1,2) [2025-04-06 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847380', 'tblTempUsageDetail_20' ) start [2025-04-06 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847380', 'tblTempUsageDetail_20' ) end [2025-04-06 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:00:24] Production.INFO: ==20917== Releasing lock... [2025-04-06 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:01:05 [end_date_ymd] => 2025-04-06 12:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:01:05' and `end` < '2025-04-06 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-04-06 12:01:19] Production.INFO: count ==727 [2025-04-06 12:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:01:05 - End Time 2025-04-06 12:01:05 [2025-04-06 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847385', 'tblTempUsageDetail_20' ) start [2025-04-06 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847385', 'tblTempUsageDetail_20' ) end [2025-04-06 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847385', 'tblTempVendorCDR_20' ) start [2025-04-06 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847385', 'tblTempVendorCDR_20' ) end [2025-04-06 12:01:19] Production.INFO: ProcessCDR(1,14847385,1,1,2) [2025-04-06 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847385', 'tblTempUsageDetail_20' ) start [2025-04-06 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847385', 'tblTempUsageDetail_20' ) end [2025-04-06 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:01:24] Production.INFO: ==21007== Releasing lock... [2025-04-06 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:01:24] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:02:05 [end_date_ymd] => 2025-04-06 12:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:02:05' and `end` < '2025-04-06 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-04-06 12:02:18] Production.INFO: count ==729 [2025-04-06 12:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:02:05 - End Time 2025-04-06 12:02:05 [2025-04-06 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847390', 'tblTempUsageDetail_20' ) start [2025-04-06 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847390', 'tblTempUsageDetail_20' ) end [2025-04-06 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847390', 'tblTempVendorCDR_20' ) start [2025-04-06 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847390', 'tblTempVendorCDR_20' ) end [2025-04-06 12:02:18] Production.INFO: ProcessCDR(1,14847390,1,1,2) [2025-04-06 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847390', 'tblTempUsageDetail_20' ) start [2025-04-06 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847390', 'tblTempUsageDetail_20' ) end [2025-04-06 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:02:23] Production.INFO: ==21088== Releasing lock... [2025-04-06 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:03:05 [end_date_ymd] => 2025-04-06 12:03:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:03:05' and `end` < '2025-04-06 12: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-04-06 12:03:18] Production.INFO: count ==730 [2025-04-06 12:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:03:05 - End Time 2025-04-06 12:03:05 [2025-04-06 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847395', 'tblTempUsageDetail_20' ) start [2025-04-06 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847395', 'tblTempUsageDetail_20' ) end [2025-04-06 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847395', 'tblTempVendorCDR_20' ) start [2025-04-06 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847395', 'tblTempVendorCDR_20' ) end [2025-04-06 12:03:18] Production.INFO: ProcessCDR(1,14847395,1,1,2) [2025-04-06 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847395', 'tblTempUsageDetail_20' ) start [2025-04-06 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847395', 'tblTempUsageDetail_20' ) end [2025-04-06 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:03:23] Production.INFO: ==21203== Releasing lock... [2025-04-06 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:03:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-06 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:04:05 [end_date_ymd] => 2025-04-06 12:04:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:04:05' and `end` < '2025-04-06 12: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-04-06 12:04:18] Production.INFO: count ==734 [2025-04-06 12:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:04:05 - End Time 2025-04-06 12:04:05 [2025-04-06 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847400', 'tblTempUsageDetail_20' ) start [2025-04-06 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847400', 'tblTempUsageDetail_20' ) end [2025-04-06 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847400', 'tblTempVendorCDR_20' ) start [2025-04-06 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847400', 'tblTempVendorCDR_20' ) end [2025-04-06 12:04:18] Production.INFO: ProcessCDR(1,14847400,1,1,2) [2025-04-06 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847400', 'tblTempUsageDetail_20' ) start [2025-04-06 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847400', 'tblTempUsageDetail_20' ) end [2025-04-06 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:04:23] Production.INFO: ==21284== Releasing lock... [2025-04-06 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:04:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:05:06 [end_date_ymd] => 2025-04-06 12:05:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:05:06' and `end` < '2025-04-06 12: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-04-06 12:05:19] Production.INFO: count ==738 [2025-04-06 12:05:20] Production.ERROR: pbx CDR StartTime 2025-04-06 09:05:06 - End Time 2025-04-06 12:05:06 [2025-04-06 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847405', 'tblTempUsageDetail_20' ) start [2025-04-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847405', 'tblTempUsageDetail_20' ) end [2025-04-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847405', 'tblTempVendorCDR_20' ) start [2025-04-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847405', 'tblTempVendorCDR_20' ) end [2025-04-06 12:05:20] Production.INFO: ProcessCDR(1,14847405,1,1,2) [2025-04-06 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847405', 'tblTempUsageDetail_20' ) start [2025-04-06 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847405', 'tblTempUsageDetail_20' ) end [2025-04-06 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:05:25] Production.INFO: ==21360== Releasing lock... [2025-04-06 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:05:25] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:06:06 [end_date_ymd] => 2025-04-06 12:06:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:06:06' and `end` < '2025-04-06 12: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-04-06 12:06:19] Production.INFO: count ==738 [2025-04-06 12:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:06:06 - End Time 2025-04-06 12:06:06 [2025-04-06 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847410', 'tblTempUsageDetail_20' ) start [2025-04-06 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847410', 'tblTempUsageDetail_20' ) end [2025-04-06 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847410', 'tblTempVendorCDR_20' ) start [2025-04-06 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847410', 'tblTempVendorCDR_20' ) end [2025-04-06 12:06:19] Production.INFO: ProcessCDR(1,14847410,1,1,2) [2025-04-06 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847410', 'tblTempUsageDetail_20' ) start [2025-04-06 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847410', 'tblTempUsageDetail_20' ) end [2025-04-06 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:06:24] Production.INFO: ==21434== Releasing lock... [2025-04-06 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:07:05 [end_date_ymd] => 2025-04-06 12:07:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:07:05' and `end` < '2025-04-06 12: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-04-06 12:07:18] Production.INFO: count ==740 [2025-04-06 12:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:07:05 - End Time 2025-04-06 12:07:05 [2025-04-06 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847415', 'tblTempUsageDetail_20' ) start [2025-04-06 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847415', 'tblTempUsageDetail_20' ) end [2025-04-06 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847415', 'tblTempVendorCDR_20' ) start [2025-04-06 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847415', 'tblTempVendorCDR_20' ) end [2025-04-06 12:07:18] Production.INFO: ProcessCDR(1,14847415,1,1,2) [2025-04-06 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847415', 'tblTempUsageDetail_20' ) start [2025-04-06 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847415', 'tblTempUsageDetail_20' ) end [2025-04-06 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:07:23] Production.INFO: ==21514== Releasing lock... [2025-04-06 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:07:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:08:06 [end_date_ymd] => 2025-04-06 12:08:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:08:06' and `end` < '2025-04-06 12: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-04-06 12:08:18] Production.INFO: count ==742 [2025-04-06 12:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:08:06 - End Time 2025-04-06 12:08:06 [2025-04-06 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847420', 'tblTempUsageDetail_20' ) start [2025-04-06 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847420', 'tblTempUsageDetail_20' ) end [2025-04-06 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847420', 'tblTempVendorCDR_20' ) start [2025-04-06 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847420', 'tblTempVendorCDR_20' ) end [2025-04-06 12:08:19] Production.INFO: ProcessCDR(1,14847420,1,1,2) [2025-04-06 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847420', 'tblTempUsageDetail_20' ) start [2025-04-06 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847420', 'tblTempUsageDetail_20' ) end [2025-04-06 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:08:24] Production.INFO: ==21590== Releasing lock... [2025-04-06 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:08:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:09:05 [end_date_ymd] => 2025-04-06 12:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:09:05' and `end` < '2025-04-06 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-04-06 12:09:17] Production.INFO: count ==744 [2025-04-06 12:09:17] Production.ERROR: pbx CDR StartTime 2025-04-06 09:09:05 - End Time 2025-04-06 12:09:05 [2025-04-06 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847425', 'tblTempUsageDetail_20' ) start [2025-04-06 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847425', 'tblTempUsageDetail_20' ) end [2025-04-06 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847425', 'tblTempVendorCDR_20' ) start [2025-04-06 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847425', 'tblTempVendorCDR_20' ) end [2025-04-06 12:09:18] Production.INFO: ProcessCDR(1,14847425,1,1,2) [2025-04-06 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847425', 'tblTempUsageDetail_20' ) start [2025-04-06 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847425', 'tblTempUsageDetail_20' ) end [2025-04-06 12:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:09:22] Production.INFO: ==21672== Releasing lock... [2025-04-06 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:10:06 [end_date_ymd] => 2025-04-06 12:10:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:10:06' and `end` < '2025-04-06 12: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-04-06 12:10:19] Production.INFO: count ==758 [2025-04-06 12:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:10:06 - End Time 2025-04-06 12:10:06 [2025-04-06 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847431', 'tblTempUsageDetail_20' ) start [2025-04-06 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847431', 'tblTempUsageDetail_20' ) end [2025-04-06 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847431', 'tblTempVendorCDR_20' ) start [2025-04-06 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847431', 'tblTempVendorCDR_20' ) end [2025-04-06 12:10:19] Production.INFO: ProcessCDR(1,14847431,1,1,2) [2025-04-06 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847431', 'tblTempUsageDetail_20' ) start [2025-04-06 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847431', 'tblTempUsageDetail_20' ) end [2025-04-06 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:10:23] Production.INFO: ==21751== Releasing lock... [2025-04-06 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:10:23] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:11:05 [end_date_ymd] => 2025-04-06 12:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:11:05' and `end` < '2025-04-06 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-04-06 12:11:18] Production.INFO: count ==767 [2025-04-06 12:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:11:05 - End Time 2025-04-06 12:11:05 [2025-04-06 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847436', 'tblTempUsageDetail_20' ) start [2025-04-06 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847436', 'tblTempUsageDetail_20' ) end [2025-04-06 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847436', 'tblTempVendorCDR_20' ) start [2025-04-06 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847436', 'tblTempVendorCDR_20' ) end [2025-04-06 12:11:18] Production.INFO: ProcessCDR(1,14847436,1,1,2) [2025-04-06 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847436', 'tblTempUsageDetail_20' ) start [2025-04-06 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847436', 'tblTempUsageDetail_20' ) end [2025-04-06 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:11:22] Production.INFO: ==21830== Releasing lock... [2025-04-06 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:12:06 [end_date_ymd] => 2025-04-06 12:12:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:12:06' and `end` < '2025-04-06 12: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-04-06 12:12:19] Production.INFO: count ==771 [2025-04-06 12:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:12:06 - End Time 2025-04-06 12:12:06 [2025-04-06 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847441', 'tblTempUsageDetail_20' ) start [2025-04-06 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847441', 'tblTempUsageDetail_20' ) end [2025-04-06 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847441', 'tblTempVendorCDR_20' ) start [2025-04-06 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847441', 'tblTempVendorCDR_20' ) end [2025-04-06 12:12:19] Production.INFO: ProcessCDR(1,14847441,1,1,2) [2025-04-06 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847441', 'tblTempUsageDetail_20' ) start [2025-04-06 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847441', 'tblTempUsageDetail_20' ) end [2025-04-06 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:12:25] Production.INFO: ==21916== Releasing lock... [2025-04-06 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:12:25] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:13:05 [end_date_ymd] => 2025-04-06 12:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:13:05' and `end` < '2025-04-06 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-04-06 12:13:17] Production.INFO: count ==776 [2025-04-06 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:13:05 - End Time 2025-04-06 12:13:05 [2025-04-06 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847446', 'tblTempUsageDetail_20' ) start [2025-04-06 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847446', 'tblTempUsageDetail_20' ) end [2025-04-06 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847446', 'tblTempVendorCDR_20' ) start [2025-04-06 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847446', 'tblTempVendorCDR_20' ) end [2025-04-06 12:13:18] Production.INFO: ProcessCDR(1,14847446,1,1,2) [2025-04-06 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847446', 'tblTempUsageDetail_20' ) start [2025-04-06 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847446', 'tblTempUsageDetail_20' ) end [2025-04-06 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:13:22] Production.INFO: ==22002== Releasing lock... [2025-04-06 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:14:05 [end_date_ymd] => 2025-04-06 12:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:14:05' and `end` < '2025-04-06 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-04-06 12:14:18] Production.INFO: count ==782 [2025-04-06 12:14:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:14:05 - End Time 2025-04-06 12:14:05 [2025-04-06 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847451', 'tblTempUsageDetail_20' ) start [2025-04-06 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847451', 'tblTempUsageDetail_20' ) end [2025-04-06 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847451', 'tblTempVendorCDR_20' ) start [2025-04-06 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847451', 'tblTempVendorCDR_20' ) end [2025-04-06 12:14:18] Production.INFO: ProcessCDR(1,14847451,1,1,2) [2025-04-06 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847451', 'tblTempUsageDetail_20' ) start [2025-04-06 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847451', 'tblTempUsageDetail_20' ) end [2025-04-06 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:14:22] Production.INFO: ==22085== Releasing lock... [2025-04-06 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:15:05 [end_date_ymd] => 2025-04-06 12:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:15:05' and `end` < '2025-04-06 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-04-06 12:15:18] Production.INFO: count ==785 [2025-04-06 12:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:15:05 - End Time 2025-04-06 12:15:05 [2025-04-06 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847456', 'tblTempUsageDetail_20' ) start [2025-04-06 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847456', 'tblTempUsageDetail_20' ) end [2025-04-06 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847456', 'tblTempVendorCDR_20' ) start [2025-04-06 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847456', 'tblTempVendorCDR_20' ) end [2025-04-06 12:15:18] Production.INFO: ProcessCDR(1,14847456,1,1,2) [2025-04-06 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847456', 'tblTempUsageDetail_20' ) start [2025-04-06 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847456', 'tblTempUsageDetail_20' ) end [2025-04-06 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:15:22] Production.INFO: ==22171== Releasing lock... [2025-04-06 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:16:05 [end_date_ymd] => 2025-04-06 12:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:16:05' and `end` < '2025-04-06 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-04-06 12:16:19] Production.INFO: count ==785 [2025-04-06 12:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:16:05 - End Time 2025-04-06 12:16:05 [2025-04-06 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847461', 'tblTempUsageDetail_20' ) start [2025-04-06 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847461', 'tblTempUsageDetail_20' ) end [2025-04-06 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847461', 'tblTempVendorCDR_20' ) start [2025-04-06 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847461', 'tblTempVendorCDR_20' ) end [2025-04-06 12:16:19] Production.INFO: ProcessCDR(1,14847461,1,1,2) [2025-04-06 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847461', 'tblTempUsageDetail_20' ) start [2025-04-06 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847461', 'tblTempUsageDetail_20' ) end [2025-04-06 12:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:16:23] Production.INFO: ==22258== Releasing lock... [2025-04-06 12:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:16:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:17:06 [end_date_ymd] => 2025-04-06 12:17:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:17:06' and `end` < '2025-04-06 12: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-04-06 12:17:19] Production.INFO: count ==791 [2025-04-06 12:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:17:06 - End Time 2025-04-06 12:17:06 [2025-04-06 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847466', 'tblTempUsageDetail_20' ) start [2025-04-06 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847466', 'tblTempUsageDetail_20' ) end [2025-04-06 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847466', 'tblTempVendorCDR_20' ) start [2025-04-06 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847466', 'tblTempVendorCDR_20' ) end [2025-04-06 12:17:19] Production.INFO: ProcessCDR(1,14847466,1,1,2) [2025-04-06 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847466', 'tblTempUsageDetail_20' ) start [2025-04-06 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847466', 'tblTempUsageDetail_20' ) end [2025-04-06 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:17:22] Production.INFO: ==22343== Releasing lock... [2025-04-06 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:17:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:18:05 [end_date_ymd] => 2025-04-06 12:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:18:05' and `end` < '2025-04-06 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-04-06 12:18:18] Production.INFO: count ==791 [2025-04-06 12:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:18:05 - End Time 2025-04-06 12:18:05 [2025-04-06 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847471', 'tblTempUsageDetail_20' ) start [2025-04-06 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847471', 'tblTempUsageDetail_20' ) end [2025-04-06 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847471', 'tblTempVendorCDR_20' ) start [2025-04-06 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847471', 'tblTempVendorCDR_20' ) end [2025-04-06 12:18:18] Production.INFO: ProcessCDR(1,14847471,1,1,2) [2025-04-06 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847471', 'tblTempUsageDetail_20' ) start [2025-04-06 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847471', 'tblTempUsageDetail_20' ) end [2025-04-06 12:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:18:21] Production.INFO: ==22466== Releasing lock... [2025-04-06 12:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:18:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-06 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:19:05 [end_date_ymd] => 2025-04-06 12:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:19:05' and `end` < '2025-04-06 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-04-06 12:19:18] Production.INFO: count ==794 [2025-04-06 12:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:19:05 - End Time 2025-04-06 12:19:05 [2025-04-06 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847476', 'tblTempUsageDetail_20' ) start [2025-04-06 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847476', 'tblTempUsageDetail_20' ) end [2025-04-06 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847476', 'tblTempVendorCDR_20' ) start [2025-04-06 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847476', 'tblTempVendorCDR_20' ) end [2025-04-06 12:19:18] Production.INFO: ProcessCDR(1,14847476,1,1,2) [2025-04-06 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847476', 'tblTempUsageDetail_20' ) start [2025-04-06 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847476', 'tblTempUsageDetail_20' ) end [2025-04-06 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:19:24] Production.INFO: ==22565== Releasing lock... [2025-04-06 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:19:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:20:06 [end_date_ymd] => 2025-04-06 12:20:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:20:06' and `end` < '2025-04-06 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-04-06 12:20:19] Production.INFO: count ==809 [2025-04-06 12:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:20:06 - End Time 2025-04-06 12:20:06 [2025-04-06 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847482', 'tblTempUsageDetail_20' ) start [2025-04-06 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847482', 'tblTempUsageDetail_20' ) end [2025-04-06 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847482', 'tblTempVendorCDR_20' ) start [2025-04-06 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847482', 'tblTempVendorCDR_20' ) end [2025-04-06 12:20:19] Production.INFO: ProcessCDR(1,14847482,1,1,2) [2025-04-06 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847482', 'tblTempUsageDetail_20' ) start [2025-04-06 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847482', 'tblTempUsageDetail_20' ) end [2025-04-06 12:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:20:22] Production.INFO: ==22649== Releasing lock... [2025-04-06 12:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:21:05 [end_date_ymd] => 2025-04-06 12:21:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:21:05' and `end` < '2025-04-06 12: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-04-06 12:21:18] Production.INFO: count ==823 [2025-04-06 12:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:21:05 - End Time 2025-04-06 12:21:05 [2025-04-06 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847487', 'tblTempUsageDetail_20' ) start [2025-04-06 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847487', 'tblTempUsageDetail_20' ) end [2025-04-06 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847487', 'tblTempVendorCDR_20' ) start [2025-04-06 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847487', 'tblTempVendorCDR_20' ) end [2025-04-06 12:21:18] Production.INFO: ProcessCDR(1,14847487,1,1,2) [2025-04-06 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847487', 'tblTempUsageDetail_20' ) start [2025-04-06 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847487', 'tblTempUsageDetail_20' ) end [2025-04-06 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:21:22] Production.INFO: ==22736== Releasing lock... [2025-04-06 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:21:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:22:06 [end_date_ymd] => 2025-04-06 12:22:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:22:06' and `end` < '2025-04-06 12: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-04-06 12:22:19] Production.INFO: count ==823 [2025-04-06 12:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:22:06 - End Time 2025-04-06 12:22:06 [2025-04-06 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847492', 'tblTempUsageDetail_20' ) start [2025-04-06 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847492', 'tblTempUsageDetail_20' ) end [2025-04-06 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847492', 'tblTempVendorCDR_20' ) start [2025-04-06 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847492', 'tblTempVendorCDR_20' ) end [2025-04-06 12:22:19] Production.INFO: ProcessCDR(1,14847492,1,1,2) [2025-04-06 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847492', 'tblTempUsageDetail_20' ) start [2025-04-06 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847492', 'tblTempUsageDetail_20' ) end [2025-04-06 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:22:22] Production.INFO: ==22821== Releasing lock... [2025-04-06 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:22:22] Production.INFO: 34 MB #Memory Used# [2025-04-06 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:23:05 [end_date_ymd] => 2025-04-06 12:23:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:23:05' and `end` < '2025-04-06 12: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-04-06 12:23:19] Production.INFO: count ==827 [2025-04-06 12:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:23:05 - End Time 2025-04-06 12:23:05 [2025-04-06 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847497', 'tblTempUsageDetail_20' ) start [2025-04-06 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847497', 'tblTempUsageDetail_20' ) end [2025-04-06 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847497', 'tblTempVendorCDR_20' ) start [2025-04-06 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847497', 'tblTempVendorCDR_20' ) end [2025-04-06 12:23:19] Production.INFO: ProcessCDR(1,14847497,1,1,2) [2025-04-06 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847497', 'tblTempUsageDetail_20' ) start [2025-04-06 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847497', 'tblTempUsageDetail_20' ) end [2025-04-06 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:23:23] Production.INFO: ==22911== Releasing lock... [2025-04-06 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:23:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:24:05 [end_date_ymd] => 2025-04-06 12:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:24:05' and `end` < '2025-04-06 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-04-06 12:24:18] Production.INFO: count ==827 [2025-04-06 12:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:24:05 - End Time 2025-04-06 12:24:05 [2025-04-06 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847502', 'tblTempUsageDetail_20' ) start [2025-04-06 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847502', 'tblTempUsageDetail_20' ) end [2025-04-06 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847502', 'tblTempVendorCDR_20' ) start [2025-04-06 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847502', 'tblTempVendorCDR_20' ) end [2025-04-06 12:24:18] Production.INFO: ProcessCDR(1,14847502,1,1,2) [2025-04-06 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847502', 'tblTempUsageDetail_20' ) start [2025-04-06 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847502', 'tblTempUsageDetail_20' ) end [2025-04-06 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:24:22] Production.INFO: ==22994== Releasing lock... [2025-04-06 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:25:05 [end_date_ymd] => 2025-04-06 12:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:25:05' and `end` < '2025-04-06 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-04-06 12:25:19] Production.INFO: count ==827 [2025-04-06 12:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:25:05 - End Time 2025-04-06 12:25:05 [2025-04-06 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847507', 'tblTempUsageDetail_20' ) start [2025-04-06 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847507', 'tblTempUsageDetail_20' ) end [2025-04-06 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847507', 'tblTempVendorCDR_20' ) start [2025-04-06 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847507', 'tblTempVendorCDR_20' ) end [2025-04-06 12:25:19] Production.INFO: ProcessCDR(1,14847507,1,1,2) [2025-04-06 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847507', 'tblTempUsageDetail_20' ) start [2025-04-06 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847507', 'tblTempUsageDetail_20' ) end [2025-04-06 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:25:22] Production.INFO: ==23079== Releasing lock... [2025-04-06 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:25:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:26:04 [end_date_ymd] => 2025-04-06 12:26:04 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:26:04' and `end` < '2025-04-06 12: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-04-06 12:26:17] Production.INFO: count ==827 [2025-04-06 12:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:26:04 - End Time 2025-04-06 12:26:04 [2025-04-06 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847512', 'tblTempUsageDetail_20' ) start [2025-04-06 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847512', 'tblTempUsageDetail_20' ) end [2025-04-06 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847512', 'tblTempVendorCDR_20' ) start [2025-04-06 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847512', 'tblTempVendorCDR_20' ) end [2025-04-06 12:26:18] Production.INFO: ProcessCDR(1,14847512,1,1,2) [2025-04-06 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847512', 'tblTempUsageDetail_20' ) start [2025-04-06 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847512', 'tblTempUsageDetail_20' ) end [2025-04-06 12:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:26:21] Production.INFO: ==23164== Releasing lock... [2025-04-06 12:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:27:05 [end_date_ymd] => 2025-04-06 12:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:27:05' and `end` < '2025-04-06 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-04-06 12:27:19] Production.INFO: count ==827 [2025-04-06 12:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:27:05 - End Time 2025-04-06 12:27:05 [2025-04-06 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847517', 'tblTempUsageDetail_20' ) start [2025-04-06 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847517', 'tblTempUsageDetail_20' ) end [2025-04-06 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847517', 'tblTempVendorCDR_20' ) start [2025-04-06 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847517', 'tblTempVendorCDR_20' ) end [2025-04-06 12:27:19] Production.INFO: ProcessCDR(1,14847517,1,1,2) [2025-04-06 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847517', 'tblTempUsageDetail_20' ) start [2025-04-06 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847517', 'tblTempUsageDetail_20' ) end [2025-04-06 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:27:22] Production.INFO: ==23251== Releasing lock... [2025-04-06 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:28:05 [end_date_ymd] => 2025-04-06 12:28:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:28:05' and `end` < '2025-04-06 12: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-04-06 12:28:18] Production.INFO: count ==828 [2025-04-06 12:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:28:05 - End Time 2025-04-06 12:28:05 [2025-04-06 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847522', 'tblTempUsageDetail_20' ) start [2025-04-06 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847522', 'tblTempUsageDetail_20' ) end [2025-04-06 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847522', 'tblTempVendorCDR_20' ) start [2025-04-06 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847522', 'tblTempVendorCDR_20' ) end [2025-04-06 12:28:18] Production.INFO: ProcessCDR(1,14847522,1,1,2) [2025-04-06 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847522', 'tblTempUsageDetail_20' ) start [2025-04-06 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847522', 'tblTempUsageDetail_20' ) end [2025-04-06 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:28:23] Production.INFO: ==23331== Releasing lock... [2025-04-06 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:28:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:29:05 [end_date_ymd] => 2025-04-06 12:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:29:05' and `end` < '2025-04-06 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-04-06 12:29:18] Production.INFO: count ==834 [2025-04-06 12:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:29:05 - End Time 2025-04-06 12:29:05 [2025-04-06 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847527', 'tblTempUsageDetail_20' ) start [2025-04-06 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847527', 'tblTempUsageDetail_20' ) end [2025-04-06 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847527', 'tblTempVendorCDR_20' ) start [2025-04-06 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847527', 'tblTempVendorCDR_20' ) end [2025-04-06 12:29:18] Production.INFO: ProcessCDR(1,14847527,1,1,2) [2025-04-06 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847527', 'tblTempUsageDetail_20' ) start [2025-04-06 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847527', 'tblTempUsageDetail_20' ) end [2025-04-06 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:29:21] Production.INFO: ==23414== Releasing lock... [2025-04-06 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:30:06 [end_date_ymd] => 2025-04-06 12:30:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:30:06' and `end` < '2025-04-06 12: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-04-06 12:30:18] Production.INFO: count ==839 [2025-04-06 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:30:06 - End Time 2025-04-06 12:30:06 [2025-04-06 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847533', 'tblTempUsageDetail_20' ) start [2025-04-06 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847533', 'tblTempUsageDetail_20' ) end [2025-04-06 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847533', 'tblTempVendorCDR_20' ) start [2025-04-06 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847533', 'tblTempVendorCDR_20' ) end [2025-04-06 12:30:19] Production.INFO: ProcessCDR(1,14847533,1,1,2) [2025-04-06 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847533', 'tblTempUsageDetail_20' ) start [2025-04-06 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847533', 'tblTempUsageDetail_20' ) end [2025-04-06 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:30:22] Production.INFO: ==23501== Releasing lock... [2025-04-06 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-06 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:31:05 [end_date_ymd] => 2025-04-06 12:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:31:05' and `end` < '2025-04-06 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-04-06 12:31:18] Production.INFO: count ==845 [2025-04-06 12:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:31:05 - End Time 2025-04-06 12:31:05 [2025-04-06 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847538', 'tblTempUsageDetail_20' ) start [2025-04-06 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847538', 'tblTempUsageDetail_20' ) end [2025-04-06 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847538', 'tblTempVendorCDR_20' ) start [2025-04-06 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847538', 'tblTempVendorCDR_20' ) end [2025-04-06 12:31:19] Production.INFO: ProcessCDR(1,14847538,1,1,2) [2025-04-06 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847538', 'tblTempUsageDetail_20' ) start [2025-04-06 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847538', 'tblTempUsageDetail_20' ) end [2025-04-06 12:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:31:24] Production.INFO: ==23587== Releasing lock... [2025-04-06 12:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:31:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:32:06 [end_date_ymd] => 2025-04-06 12:32:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:32:06' and `end` < '2025-04-06 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-04-06 12:32:19] Production.INFO: count ==845 [2025-04-06 12:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:32:06 - End Time 2025-04-06 12:32:06 [2025-04-06 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847543', 'tblTempUsageDetail_20' ) start [2025-04-06 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847543', 'tblTempUsageDetail_20' ) end [2025-04-06 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847543', 'tblTempVendorCDR_20' ) start [2025-04-06 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847543', 'tblTempVendorCDR_20' ) end [2025-04-06 12:32:19] Production.INFO: ProcessCDR(1,14847543,1,1,2) [2025-04-06 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847543', 'tblTempUsageDetail_20' ) start [2025-04-06 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847543', 'tblTempUsageDetail_20' ) end [2025-04-06 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:32:22] Production.INFO: ==23670== Releasing lock... [2025-04-06 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:32:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:33:05 [end_date_ymd] => 2025-04-06 12:33:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:33:05' and `end` < '2025-04-06 12: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-04-06 12:33:18] Production.INFO: count ==848 [2025-04-06 12:33:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:33:05 - End Time 2025-04-06 12:33:05 [2025-04-06 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847547', 'tblTempUsageDetail_20' ) start [2025-04-06 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847547', 'tblTempUsageDetail_20' ) end [2025-04-06 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847547', 'tblTempVendorCDR_20' ) start [2025-04-06 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847547', 'tblTempVendorCDR_20' ) end [2025-04-06 12:33:18] Production.INFO: ProcessCDR(1,14847547,1,1,2) [2025-04-06 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847547', 'tblTempUsageDetail_20' ) start [2025-04-06 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847547', 'tblTempUsageDetail_20' ) end [2025-04-06 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:33:22] Production.INFO: ==23754== Releasing lock... [2025-04-06 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:33:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:34:05 [end_date_ymd] => 2025-04-06 12:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:34:05' and `end` < '2025-04-06 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-04-06 12:34:18] Production.INFO: count ==848 [2025-04-06 12:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:34:05 - End Time 2025-04-06 12:34:05 [2025-04-06 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847551', 'tblTempUsageDetail_20' ) start [2025-04-06 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847551', 'tblTempUsageDetail_20' ) end [2025-04-06 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847551', 'tblTempVendorCDR_20' ) start [2025-04-06 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847551', 'tblTempVendorCDR_20' ) end [2025-04-06 12:34:18] Production.INFO: ProcessCDR(1,14847551,1,1,2) [2025-04-06 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847551', 'tblTempUsageDetail_20' ) start [2025-04-06 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847551', 'tblTempUsageDetail_20' ) end [2025-04-06 12:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:34:22] Production.INFO: ==23874== Releasing lock... [2025-04-06 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:35:05 [end_date_ymd] => 2025-04-06 12:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:35:05' and `end` < '2025-04-06 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-04-06 12:35:18] Production.INFO: count ==856 [2025-04-06 12:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:35:05 - End Time 2025-04-06 12:35:05 [2025-04-06 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847558', 'tblTempUsageDetail_20' ) start [2025-04-06 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847558', 'tblTempUsageDetail_20' ) end [2025-04-06 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847558', 'tblTempVendorCDR_20' ) start [2025-04-06 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847558', 'tblTempVendorCDR_20' ) end [2025-04-06 12:35:18] Production.INFO: ProcessCDR(1,14847558,1,1,2) [2025-04-06 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847558', 'tblTempUsageDetail_20' ) start [2025-04-06 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847558', 'tblTempUsageDetail_20' ) end [2025-04-06 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:35:22] Production.INFO: ==23956== Releasing lock... [2025-04-06 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:36:05 [end_date_ymd] => 2025-04-06 12:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:36:05' and `end` < '2025-04-06 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-04-06 12:36:18] Production.INFO: count ==860 [2025-04-06 12:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:36:05 - End Time 2025-04-06 12:36:05 [2025-04-06 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847563', 'tblTempUsageDetail_20' ) start [2025-04-06 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847563', 'tblTempUsageDetail_20' ) end [2025-04-06 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847563', 'tblTempVendorCDR_20' ) start [2025-04-06 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847563', 'tblTempVendorCDR_20' ) end [2025-04-06 12:36:18] Production.INFO: ProcessCDR(1,14847563,1,1,2) [2025-04-06 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847563', 'tblTempUsageDetail_20' ) start [2025-04-06 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847563', 'tblTempUsageDetail_20' ) end [2025-04-06 12:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:36:21] Production.INFO: ==24039== Releasing lock... [2025-04-06 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:37:05 [end_date_ymd] => 2025-04-06 12:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:37:05' and `end` < '2025-04-06 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-04-06 12:37:18] Production.INFO: count ==884 [2025-04-06 12:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:37:05 - End Time 2025-04-06 12:37:05 [2025-04-06 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847568', 'tblTempUsageDetail_20' ) start [2025-04-06 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847568', 'tblTempUsageDetail_20' ) end [2025-04-06 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847568', 'tblTempVendorCDR_20' ) start [2025-04-06 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847568', 'tblTempVendorCDR_20' ) end [2025-04-06 12:37:19] Production.INFO: ProcessCDR(1,14847568,1,1,2) [2025-04-06 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847568', 'tblTempUsageDetail_20' ) start [2025-04-06 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847568', 'tblTempUsageDetail_20' ) end [2025-04-06 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:37:22] Production.INFO: ==24121== Releasing lock... [2025-04-06 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:38:06 [end_date_ymd] => 2025-04-06 12:38:06 [RateCDR] => 1 ) [2025-04-06 12:38: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-04-06 09:38:06' and `end` < '2025-04-06 12:38: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-04-06 12:38:19] Production.INFO: count ==887 [2025-04-06 12:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:38:06 - End Time 2025-04-06 12:38:06 [2025-04-06 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847573', 'tblTempUsageDetail_20' ) start [2025-04-06 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847573', 'tblTempUsageDetail_20' ) end [2025-04-06 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847573', 'tblTempVendorCDR_20' ) start [2025-04-06 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847573', 'tblTempVendorCDR_20' ) end [2025-04-06 12:38:19] Production.INFO: ProcessCDR(1,14847573,1,1,2) [2025-04-06 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847573', 'tblTempUsageDetail_20' ) start [2025-04-06 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847573', 'tblTempUsageDetail_20' ) end [2025-04-06 12:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:38:24] Production.INFO: ==24201== Releasing lock... [2025-04-06 12:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:38:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-06 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:39:05 [end_date_ymd] => 2025-04-06 12:39:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:39:05' and `end` < '2025-04-06 12: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-04-06 12:39:18] Production.INFO: count ==887 [2025-04-06 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:39:05 - End Time 2025-04-06 12:39:05 [2025-04-06 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847578', 'tblTempUsageDetail_20' ) start [2025-04-06 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847578', 'tblTempUsageDetail_20' ) end [2025-04-06 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847578', 'tblTempVendorCDR_20' ) start [2025-04-06 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847578', 'tblTempVendorCDR_20' ) end [2025-04-06 12:39:18] Production.INFO: ProcessCDR(1,14847578,1,1,2) [2025-04-06 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847578', 'tblTempUsageDetail_20' ) start [2025-04-06 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847578', 'tblTempUsageDetail_20' ) end [2025-04-06 12:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:39:21] Production.INFO: ==24283== Releasing lock... [2025-04-06 12:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:40:07 [end_date_ymd] => 2025-04-06 12:40:07 [RateCDR] => 1 ) [2025-04-06 12:40: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-04-06 09:40:07' and `end` < '2025-04-06 12:40: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-04-06 12:40:19] Production.INFO: count ==899 [2025-04-06 12:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 09:40:07 - End Time 2025-04-06 12:40:07 [2025-04-06 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847584', 'tblTempUsageDetail_20' ) start [2025-04-06 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847584', 'tblTempUsageDetail_20' ) end [2025-04-06 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847584', 'tblTempVendorCDR_20' ) start [2025-04-06 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847584', 'tblTempVendorCDR_20' ) end [2025-04-06 12:40:20] Production.INFO: ProcessCDR(1,14847584,1,1,2) [2025-04-06 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847584', 'tblTempUsageDetail_20' ) start [2025-04-06 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847584', 'tblTempUsageDetail_20' ) end [2025-04-06 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:40:23] Production.INFO: ==24362== Releasing lock... [2025-04-06 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:40:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:41:05 [end_date_ymd] => 2025-04-06 12:41:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:41:05' and `end` < '2025-04-06 12: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-04-06 12:41:18] Production.INFO: count ==903 [2025-04-06 12:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:41:05 - End Time 2025-04-06 12:41:05 [2025-04-06 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847589', 'tblTempUsageDetail_20' ) start [2025-04-06 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847589', 'tblTempUsageDetail_20' ) end [2025-04-06 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847589', 'tblTempVendorCDR_20' ) start [2025-04-06 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847589', 'tblTempVendorCDR_20' ) end [2025-04-06 12:41:18] Production.INFO: ProcessCDR(1,14847589,1,1,2) [2025-04-06 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847589', 'tblTempUsageDetail_20' ) start [2025-04-06 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847589', 'tblTempUsageDetail_20' ) end [2025-04-06 12:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:41:21] Production.INFO: ==24455== Releasing lock... [2025-04-06 12:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:42:05 [end_date_ymd] => 2025-04-06 12:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:42:05' and `end` < '2025-04-06 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-04-06 12:42:18] Production.INFO: count ==904 [2025-04-06 12:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:42:05 - End Time 2025-04-06 12:42:05 [2025-04-06 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847594', 'tblTempUsageDetail_20' ) start [2025-04-06 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847594', 'tblTempUsageDetail_20' ) end [2025-04-06 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847594', 'tblTempVendorCDR_20' ) start [2025-04-06 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847594', 'tblTempVendorCDR_20' ) end [2025-04-06 12:42:18] Production.INFO: ProcessCDR(1,14847594,1,1,2) [2025-04-06 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847594', 'tblTempUsageDetail_20' ) start [2025-04-06 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847594', 'tblTempUsageDetail_20' ) end [2025-04-06 12:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:42:22] Production.INFO: ==24534== Releasing lock... [2025-04-06 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:42:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:43:05 [end_date_ymd] => 2025-04-06 12:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:43:05' and `end` < '2025-04-06 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-04-06 12:43:18] Production.INFO: count ==909 [2025-04-06 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:43:05 - End Time 2025-04-06 12:43:05 [2025-04-06 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847599', 'tblTempUsageDetail_20' ) start [2025-04-06 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847599', 'tblTempUsageDetail_20' ) end [2025-04-06 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847599', 'tblTempVendorCDR_20' ) start [2025-04-06 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847599', 'tblTempVendorCDR_20' ) end [2025-04-06 12:43:18] Production.INFO: ProcessCDR(1,14847599,1,1,2) [2025-04-06 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847599', 'tblTempUsageDetail_20' ) start [2025-04-06 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847599', 'tblTempUsageDetail_20' ) end [2025-04-06 12:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:43:22] Production.INFO: ==24614== Releasing lock... [2025-04-06 12:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:43:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:44:05 [end_date_ymd] => 2025-04-06 12:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:44:05' and `end` < '2025-04-06 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-04-06 12:44:18] Production.INFO: count ==913 [2025-04-06 12:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:44:05 - End Time 2025-04-06 12:44:05 [2025-04-06 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847604', 'tblTempUsageDetail_20' ) start [2025-04-06 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847604', 'tblTempUsageDetail_20' ) end [2025-04-06 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847604', 'tblTempVendorCDR_20' ) start [2025-04-06 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847604', 'tblTempVendorCDR_20' ) end [2025-04-06 12:44:19] Production.INFO: ProcessCDR(1,14847604,1,1,2) [2025-04-06 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847604', 'tblTempUsageDetail_20' ) start [2025-04-06 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847604', 'tblTempUsageDetail_20' ) end [2025-04-06 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:44:22] Production.INFO: ==24699== Releasing lock... [2025-04-06 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:44:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:45:05 [end_date_ymd] => 2025-04-06 12:45:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:45:05' and `end` < '2025-04-06 12: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-04-06 12:45:18] Production.INFO: count ==915 [2025-04-06 12:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:45:05 - End Time 2025-04-06 12:45:05 [2025-04-06 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847609', 'tblTempUsageDetail_20' ) start [2025-04-06 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847609', 'tblTempUsageDetail_20' ) end [2025-04-06 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847609', 'tblTempVendorCDR_20' ) start [2025-04-06 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847609', 'tblTempVendorCDR_20' ) end [2025-04-06 12:45:18] Production.INFO: ProcessCDR(1,14847609,1,1,2) [2025-04-06 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847609', 'tblTempUsageDetail_20' ) start [2025-04-06 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847609', 'tblTempUsageDetail_20' ) end [2025-04-06 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:45:24] Production.INFO: ==24780== Releasing lock... [2025-04-06 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:45:24] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:46:05 [end_date_ymd] => 2025-04-06 12:46:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:46:05' and `end` < '2025-04-06 12: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-04-06 12:46:18] Production.INFO: count ==908 [2025-04-06 12:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:46:05 - End Time 2025-04-06 12:46:05 [2025-04-06 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847614', 'tblTempUsageDetail_20' ) start [2025-04-06 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847614', 'tblTempUsageDetail_20' ) end [2025-04-06 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847614', 'tblTempVendorCDR_20' ) start [2025-04-06 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847614', 'tblTempVendorCDR_20' ) end [2025-04-06 12:46:18] Production.INFO: ProcessCDR(1,14847614,1,1,2) [2025-04-06 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847614', 'tblTempUsageDetail_20' ) start [2025-04-06 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847614', 'tblTempUsageDetail_20' ) end [2025-04-06 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:46:22] Production.INFO: ==24859== Releasing lock... [2025-04-06 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:46:22] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:47:05 [end_date_ymd] => 2025-04-06 12:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:47:05' and `end` < '2025-04-06 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-04-06 12:47:17] Production.INFO: count ==909 [2025-04-06 12:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:47:05 - End Time 2025-04-06 12:47:05 [2025-04-06 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847619', 'tblTempUsageDetail_20' ) start [2025-04-06 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847619', 'tblTempUsageDetail_20' ) end [2025-04-06 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847619', 'tblTempVendorCDR_20' ) start [2025-04-06 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847619', 'tblTempVendorCDR_20' ) end [2025-04-06 12:47:18] Production.INFO: ProcessCDR(1,14847619,1,1,2) [2025-04-06 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847619', 'tblTempUsageDetail_20' ) start [2025-04-06 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847619', 'tblTempUsageDetail_20' ) end [2025-04-06 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:47:23] Production.INFO: ==24944== Releasing lock... [2025-04-06 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:47:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:48:05 [end_date_ymd] => 2025-04-06 12:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:48:05' and `end` < '2025-04-06 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-04-06 12:48:18] Production.INFO: count ==911 [2025-04-06 12:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:48:05 - End Time 2025-04-06 12:48:05 [2025-04-06 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847624', 'tblTempUsageDetail_20' ) start [2025-04-06 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847624', 'tblTempUsageDetail_20' ) end [2025-04-06 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847624', 'tblTempVendorCDR_20' ) start [2025-04-06 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847624', 'tblTempVendorCDR_20' ) end [2025-04-06 12:48:19] Production.INFO: ProcessCDR(1,14847624,1,1,2) [2025-04-06 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847624', 'tblTempUsageDetail_20' ) start [2025-04-06 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847624', 'tblTempUsageDetail_20' ) end [2025-04-06 12:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:48:24] Production.INFO: ==25031== Releasing lock... [2025-04-06 12:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:48:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:49:05 [end_date_ymd] => 2025-04-06 12:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:49:05' and `end` < '2025-04-06 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-04-06 12:49:17] Production.INFO: count ==911 [2025-04-06 12:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:49:05 - End Time 2025-04-06 12:49:05 [2025-04-06 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847629', 'tblTempUsageDetail_20' ) start [2025-04-06 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847629', 'tblTempUsageDetail_20' ) end [2025-04-06 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847629', 'tblTempVendorCDR_20' ) start [2025-04-06 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847629', 'tblTempVendorCDR_20' ) end [2025-04-06 12:49:18] Production.INFO: ProcessCDR(1,14847629,1,1,2) [2025-04-06 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847629', 'tblTempUsageDetail_20' ) start [2025-04-06 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847629', 'tblTempUsageDetail_20' ) end [2025-04-06 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:49:21] Production.INFO: ==25153== Releasing lock... [2025-04-06 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:50:06 [end_date_ymd] => 2025-04-06 12:50:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:50:06' and `end` < '2025-04-06 12: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-04-06 12:50:19] Production.INFO: count ==911 [2025-04-06 12:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:50:06 - End Time 2025-04-06 12:50:06 [2025-04-06 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847635', 'tblTempUsageDetail_20' ) start [2025-04-06 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847635', 'tblTempUsageDetail_20' ) end [2025-04-06 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847635', 'tblTempVendorCDR_20' ) start [2025-04-06 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847635', 'tblTempVendorCDR_20' ) end [2025-04-06 12:50:19] Production.INFO: ProcessCDR(1,14847635,1,1,2) [2025-04-06 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847635', 'tblTempUsageDetail_20' ) start [2025-04-06 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847635', 'tblTempUsageDetail_20' ) end [2025-04-06 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:50:24] Production.INFO: ==25235== Releasing lock... [2025-04-06 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:50:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:51:05 [end_date_ymd] => 2025-04-06 12:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:51:05' and `end` < '2025-04-06 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-04-06 12:51:18] Production.INFO: count ==917 [2025-04-06 12:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:51:05 - End Time 2025-04-06 12:51:05 [2025-04-06 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847640', 'tblTempUsageDetail_20' ) start [2025-04-06 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847640', 'tblTempUsageDetail_20' ) end [2025-04-06 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847640', 'tblTempVendorCDR_20' ) start [2025-04-06 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847640', 'tblTempVendorCDR_20' ) end [2025-04-06 12:51:18] Production.INFO: ProcessCDR(1,14847640,1,1,2) [2025-04-06 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847640', 'tblTempUsageDetail_20' ) start [2025-04-06 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847640', 'tblTempUsageDetail_20' ) end [2025-04-06 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:51:22] Production.INFO: ==25325== Releasing lock... [2025-04-06 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:52:06 [end_date_ymd] => 2025-04-06 12:52:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:52:06' and `end` < '2025-04-06 12: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-04-06 12:52:19] Production.INFO: count ==918 [2025-04-06 12:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:52:06 - End Time 2025-04-06 12:52:06 [2025-04-06 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847645', 'tblTempUsageDetail_20' ) start [2025-04-06 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847645', 'tblTempUsageDetail_20' ) end [2025-04-06 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847645', 'tblTempVendorCDR_20' ) start [2025-04-06 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847645', 'tblTempVendorCDR_20' ) end [2025-04-06 12:52:19] Production.INFO: ProcessCDR(1,14847645,1,1,2) [2025-04-06 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847645', 'tblTempUsageDetail_20' ) start [2025-04-06 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847645', 'tblTempUsageDetail_20' ) end [2025-04-06 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:52:23] Production.INFO: ==25400== Releasing lock... [2025-04-06 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:52:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:53:05 [end_date_ymd] => 2025-04-06 12:53:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:53:05' and `end` < '2025-04-06 12: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-04-06 12:53:18] Production.INFO: count ==914 [2025-04-06 12:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:53:05 - End Time 2025-04-06 12:53:05 [2025-04-06 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847650', 'tblTempUsageDetail_20' ) start [2025-04-06 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847650', 'tblTempUsageDetail_20' ) end [2025-04-06 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847650', 'tblTempVendorCDR_20' ) start [2025-04-06 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847650', 'tblTempVendorCDR_20' ) end [2025-04-06 12:53:19] Production.INFO: ProcessCDR(1,14847650,1,1,2) [2025-04-06 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847650', 'tblTempUsageDetail_20' ) start [2025-04-06 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847650', 'tblTempUsageDetail_20' ) end [2025-04-06 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:53:22] Production.INFO: ==25484== Releasing lock... [2025-04-06 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:53:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:54:05 [end_date_ymd] => 2025-04-06 12:54:05 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:54:05' and `end` < '2025-04-06 12: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-04-06 12:54:18] Production.INFO: count ==914 [2025-04-06 12:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:54:05 - End Time 2025-04-06 12:54:05 [2025-04-06 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847655', 'tblTempUsageDetail_20' ) start [2025-04-06 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847655', 'tblTempUsageDetail_20' ) end [2025-04-06 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847655', 'tblTempVendorCDR_20' ) start [2025-04-06 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847655', 'tblTempVendorCDR_20' ) end [2025-04-06 12:54:18] Production.INFO: ProcessCDR(1,14847655,1,1,2) [2025-04-06 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847655', 'tblTempUsageDetail_20' ) start [2025-04-06 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847655', 'tblTempUsageDetail_20' ) end [2025-04-06 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:54:22] Production.INFO: ==25566== Releasing lock... [2025-04-06 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:55:06 [end_date_ymd] => 2025-04-06 12:55:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:55:06' and `end` < '2025-04-06 12: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-04-06 12:55:19] Production.INFO: count ==914 [2025-04-06 12:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:55:06 - End Time 2025-04-06 12:55:06 [2025-04-06 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847660', 'tblTempUsageDetail_20' ) start [2025-04-06 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847660', 'tblTempUsageDetail_20' ) end [2025-04-06 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847660', 'tblTempVendorCDR_20' ) start [2025-04-06 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847660', 'tblTempVendorCDR_20' ) end [2025-04-06 12:55:19] Production.INFO: ProcessCDR(1,14847660,1,1,2) [2025-04-06 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847660', 'tblTempUsageDetail_20' ) start [2025-04-06 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847660', 'tblTempUsageDetail_20' ) end [2025-04-06 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:55:23] Production.INFO: ==25644== Releasing lock... [2025-04-06 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:55:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:56:05 [end_date_ymd] => 2025-04-06 12:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:56:05' and `end` < '2025-04-06 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-04-06 12:56:18] Production.INFO: count ==919 [2025-04-06 12:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:56:05 - End Time 2025-04-06 12:56:05 [2025-04-06 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847665', 'tblTempUsageDetail_20' ) start [2025-04-06 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847665', 'tblTempUsageDetail_20' ) end [2025-04-06 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847665', 'tblTempVendorCDR_20' ) start [2025-04-06 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847665', 'tblTempVendorCDR_20' ) end [2025-04-06 12:56:18] Production.INFO: ProcessCDR(1,14847665,1,1,2) [2025-04-06 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847665', 'tblTempUsageDetail_20' ) start [2025-04-06 12:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847665', 'tblTempUsageDetail_20' ) end [2025-04-06 12:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:56:24] Production.INFO: ==25727== Releasing lock... [2025-04-06 12:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:56:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-06 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:57:06 [end_date_ymd] => 2025-04-06 12:57:06 [RateCDR] => 1 ) [2025-04-06 12: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-04-06 09:57:06' and `end` < '2025-04-06 12: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-04-06 12:57:19] Production.INFO: count ==923 [2025-04-06 12:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 09:57:06 - End Time 2025-04-06 12:57:06 [2025-04-06 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847670', 'tblTempUsageDetail_20' ) start [2025-04-06 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847670', 'tblTempUsageDetail_20' ) end [2025-04-06 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847670', 'tblTempVendorCDR_20' ) start [2025-04-06 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847670', 'tblTempVendorCDR_20' ) end [2025-04-06 12:57:19] Production.INFO: ProcessCDR(1,14847670,1,1,2) [2025-04-06 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847670', 'tblTempUsageDetail_20' ) start [2025-04-06 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847670', 'tblTempUsageDetail_20' ) end [2025-04-06 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:57:23] Production.INFO: ==25809== Releasing lock... [2025-04-06 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:57:23] Production.INFO: 35 MB #Memory Used# [2025-04-06 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:58:05 [end_date_ymd] => 2025-04-06 12:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:58:05' and `end` < '2025-04-06 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-04-06 12:58:17] Production.INFO: count ==931 [2025-04-06 12:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:58:05 - End Time 2025-04-06 12:58:05 [2025-04-06 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847675', 'tblTempUsageDetail_20' ) start [2025-04-06 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847675', 'tblTempUsageDetail_20' ) end [2025-04-06 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847675', 'tblTempVendorCDR_20' ) start [2025-04-06 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847675', 'tblTempVendorCDR_20' ) end [2025-04-06 12:58:18] Production.INFO: ProcessCDR(1,14847675,1,1,2) [2025-04-06 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847675', 'tblTempUsageDetail_20' ) start [2025-04-06 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847675', 'tblTempUsageDetail_20' ) end [2025-04-06 12:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:58:21] Production.INFO: ==25893== Releasing lock... [2025-04-06 12:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:58:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 09:59:05 [end_date_ymd] => 2025-04-06 12:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 09:59:05' and `end` < '2025-04-06 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-04-06 12:59:18] Production.INFO: count ==939 [2025-04-06 12:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 09:59:05 - End Time 2025-04-06 12:59:05 [2025-04-06 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847680', 'tblTempUsageDetail_20' ) start [2025-04-06 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847680', 'tblTempUsageDetail_20' ) end [2025-04-06 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847680', 'tblTempVendorCDR_20' ) start [2025-04-06 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847680', 'tblTempVendorCDR_20' ) end [2025-04-06 12:59:18] Production.INFO: ProcessCDR(1,14847680,1,1,2) [2025-04-06 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847680', 'tblTempUsageDetail_20' ) start [2025-04-06 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847680', 'tblTempUsageDetail_20' ) end [2025-04-06 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 12:59:22] Production.INFO: ==25977== Releasing lock... [2025-04-06 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 12:59:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:00:06 [end_date_ymd] => 2025-04-06 13:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:00:06' and `end` < '2025-04-06 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-04-06 13:00:19] Production.INFO: count ==948 [2025-04-06 13:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:00:06 - End Time 2025-04-06 13:00:06 [2025-04-06 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847686', 'tblTempUsageDetail_20' ) start [2025-04-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847686', 'tblTempUsageDetail_20' ) end [2025-04-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847686', 'tblTempVendorCDR_20' ) start [2025-04-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847686', 'tblTempVendorCDR_20' ) end [2025-04-06 13:00:19] Production.INFO: ProcessCDR(1,14847686,1,1,2) [2025-04-06 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847686', 'tblTempUsageDetail_20' ) start [2025-04-06 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847686', 'tblTempUsageDetail_20' ) end [2025-04-06 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:00:23] Production.INFO: ==26063== Releasing lock... [2025-04-06 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:00:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:01:05 [end_date_ymd] => 2025-04-06 13:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:01:05' and `end` < '2025-04-06 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-04-06 13:01:17] Production.INFO: count ==946 [2025-04-06 13:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:01:05 - End Time 2025-04-06 13:01:05 [2025-04-06 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847691', 'tblTempUsageDetail_20' ) start [2025-04-06 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847691', 'tblTempUsageDetail_20' ) end [2025-04-06 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847691', 'tblTempVendorCDR_20' ) start [2025-04-06 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847691', 'tblTempVendorCDR_20' ) end [2025-04-06 13:01:18] Production.INFO: ProcessCDR(1,14847691,1,1,2) [2025-04-06 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847691', 'tblTempUsageDetail_20' ) start [2025-04-06 13:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847691', 'tblTempUsageDetail_20' ) end [2025-04-06 13:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:01:21] Production.INFO: ==26156== Releasing lock... [2025-04-06 13:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:01:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:02:05 [end_date_ymd] => 2025-04-06 13:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:02:05' and `end` < '2025-04-06 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-04-06 13:02:19] Production.INFO: count ==942 [2025-04-06 13:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:02:05 - End Time 2025-04-06 13:02:05 [2025-04-06 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847696', 'tblTempUsageDetail_20' ) start [2025-04-06 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847696', 'tblTempUsageDetail_20' ) end [2025-04-06 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847696', 'tblTempVendorCDR_20' ) start [2025-04-06 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847696', 'tblTempVendorCDR_20' ) end [2025-04-06 13:02:19] Production.INFO: ProcessCDR(1,14847696,1,1,2) [2025-04-06 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847696', 'tblTempUsageDetail_20' ) start [2025-04-06 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847696', 'tblTempUsageDetail_20' ) end [2025-04-06 13:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:02:25] Production.INFO: ==26236== Releasing lock... [2025-04-06 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:02:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:03:06 [end_date_ymd] => 2025-04-06 13:03:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:03:06' and `end` < '2025-04-06 13: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-04-06 13:03:19] Production.INFO: count ==942 [2025-04-06 13:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:03:06 - End Time 2025-04-06 13:03:06 [2025-04-06 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847701', 'tblTempUsageDetail_20' ) start [2025-04-06 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847701', 'tblTempUsageDetail_20' ) end [2025-04-06 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847701', 'tblTempVendorCDR_20' ) start [2025-04-06 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847701', 'tblTempVendorCDR_20' ) end [2025-04-06 13:03:19] Production.INFO: ProcessCDR(1,14847701,1,1,2) [2025-04-06 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847701', 'tblTempUsageDetail_20' ) start [2025-04-06 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847701', 'tblTempUsageDetail_20' ) end [2025-04-06 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:03:23] Production.INFO: ==26327== Releasing lock... [2025-04-06 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:03:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:04:06 [end_date_ymd] => 2025-04-06 13:04:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:04:06' and `end` < '2025-04-06 13: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-04-06 13:04:18] Production.INFO: count ==942 [2025-04-06 13:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:04:06 - End Time 2025-04-06 13:04:06 [2025-04-06 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847706', 'tblTempUsageDetail_20' ) start [2025-04-06 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847706', 'tblTempUsageDetail_20' ) end [2025-04-06 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847706', 'tblTempVendorCDR_20' ) start [2025-04-06 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847706', 'tblTempVendorCDR_20' ) end [2025-04-06 13:04:19] Production.INFO: ProcessCDR(1,14847706,1,1,2) [2025-04-06 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847706', 'tblTempUsageDetail_20' ) start [2025-04-06 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847706', 'tblTempUsageDetail_20' ) end [2025-04-06 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:04:23] Production.INFO: ==26455== Releasing lock... [2025-04-06 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:04:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:05:06 [end_date_ymd] => 2025-04-06 13:05:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:05:06' and `end` < '2025-04-06 13: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-04-06 13:05:19] Production.INFO: count ==943 [2025-04-06 13:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:05:06 - End Time 2025-04-06 13:05:06 [2025-04-06 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847711', 'tblTempUsageDetail_20' ) start [2025-04-06 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847711', 'tblTempUsageDetail_20' ) end [2025-04-06 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847711', 'tblTempVendorCDR_20' ) start [2025-04-06 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847711', 'tblTempVendorCDR_20' ) end [2025-04-06 13:05:19] Production.INFO: ProcessCDR(1,14847711,1,1,2) [2025-04-06 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847711', 'tblTempUsageDetail_20' ) start [2025-04-06 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847711', 'tblTempUsageDetail_20' ) end [2025-04-06 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:05:23] Production.INFO: ==26533== Releasing lock... [2025-04-06 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:05:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:06:06 [end_date_ymd] => 2025-04-06 13:06:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:06:06' and `end` < '2025-04-06 13: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-04-06 13:06:19] Production.INFO: count ==946 [2025-04-06 13:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:06:06 - End Time 2025-04-06 13:06:06 [2025-04-06 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847716', 'tblTempUsageDetail_20' ) start [2025-04-06 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847716', 'tblTempUsageDetail_20' ) end [2025-04-06 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847716', 'tblTempVendorCDR_20' ) start [2025-04-06 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847716', 'tblTempVendorCDR_20' ) end [2025-04-06 13:06:19] Production.INFO: ProcessCDR(1,14847716,1,1,2) [2025-04-06 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847716', 'tblTempUsageDetail_20' ) start [2025-04-06 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847716', 'tblTempUsageDetail_20' ) end [2025-04-06 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:06:24] Production.INFO: ==26613== Releasing lock... [2025-04-06 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:06:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:07:06 [end_date_ymd] => 2025-04-06 13:07:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:07:06' and `end` < '2025-04-06 13:07: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-04-06 13:07:19] Production.INFO: count ==958 [2025-04-06 13:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:07:06 - End Time 2025-04-06 13:07:06 [2025-04-06 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847721', 'tblTempUsageDetail_20' ) start [2025-04-06 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847721', 'tblTempUsageDetail_20' ) end [2025-04-06 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847721', 'tblTempVendorCDR_20' ) start [2025-04-06 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847721', 'tblTempVendorCDR_20' ) end [2025-04-06 13:07:19] Production.INFO: ProcessCDR(1,14847721,1,1,2) [2025-04-06 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847721', 'tblTempUsageDetail_20' ) start [2025-04-06 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847721', 'tblTempUsageDetail_20' ) end [2025-04-06 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:07:23] Production.INFO: ==26694== Releasing lock... [2025-04-06 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:07:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:08:05 [end_date_ymd] => 2025-04-06 13:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:08:05' and `end` < '2025-04-06 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-04-06 13:08:19] Production.INFO: count ==962 [2025-04-06 13:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:08:05 - End Time 2025-04-06 13:08:05 [2025-04-06 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847726', 'tblTempUsageDetail_20' ) start [2025-04-06 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847726', 'tblTempUsageDetail_20' ) end [2025-04-06 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847726', 'tblTempVendorCDR_20' ) start [2025-04-06 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847726', 'tblTempVendorCDR_20' ) end [2025-04-06 13:08:19] Production.INFO: ProcessCDR(1,14847726,1,1,2) [2025-04-06 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847726', 'tblTempUsageDetail_20' ) start [2025-04-06 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847726', 'tblTempUsageDetail_20' ) end [2025-04-06 13:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:08:23] Production.INFO: ==26770== Releasing lock... [2025-04-06 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:08:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:09:06 [end_date_ymd] => 2025-04-06 13:09:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:09:06' and `end` < '2025-04-06 13: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-04-06 13:09:19] Production.INFO: count ==966 [2025-04-06 13:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:09:06 - End Time 2025-04-06 13:09:06 [2025-04-06 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847731', 'tblTempUsageDetail_20' ) start [2025-04-06 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847731', 'tblTempUsageDetail_20' ) end [2025-04-06 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847731', 'tblTempVendorCDR_20' ) start [2025-04-06 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847731', 'tblTempVendorCDR_20' ) end [2025-04-06 13:09:19] Production.INFO: ProcessCDR(1,14847731,1,1,2) [2025-04-06 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847731', 'tblTempUsageDetail_20' ) start [2025-04-06 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847731', 'tblTempUsageDetail_20' ) end [2025-04-06 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:09:25] Production.INFO: ==26845== Releasing lock... [2025-04-06 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:09:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:10:06 [end_date_ymd] => 2025-04-06 13:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:10:06' and `end` < '2025-04-06 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-04-06 13:10:19] Production.INFO: count ==975 [2025-04-06 13:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:10:06 - End Time 2025-04-06 13:10:06 [2025-04-06 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847737', 'tblTempUsageDetail_20' ) start [2025-04-06 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847737', 'tblTempUsageDetail_20' ) end [2025-04-06 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847737', 'tblTempVendorCDR_20' ) start [2025-04-06 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847737', 'tblTempVendorCDR_20' ) end [2025-04-06 13:10:19] Production.INFO: ProcessCDR(1,14847737,1,1,2) [2025-04-06 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847737', 'tblTempUsageDetail_20' ) start [2025-04-06 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847737', 'tblTempUsageDetail_20' ) end [2025-04-06 13:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:10:22] Production.INFO: ==26918== Releasing lock... [2025-04-06 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:11:06 [end_date_ymd] => 2025-04-06 13:11:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:11:06' and `end` < '2025-04-06 13: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-04-06 13:11:19] Production.INFO: count ==990 [2025-04-06 13:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:11:06 - End Time 2025-04-06 13:11:06 [2025-04-06 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847742', 'tblTempUsageDetail_20' ) start [2025-04-06 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847742', 'tblTempUsageDetail_20' ) end [2025-04-06 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847742', 'tblTempVendorCDR_20' ) start [2025-04-06 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847742', 'tblTempVendorCDR_20' ) end [2025-04-06 13:11:19] Production.INFO: ProcessCDR(1,14847742,1,1,2) [2025-04-06 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847742', 'tblTempUsageDetail_20' ) start [2025-04-06 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847742', 'tblTempUsageDetail_20' ) end [2025-04-06 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:11:24] Production.INFO: ==26994== Releasing lock... [2025-04-06 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:11:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:12:05 [end_date_ymd] => 2025-04-06 13:12:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:12:05' and `end` < '2025-04-06 13: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-04-06 13:12:19] Production.INFO: count ==990 [2025-04-06 13:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:12:05 - End Time 2025-04-06 13:12:05 [2025-04-06 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847747', 'tblTempUsageDetail_20' ) start [2025-04-06 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847747', 'tblTempUsageDetail_20' ) end [2025-04-06 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847747', 'tblTempVendorCDR_20' ) start [2025-04-06 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847747', 'tblTempVendorCDR_20' ) end [2025-04-06 13:12:19] Production.INFO: ProcessCDR(1,14847747,1,1,2) [2025-04-06 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847747', 'tblTempUsageDetail_20' ) start [2025-04-06 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847747', 'tblTempUsageDetail_20' ) end [2025-04-06 13:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:12:24] Production.INFO: ==27068== Releasing lock... [2025-04-06 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:12:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:13:06 [end_date_ymd] => 2025-04-06 13:13:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:13:06' and `end` < '2025-04-06 13: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-04-06 13:13:19] Production.INFO: count ==989 [2025-04-06 13:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:13:06 - End Time 2025-04-06 13:13:06 [2025-04-06 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847752', 'tblTempUsageDetail_20' ) start [2025-04-06 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847752', 'tblTempUsageDetail_20' ) end [2025-04-06 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847752', 'tblTempVendorCDR_20' ) start [2025-04-06 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847752', 'tblTempVendorCDR_20' ) end [2025-04-06 13:13:19] Production.INFO: ProcessCDR(1,14847752,1,1,2) [2025-04-06 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847752', 'tblTempUsageDetail_20' ) start [2025-04-06 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847752', 'tblTempUsageDetail_20' ) end [2025-04-06 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:13:22] Production.INFO: ==27140== Releasing lock... [2025-04-06 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:13:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:14:05 [end_date_ymd] => 2025-04-06 13:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:14:05' and `end` < '2025-04-06 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-04-06 13:14:18] Production.INFO: count ==989 [2025-04-06 13:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:14:05 - End Time 2025-04-06 13:14:05 [2025-04-06 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847757', 'tblTempUsageDetail_20' ) start [2025-04-06 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847757', 'tblTempUsageDetail_20' ) end [2025-04-06 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847757', 'tblTempVendorCDR_20' ) start [2025-04-06 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847757', 'tblTempVendorCDR_20' ) end [2025-04-06 13:14:19] Production.INFO: ProcessCDR(1,14847757,1,1,2) [2025-04-06 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847757', 'tblTempUsageDetail_20' ) start [2025-04-06 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847757', 'tblTempUsageDetail_20' ) end [2025-04-06 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:14:22] Production.INFO: ==27210== Releasing lock... [2025-04-06 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:15:06 [end_date_ymd] => 2025-04-06 13:15:06 [RateCDR] => 1 ) [2025-04-06 13:15: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-04-06 10:15:06' and `end` < '2025-04-06 13:15: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-04-06 13:15:18] Production.INFO: count ==980 [2025-04-06 13:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:15:06 - End Time 2025-04-06 13:15:06 [2025-04-06 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847762', 'tblTempUsageDetail_20' ) start [2025-04-06 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847762', 'tblTempUsageDetail_20' ) end [2025-04-06 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847762', 'tblTempVendorCDR_20' ) start [2025-04-06 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847762', 'tblTempVendorCDR_20' ) end [2025-04-06 13:15:19] Production.INFO: ProcessCDR(1,14847762,1,1,2) [2025-04-06 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847762', 'tblTempUsageDetail_20' ) start [2025-04-06 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847762', 'tblTempUsageDetail_20' ) end [2025-04-06 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:15:22] Production.INFO: ==27283== Releasing lock... [2025-04-06 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:16:05 [end_date_ymd] => 2025-04-06 13:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:16:05' and `end` < '2025-04-06 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-04-06 13:16:18] Production.INFO: count ==978 [2025-04-06 13:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:16:05 - End Time 2025-04-06 13:16:05 [2025-04-06 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847767', 'tblTempUsageDetail_20' ) start [2025-04-06 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847767', 'tblTempUsageDetail_20' ) end [2025-04-06 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847767', 'tblTempVendorCDR_20' ) start [2025-04-06 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847767', 'tblTempVendorCDR_20' ) end [2025-04-06 13:16:19] Production.INFO: ProcessCDR(1,14847767,1,1,2) [2025-04-06 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847767', 'tblTempUsageDetail_20' ) start [2025-04-06 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847767', 'tblTempUsageDetail_20' ) end [2025-04-06 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:16:22] Production.INFO: ==27356== Releasing lock... [2025-04-06 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:17:06 [end_date_ymd] => 2025-04-06 13:17:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:17:06' and `end` < '2025-04-06 13: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-04-06 13:17:19] Production.INFO: count ==970 [2025-04-06 13:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:17:06 - End Time 2025-04-06 13:17:06 [2025-04-06 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847772', 'tblTempUsageDetail_20' ) start [2025-04-06 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847772', 'tblTempUsageDetail_20' ) end [2025-04-06 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847772', 'tblTempVendorCDR_20' ) start [2025-04-06 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847772', 'tblTempVendorCDR_20' ) end [2025-04-06 13:17:19] Production.INFO: ProcessCDR(1,14847772,1,1,2) [2025-04-06 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847772', 'tblTempUsageDetail_20' ) start [2025-04-06 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847772', 'tblTempUsageDetail_20' ) end [2025-04-06 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:17:23] Production.INFO: ==27429== Releasing lock... [2025-04-06 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:17:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:18:05 [end_date_ymd] => 2025-04-06 13:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:18:05' and `end` < '2025-04-06 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-04-06 13:18:18] Production.INFO: count ==966 [2025-04-06 13:18:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:18:05 - End Time 2025-04-06 13:18:05 [2025-04-06 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847777', 'tblTempUsageDetail_20' ) start [2025-04-06 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847777', 'tblTempUsageDetail_20' ) end [2025-04-06 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847777', 'tblTempVendorCDR_20' ) start [2025-04-06 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847777', 'tblTempVendorCDR_20' ) end [2025-04-06 13:18:18] Production.INFO: ProcessCDR(1,14847777,1,1,2) [2025-04-06 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847777', 'tblTempUsageDetail_20' ) start [2025-04-06 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847777', 'tblTempUsageDetail_20' ) end [2025-04-06 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:18:22] Production.INFO: ==27513== Releasing lock... [2025-04-06 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:19:06 [end_date_ymd] => 2025-04-06 13:19:06 [RateCDR] => 1 ) [2025-04-06 13:19: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-04-06 10:19:06' and `end` < '2025-04-06 13:19: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-04-06 13:19:19] Production.INFO: count ==972 [2025-04-06 13:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:19:06 - End Time 2025-04-06 13:19:06 [2025-04-06 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847782', 'tblTempUsageDetail_20' ) start [2025-04-06 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847782', 'tblTempUsageDetail_20' ) end [2025-04-06 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847782', 'tblTempVendorCDR_20' ) start [2025-04-06 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847782', 'tblTempVendorCDR_20' ) end [2025-04-06 13:19:19] Production.INFO: ProcessCDR(1,14847782,1,1,2) [2025-04-06 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847782', 'tblTempUsageDetail_20' ) start [2025-04-06 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847782', 'tblTempUsageDetail_20' ) end [2025-04-06 13:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:19:24] Production.INFO: ==27599== Releasing lock... [2025-04-06 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:19:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:20:06 [end_date_ymd] => 2025-04-06 13:20:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:20:06' and `end` < '2025-04-06 13: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-04-06 13:20:19] Production.INFO: count ==973 [2025-04-06 13:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:20:06 - End Time 2025-04-06 13:20:06 [2025-04-06 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847787', 'tblTempUsageDetail_20' ) start [2025-04-06 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847787', 'tblTempUsageDetail_20' ) end [2025-04-06 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847787', 'tblTempVendorCDR_20' ) start [2025-04-06 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847787', 'tblTempVendorCDR_20' ) end [2025-04-06 13:20:19] Production.INFO: ProcessCDR(1,14847787,1,1,2) [2025-04-06 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847787', 'tblTempUsageDetail_20' ) start [2025-04-06 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847787', 'tblTempUsageDetail_20' ) end [2025-04-06 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:20:24] Production.INFO: ==27710== Releasing lock... [2025-04-06 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:20:24] Production.INFO: 36 MB #Memory Used# [2025-04-06 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:21:05 [end_date_ymd] => 2025-04-06 13:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:21:05' and `end` < '2025-04-06 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-04-06 13:21:18] Production.INFO: count ==997 [2025-04-06 13:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:21:05 - End Time 2025-04-06 13:21:05 [2025-04-06 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847793', 'tblTempUsageDetail_20' ) start [2025-04-06 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847793', 'tblTempUsageDetail_20' ) end [2025-04-06 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847793', 'tblTempVendorCDR_20' ) start [2025-04-06 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847793', 'tblTempVendorCDR_20' ) end [2025-04-06 13:21:19] Production.INFO: ProcessCDR(1,14847793,1,1,2) [2025-04-06 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847793', 'tblTempUsageDetail_20' ) start [2025-04-06 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847793', 'tblTempUsageDetail_20' ) end [2025-04-06 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:21:24] Production.INFO: ==27784== Releasing lock... [2025-04-06 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:21:24] Production.INFO: 36 MB #Memory Used# [2025-04-06 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:22:05 [end_date_ymd] => 2025-04-06 13:22:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:22:05' and `end` < '2025-04-06 13: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-04-06 13:22:18] Production.INFO: count ==1015 [2025-04-06 13:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:22:05 - End Time 2025-04-06 13:22:05 [2025-04-06 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847798', 'tblTempUsageDetail_20' ) start [2025-04-06 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847798', 'tblTempUsageDetail_20' ) end [2025-04-06 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847798', 'tblTempVendorCDR_20' ) start [2025-04-06 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847798', 'tblTempVendorCDR_20' ) end [2025-04-06 13:22:18] Production.INFO: ProcessCDR(1,14847798,1,1,2) [2025-04-06 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847798', 'tblTempUsageDetail_20' ) start [2025-04-06 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847798', 'tblTempUsageDetail_20' ) end [2025-04-06 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:22:24] Production.INFO: ==27854== Releasing lock... [2025-04-06 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:22:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:23:05 [end_date_ymd] => 2025-04-06 13:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:23:05' and `end` < '2025-04-06 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-04-06 13:23:18] Production.INFO: count ==1060 [2025-04-06 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:23:05 - End Time 2025-04-06 13:23:05 [2025-04-06 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847803', 'tblTempUsageDetail_20' ) start [2025-04-06 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847803', 'tblTempUsageDetail_20' ) end [2025-04-06 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847803', 'tblTempVendorCDR_20' ) start [2025-04-06 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847803', 'tblTempVendorCDR_20' ) end [2025-04-06 13:23:19] Production.INFO: ProcessCDR(1,14847803,1,1,2) [2025-04-06 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847803', 'tblTempUsageDetail_20' ) start [2025-04-06 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847803', 'tblTempUsageDetail_20' ) end [2025-04-06 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:23:24] Production.INFO: ==27927== Releasing lock... [2025-04-06 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:24:05 [end_date_ymd] => 2025-04-06 13:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:24:05' and `end` < '2025-04-06 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-04-06 13:24:18] Production.INFO: count ==1097 [2025-04-06 13:24:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:24:05 - End Time 2025-04-06 13:24:05 [2025-04-06 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847808', 'tblTempUsageDetail_20' ) start [2025-04-06 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847808', 'tblTempUsageDetail_20' ) end [2025-04-06 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847808', 'tblTempVendorCDR_20' ) start [2025-04-06 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847808', 'tblTempVendorCDR_20' ) end [2025-04-06 13:24:18] Production.INFO: ProcessCDR(1,14847808,1,1,2) [2025-04-06 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847808', 'tblTempUsageDetail_20' ) start [2025-04-06 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847808', 'tblTempUsageDetail_20' ) end [2025-04-06 13:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:24:21] Production.INFO: ==27998== Releasing lock... [2025-04-06 13:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:25:05 [end_date_ymd] => 2025-04-06 13:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:25:05' and `end` < '2025-04-06 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-04-06 13:25:18] Production.INFO: count ==1149 [2025-04-06 13:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:25:05 - End Time 2025-04-06 13:25:05 [2025-04-06 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847813', 'tblTempUsageDetail_20' ) start [2025-04-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847813', 'tblTempUsageDetail_20' ) end [2025-04-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847813', 'tblTempVendorCDR_20' ) start [2025-04-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847813', 'tblTempVendorCDR_20' ) end [2025-04-06 13:25:19] Production.INFO: ProcessCDR(1,14847813,1,1,2) [2025-04-06 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847813', 'tblTempUsageDetail_20' ) start [2025-04-06 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847813', 'tblTempUsageDetail_20' ) end [2025-04-06 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:25:24] Production.INFO: ==28068== Releasing lock... [2025-04-06 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:25:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:26:05 [end_date_ymd] => 2025-04-06 13:26:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:26:05' and `end` < '2025-04-06 13: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-04-06 13:26:18] Production.INFO: count ==1348 [2025-04-06 13:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:26:05 - End Time 2025-04-06 13:26:05 [2025-04-06 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847818', 'tblTempUsageDetail_20' ) start [2025-04-06 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847818', 'tblTempUsageDetail_20' ) end [2025-04-06 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847818', 'tblTempVendorCDR_20' ) start [2025-04-06 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847818', 'tblTempVendorCDR_20' ) end [2025-04-06 13:26:18] Production.INFO: ProcessCDR(1,14847818,1,1,2) [2025-04-06 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847818', 'tblTempUsageDetail_20' ) start [2025-04-06 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847818', 'tblTempUsageDetail_20' ) end [2025-04-06 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:26:22] Production.INFO: ==28142== Releasing lock... [2025-04-06 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:26:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:27:05 [end_date_ymd] => 2025-04-06 13:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:27:05' and `end` < '2025-04-06 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-04-06 13:27:18] Production.INFO: count ==1379 [2025-04-06 13:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:27:05 - End Time 2025-04-06 13:27:05 [2025-04-06 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847823', 'tblTempUsageDetail_20' ) start [2025-04-06 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847823', 'tblTempUsageDetail_20' ) end [2025-04-06 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847823', 'tblTempVendorCDR_20' ) start [2025-04-06 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847823', 'tblTempVendorCDR_20' ) end [2025-04-06 13:27:19] Production.INFO: ProcessCDR(1,14847823,1,1,2) [2025-04-06 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847823', 'tblTempUsageDetail_20' ) start [2025-04-06 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847823', 'tblTempUsageDetail_20' ) end [2025-04-06 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:27:24] Production.INFO: ==28213== Releasing lock... [2025-04-06 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:28:05 [end_date_ymd] => 2025-04-06 13:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:28:05' and `end` < '2025-04-06 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-04-06 13:28:18] Production.INFO: count ==1447 [2025-04-06 13:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:28:05 - End Time 2025-04-06 13:28:05 [2025-04-06 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847828', 'tblTempUsageDetail_20' ) start [2025-04-06 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847828', 'tblTempUsageDetail_20' ) end [2025-04-06 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847828', 'tblTempVendorCDR_20' ) start [2025-04-06 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847828', 'tblTempVendorCDR_20' ) end [2025-04-06 13:28:18] Production.INFO: ProcessCDR(1,14847828,1,1,2) [2025-04-06 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847828', 'tblTempUsageDetail_20' ) start [2025-04-06 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847828', 'tblTempUsageDetail_20' ) end [2025-04-06 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:28:23] Production.INFO: ==28286== Releasing lock... [2025-04-06 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:28:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:29:05 [end_date_ymd] => 2025-04-06 13:29:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:29:05' and `end` < '2025-04-06 13: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-04-06 13:29:18] Production.INFO: count ==1451 [2025-04-06 13:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:29:05 - End Time 2025-04-06 13:29:05 [2025-04-06 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847833', 'tblTempUsageDetail_20' ) start [2025-04-06 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847833', 'tblTempUsageDetail_20' ) end [2025-04-06 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847833', 'tblTempVendorCDR_20' ) start [2025-04-06 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847833', 'tblTempVendorCDR_20' ) end [2025-04-06 13:29:19] Production.INFO: ProcessCDR(1,14847833,1,1,2) [2025-04-06 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847833', 'tblTempUsageDetail_20' ) start [2025-04-06 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847833', 'tblTempUsageDetail_20' ) end [2025-04-06 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:29:22] Production.INFO: ==28356== Releasing lock... [2025-04-06 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:29:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:30:06 [end_date_ymd] => 2025-04-06 13:30:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:30:06' and `end` < '2025-04-06 13: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-04-06 13:30:19] Production.INFO: count ==1464 [2025-04-06 13:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:30:06 - End Time 2025-04-06 13:30:06 [2025-04-06 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847838', 'tblTempUsageDetail_20' ) start [2025-04-06 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847838', 'tblTempUsageDetail_20' ) end [2025-04-06 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847838', 'tblTempVendorCDR_20' ) start [2025-04-06 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847838', 'tblTempVendorCDR_20' ) end [2025-04-06 13:30:19] Production.INFO: ProcessCDR(1,14847838,1,1,2) [2025-04-06 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847838', 'tblTempUsageDetail_20' ) start [2025-04-06 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847838', 'tblTempUsageDetail_20' ) end [2025-04-06 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:30:23] Production.INFO: ==28434== Releasing lock... [2025-04-06 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:30:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:31:05 [end_date_ymd] => 2025-04-06 13:31:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:31:05' and `end` < '2025-04-06 13: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-04-06 13:31:18] Production.INFO: count ==1502 [2025-04-06 13:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:31:05 - End Time 2025-04-06 13:31:05 [2025-04-06 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847844', 'tblTempUsageDetail_20' ) start [2025-04-06 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847844', 'tblTempUsageDetail_20' ) end [2025-04-06 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847844', 'tblTempVendorCDR_20' ) start [2025-04-06 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847844', 'tblTempVendorCDR_20' ) end [2025-04-06 13:31:19] Production.INFO: ProcessCDR(1,14847844,1,1,2) [2025-04-06 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847844', 'tblTempUsageDetail_20' ) start [2025-04-06 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847844', 'tblTempUsageDetail_20' ) end [2025-04-06 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:31:24] Production.INFO: ==28508== Releasing lock... [2025-04-06 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:31:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-06 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:32:06 [end_date_ymd] => 2025-04-06 13:32:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:32:06' and `end` < '2025-04-06 13: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-04-06 13:32:19] Production.INFO: count ==1535 [2025-04-06 13:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:32:06 - End Time 2025-04-06 13:32:06 [2025-04-06 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847849', 'tblTempUsageDetail_20' ) start [2025-04-06 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847849', 'tblTempUsageDetail_20' ) end [2025-04-06 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847849', 'tblTempVendorCDR_20' ) start [2025-04-06 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847849', 'tblTempVendorCDR_20' ) end [2025-04-06 13:32:19] Production.INFO: ProcessCDR(1,14847849,1,1,2) [2025-04-06 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847849', 'tblTempUsageDetail_20' ) start [2025-04-06 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847849', 'tblTempUsageDetail_20' ) end [2025-04-06 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:32:23] Production.INFO: ==28587== Releasing lock... [2025-04-06 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:32:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-06 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:33:05 [end_date_ymd] => 2025-04-06 13:33:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:33:05' and `end` < '2025-04-06 13: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-04-06 13:33:18] Production.INFO: count ==1653 [2025-04-06 13:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:33:05 - End Time 2025-04-06 13:33:05 [2025-04-06 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847854', 'tblTempUsageDetail_20' ) start [2025-04-06 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847854', 'tblTempUsageDetail_20' ) end [2025-04-06 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847854', 'tblTempVendorCDR_20' ) start [2025-04-06 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847854', 'tblTempVendorCDR_20' ) end [2025-04-06 13:33:19] Production.INFO: ProcessCDR(1,14847854,1,1,2) [2025-04-06 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847854', 'tblTempUsageDetail_20' ) start [2025-04-06 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847854', 'tblTempUsageDetail_20' ) end [2025-04-06 13:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:33:24] Production.INFO: ==28656== Releasing lock... [2025-04-06 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:33:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:34:06 [end_date_ymd] => 2025-04-06 13:34:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:34:06' and `end` < '2025-04-06 13: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-04-06 13:34:19] Production.INFO: count ==1657 [2025-04-06 13:34:20] Production.ERROR: pbx CDR StartTime 2025-04-06 10:34:06 - End Time 2025-04-06 13:34:06 [2025-04-06 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847859', 'tblTempUsageDetail_20' ) start [2025-04-06 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847859', 'tblTempUsageDetail_20' ) end [2025-04-06 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847859', 'tblTempVendorCDR_20' ) start [2025-04-06 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847859', 'tblTempVendorCDR_20' ) end [2025-04-06 13:34:20] Production.INFO: ProcessCDR(1,14847859,1,1,2) [2025-04-06 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847859', 'tblTempUsageDetail_20' ) start [2025-04-06 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847859', 'tblTempUsageDetail_20' ) end [2025-04-06 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:34:25] Production.INFO: ==28729== Releasing lock... [2025-04-06 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:34:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:35:05 [end_date_ymd] => 2025-04-06 13:35:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:35:05' and `end` < '2025-04-06 13: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-04-06 13:35:18] Production.INFO: count ==1642 [2025-04-06 13:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:35:05 - End Time 2025-04-06 13:35:05 [2025-04-06 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847864', 'tblTempUsageDetail_20' ) start [2025-04-06 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847864', 'tblTempUsageDetail_20' ) end [2025-04-06 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847864', 'tblTempVendorCDR_20' ) start [2025-04-06 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847864', 'tblTempVendorCDR_20' ) end [2025-04-06 13:35:19] Production.INFO: ProcessCDR(1,14847864,1,1,2) [2025-04-06 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847864', 'tblTempUsageDetail_20' ) start [2025-04-06 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847864', 'tblTempUsageDetail_20' ) end [2025-04-06 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:35:22] Production.INFO: ==28837== Releasing lock... [2025-04-06 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:36:05 [end_date_ymd] => 2025-04-06 13:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:36:05' and `end` < '2025-04-06 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-04-06 13:36:18] Production.INFO: count ==1660 [2025-04-06 13:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:36:05 - End Time 2025-04-06 13:36:05 [2025-04-06 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847869', 'tblTempUsageDetail_20' ) start [2025-04-06 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847869', 'tblTempUsageDetail_20' ) end [2025-04-06 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847869', 'tblTempVendorCDR_20' ) start [2025-04-06 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847869', 'tblTempVendorCDR_20' ) end [2025-04-06 13:36:19] Production.INFO: ProcessCDR(1,14847869,1,1,2) [2025-04-06 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847869', 'tblTempUsageDetail_20' ) start [2025-04-06 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847869', 'tblTempUsageDetail_20' ) end [2025-04-06 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:36:22] Production.INFO: ==28911== Releasing lock... [2025-04-06 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:37:05 [end_date_ymd] => 2025-04-06 13:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:37:05' and `end` < '2025-04-06 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-04-06 13:37:18] Production.INFO: count ==1645 [2025-04-06 13:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:37:05 - End Time 2025-04-06 13:37:05 [2025-04-06 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847874', 'tblTempUsageDetail_20' ) start [2025-04-06 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847874', 'tblTempUsageDetail_20' ) end [2025-04-06 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847874', 'tblTempVendorCDR_20' ) start [2025-04-06 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847874', 'tblTempVendorCDR_20' ) end [2025-04-06 13:37:19] Production.INFO: ProcessCDR(1,14847874,1,1,2) [2025-04-06 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847874', 'tblTempUsageDetail_20' ) start [2025-04-06 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847874', 'tblTempUsageDetail_20' ) end [2025-04-06 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:37:23] Production.INFO: ==28981== Releasing lock... [2025-04-06 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:38:05 [end_date_ymd] => 2025-04-06 13:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:38:05' and `end` < '2025-04-06 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-04-06 13:38:18] Production.INFO: count ==1645 [2025-04-06 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:38:05 - End Time 2025-04-06 13:38:05 [2025-04-06 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847879', 'tblTempUsageDetail_20' ) start [2025-04-06 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847879', 'tblTempUsageDetail_20' ) end [2025-04-06 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847879', 'tblTempVendorCDR_20' ) start [2025-04-06 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847879', 'tblTempVendorCDR_20' ) end [2025-04-06 13:38:19] Production.INFO: ProcessCDR(1,14847879,1,1,2) [2025-04-06 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847879', 'tblTempUsageDetail_20' ) start [2025-04-06 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847879', 'tblTempUsageDetail_20' ) end [2025-04-06 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:38:22] Production.INFO: ==29055== Releasing lock... [2025-04-06 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:38:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:39:05 [end_date_ymd] => 2025-04-06 13:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:39:05' and `end` < '2025-04-06 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-04-06 13:39:18] Production.INFO: count ==1646 [2025-04-06 13:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:39:05 - End Time 2025-04-06 13:39:05 [2025-04-06 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847884', 'tblTempUsageDetail_20' ) start [2025-04-06 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847884', 'tblTempUsageDetail_20' ) end [2025-04-06 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847884', 'tblTempVendorCDR_20' ) start [2025-04-06 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847884', 'tblTempVendorCDR_20' ) end [2025-04-06 13:39:19] Production.INFO: ProcessCDR(1,14847884,1,1,2) [2025-04-06 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847884', 'tblTempUsageDetail_20' ) start [2025-04-06 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847884', 'tblTempUsageDetail_20' ) end [2025-04-06 13:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:39:22] Production.INFO: ==29132== Releasing lock... [2025-04-06 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:40:07 [end_date_ymd] => 2025-04-06 13:40:07 [RateCDR] => 1 ) [2025-04-06 13:40: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-04-06 10:40:07' and `end` < '2025-04-06 13:40: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-04-06 13:40:20] Production.INFO: count ==1662 [2025-04-06 13:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 10:40:07 - End Time 2025-04-06 13:40:07 [2025-04-06 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847890', 'tblTempUsageDetail_20' ) start [2025-04-06 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847890', 'tblTempUsageDetail_20' ) end [2025-04-06 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847890', 'tblTempVendorCDR_20' ) start [2025-04-06 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847890', 'tblTempVendorCDR_20' ) end [2025-04-06 13:40:20] Production.INFO: ProcessCDR(1,14847890,1,1,2) [2025-04-06 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847890', 'tblTempUsageDetail_20' ) start [2025-04-06 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847890', 'tblTempUsageDetail_20' ) end [2025-04-06 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:40:24] Production.INFO: ==29208== Releasing lock... [2025-04-06 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:40:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:41:05 [end_date_ymd] => 2025-04-06 13:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:41:05' and `end` < '2025-04-06 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-04-06 13:41:18] Production.INFO: count ==1693 [2025-04-06 13:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:41:05 - End Time 2025-04-06 13:41:05 [2025-04-06 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847895', 'tblTempUsageDetail_20' ) start [2025-04-06 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847895', 'tblTempUsageDetail_20' ) end [2025-04-06 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847895', 'tblTempVendorCDR_20' ) start [2025-04-06 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847895', 'tblTempVendorCDR_20' ) end [2025-04-06 13:41:19] Production.INFO: ProcessCDR(1,14847895,1,1,2) [2025-04-06 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847895', 'tblTempUsageDetail_20' ) start [2025-04-06 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847895', 'tblTempUsageDetail_20' ) end [2025-04-06 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:41:24] Production.INFO: ==29282== Releasing lock... [2025-04-06 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:42:05 [end_date_ymd] => 2025-04-06 13:42:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:42:05' and `end` < '2025-04-06 13: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-04-06 13:42:18] Production.INFO: count ==1704 [2025-04-06 13:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:42:05 - End Time 2025-04-06 13:42:05 [2025-04-06 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847900', 'tblTempUsageDetail_20' ) start [2025-04-06 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847900', 'tblTempUsageDetail_20' ) end [2025-04-06 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847900', 'tblTempVendorCDR_20' ) start [2025-04-06 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847900', 'tblTempVendorCDR_20' ) end [2025-04-06 13:42:19] Production.INFO: ProcessCDR(1,14847900,1,1,2) [2025-04-06 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847900', 'tblTempUsageDetail_20' ) start [2025-04-06 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847900', 'tblTempUsageDetail_20' ) end [2025-04-06 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:42:24] Production.INFO: ==29352== Releasing lock... [2025-04-06 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:42:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:43:06 [end_date_ymd] => 2025-04-06 13:43:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:43:06' and `end` < '2025-04-06 13: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-04-06 13:43:19] Production.INFO: count ==1716 [2025-04-06 13:43:20] Production.ERROR: pbx CDR StartTime 2025-04-06 10:43:06 - End Time 2025-04-06 13:43:06 [2025-04-06 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847905', 'tblTempUsageDetail_20' ) start [2025-04-06 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847905', 'tblTempUsageDetail_20' ) end [2025-04-06 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847905', 'tblTempVendorCDR_20' ) start [2025-04-06 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847905', 'tblTempVendorCDR_20' ) end [2025-04-06 13:43:20] Production.INFO: ProcessCDR(1,14847905,1,1,2) [2025-04-06 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847905', 'tblTempUsageDetail_20' ) start [2025-04-06 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847905', 'tblTempUsageDetail_20' ) end [2025-04-06 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:43:25] Production.INFO: ==29424== Releasing lock... [2025-04-06 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:43:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:44:05 [end_date_ymd] => 2025-04-06 13:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:44:05' and `end` < '2025-04-06 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-04-06 13:44:18] Production.INFO: count ==1715 [2025-04-06 13:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:44:05 - End Time 2025-04-06 13:44:05 [2025-04-06 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847910', 'tblTempUsageDetail_20' ) start [2025-04-06 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847910', 'tblTempUsageDetail_20' ) end [2025-04-06 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847910', 'tblTempVendorCDR_20' ) start [2025-04-06 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847910', 'tblTempVendorCDR_20' ) end [2025-04-06 13:44:19] Production.INFO: ProcessCDR(1,14847910,1,1,2) [2025-04-06 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847910', 'tblTempUsageDetail_20' ) start [2025-04-06 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847910', 'tblTempUsageDetail_20' ) end [2025-04-06 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:44:24] Production.INFO: ==29497== Releasing lock... [2025-04-06 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:44:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:45:06 [end_date_ymd] => 2025-04-06 13:45:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:45:06' and `end` < '2025-04-06 13: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-04-06 13:45:18] Production.INFO: count ==1718 [2025-04-06 13:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:45:06 - End Time 2025-04-06 13:45:06 [2025-04-06 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847915', 'tblTempUsageDetail_20' ) start [2025-04-06 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847915', 'tblTempUsageDetail_20' ) end [2025-04-06 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847915', 'tblTempVendorCDR_20' ) start [2025-04-06 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847915', 'tblTempVendorCDR_20' ) end [2025-04-06 13:45:19] Production.INFO: ProcessCDR(1,14847915,1,1,2) [2025-04-06 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847915', 'tblTempUsageDetail_20' ) start [2025-04-06 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847915', 'tblTempUsageDetail_20' ) end [2025-04-06 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:45:25] Production.INFO: ==29569== Releasing lock... [2025-04-06 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:45:25] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:46:05 [end_date_ymd] => 2025-04-06 13:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:46:05' and `end` < '2025-04-06 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-04-06 13:46:18] Production.INFO: count ==1722 [2025-04-06 13:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:46:05 - End Time 2025-04-06 13:46:05 [2025-04-06 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847920', 'tblTempUsageDetail_20' ) start [2025-04-06 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847920', 'tblTempUsageDetail_20' ) end [2025-04-06 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847920', 'tblTempVendorCDR_20' ) start [2025-04-06 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847920', 'tblTempVendorCDR_20' ) end [2025-04-06 13:46:18] Production.INFO: ProcessCDR(1,14847920,1,1,2) [2025-04-06 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847920', 'tblTempUsageDetail_20' ) start [2025-04-06 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847920', 'tblTempUsageDetail_20' ) end [2025-04-06 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:46:23] Production.INFO: ==29643== Releasing lock... [2025-04-06 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:46:23] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:47:06 [end_date_ymd] => 2025-04-06 13:47:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:47:06' and `end` < '2025-04-06 13: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-04-06 13:47:18] Production.INFO: count ==1722 [2025-04-06 13:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:47:06 - End Time 2025-04-06 13:47:06 [2025-04-06 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847925', 'tblTempUsageDetail_20' ) start [2025-04-06 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847925', 'tblTempUsageDetail_20' ) end [2025-04-06 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847925', 'tblTempVendorCDR_20' ) start [2025-04-06 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847925', 'tblTempVendorCDR_20' ) end [2025-04-06 13:47:19] Production.INFO: ProcessCDR(1,14847925,1,1,2) [2025-04-06 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847925', 'tblTempUsageDetail_20' ) start [2025-04-06 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847925', 'tblTempUsageDetail_20' ) end [2025-04-06 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:47:24] Production.INFO: ==29714== Releasing lock... [2025-04-06 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:47:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:48:05 [end_date_ymd] => 2025-04-06 13:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:48:05' and `end` < '2025-04-06 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-04-06 13:48:18] Production.INFO: count ==1718 [2025-04-06 13:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:48:05 - End Time 2025-04-06 13:48:05 [2025-04-06 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847930', 'tblTempUsageDetail_20' ) start [2025-04-06 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847930', 'tblTempUsageDetail_20' ) end [2025-04-06 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847930', 'tblTempVendorCDR_20' ) start [2025-04-06 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847930', 'tblTempVendorCDR_20' ) end [2025-04-06 13:48:19] Production.INFO: ProcessCDR(1,14847930,1,1,2) [2025-04-06 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847930', 'tblTempUsageDetail_20' ) start [2025-04-06 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847930', 'tblTempUsageDetail_20' ) end [2025-04-06 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:48:24] Production.INFO: ==29787== Releasing lock... [2025-04-06 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:48:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:49:05 [end_date_ymd] => 2025-04-06 13:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:49:05' and `end` < '2025-04-06 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-04-06 13:49:18] Production.INFO: count ==1719 [2025-04-06 13:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:49:05 - End Time 2025-04-06 13:49:05 [2025-04-06 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847935', 'tblTempUsageDetail_20' ) start [2025-04-06 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847935', 'tblTempUsageDetail_20' ) end [2025-04-06 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847935', 'tblTempVendorCDR_20' ) start [2025-04-06 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847935', 'tblTempVendorCDR_20' ) end [2025-04-06 13:49:19] Production.INFO: ProcessCDR(1,14847935,1,1,2) [2025-04-06 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847935', 'tblTempUsageDetail_20' ) start [2025-04-06 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847935', 'tblTempUsageDetail_20' ) end [2025-04-06 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:49:24] Production.INFO: ==29858== Releasing lock... [2025-04-06 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:49:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:50:06 [end_date_ymd] => 2025-04-06 13:50:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:50:06' and `end` < '2025-04-06 13: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-04-06 13:50:18] Production.INFO: count ==1730 [2025-04-06 13:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:50:06 - End Time 2025-04-06 13:50:06 [2025-04-06 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847941', 'tblTempUsageDetail_20' ) start [2025-04-06 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847941', 'tblTempUsageDetail_20' ) end [2025-04-06 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847941', 'tblTempVendorCDR_20' ) start [2025-04-06 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847941', 'tblTempVendorCDR_20' ) end [2025-04-06 13:50:19] Production.INFO: ProcessCDR(1,14847941,1,1,2) [2025-04-06 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847941', 'tblTempUsageDetail_20' ) start [2025-04-06 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847941', 'tblTempUsageDetail_20' ) end [2025-04-06 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:50:24] Production.INFO: ==29934== Releasing lock... [2025-04-06 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:50:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:51:05 [end_date_ymd] => 2025-04-06 13:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:51:05' and `end` < '2025-04-06 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-04-06 13:51:18] Production.INFO: count ==1739 [2025-04-06 13:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:51:05 - End Time 2025-04-06 13:51:05 [2025-04-06 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847946', 'tblTempUsageDetail_20' ) start [2025-04-06 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847946', 'tblTempUsageDetail_20' ) end [2025-04-06 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847946', 'tblTempVendorCDR_20' ) start [2025-04-06 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847946', 'tblTempVendorCDR_20' ) end [2025-04-06 13:51:19] Production.INFO: ProcessCDR(1,14847946,1,1,2) [2025-04-06 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847946', 'tblTempUsageDetail_20' ) start [2025-04-06 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847946', 'tblTempUsageDetail_20' ) end [2025-04-06 13:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:51:24] Production.INFO: ==30047== Releasing lock... [2025-04-06 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:51:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:52:06 [end_date_ymd] => 2025-04-06 13:52:06 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:52:06' and `end` < '2025-04-06 13: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-04-06 13:52:19] Production.INFO: count ==1740 [2025-04-06 13:52:20] Production.ERROR: pbx CDR StartTime 2025-04-06 10:52:06 - End Time 2025-04-06 13:52:06 [2025-04-06 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847951', 'tblTempUsageDetail_20' ) start [2025-04-06 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847951', 'tblTempUsageDetail_20' ) end [2025-04-06 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847951', 'tblTempVendorCDR_20' ) start [2025-04-06 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847951', 'tblTempVendorCDR_20' ) end [2025-04-06 13:52:20] Production.INFO: ProcessCDR(1,14847951,1,1,2) [2025-04-06 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847951', 'tblTempUsageDetail_20' ) start [2025-04-06 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847951', 'tblTempUsageDetail_20' ) end [2025-04-06 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:52:25] Production.INFO: ==30119== Releasing lock... [2025-04-06 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:52:25] Production.INFO: 41 MB #Memory Used# [2025-04-06 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:53:05 [end_date_ymd] => 2025-04-06 13:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:53:05' and `end` < '2025-04-06 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-04-06 13:53:18] Production.INFO: count ==1742 [2025-04-06 13:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:53:05 - End Time 2025-04-06 13:53:05 [2025-04-06 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847956', 'tblTempUsageDetail_20' ) start [2025-04-06 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847956', 'tblTempUsageDetail_20' ) end [2025-04-06 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847956', 'tblTempVendorCDR_20' ) start [2025-04-06 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847956', 'tblTempVendorCDR_20' ) end [2025-04-06 13:53:18] Production.INFO: ProcessCDR(1,14847956,1,1,2) [2025-04-06 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847956', 'tblTempUsageDetail_20' ) start [2025-04-06 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847956', 'tblTempUsageDetail_20' ) end [2025-04-06 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:53:23] Production.INFO: ==30192== Releasing lock... [2025-04-06 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:53:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:54:06 [end_date_ymd] => 2025-04-06 13:54:06 [RateCDR] => 1 ) [2025-04-06 13:54: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-04-06 10:54:06' and `end` < '2025-04-06 13:54: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-04-06 13:54:19] Production.INFO: count ==1747 [2025-04-06 13:54:20] Production.ERROR: pbx CDR StartTime 2025-04-06 10:54:06 - End Time 2025-04-06 13:54:06 [2025-04-06 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847961', 'tblTempUsageDetail_20' ) start [2025-04-06 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847961', 'tblTempUsageDetail_20' ) end [2025-04-06 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847961', 'tblTempVendorCDR_20' ) start [2025-04-06 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847961', 'tblTempVendorCDR_20' ) end [2025-04-06 13:54:20] Production.INFO: ProcessCDR(1,14847961,1,1,2) [2025-04-06 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847961', 'tblTempUsageDetail_20' ) start [2025-04-06 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847961', 'tblTempUsageDetail_20' ) end [2025-04-06 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:54:25] Production.INFO: ==30263== Releasing lock... [2025-04-06 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:54:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:55:05 [end_date_ymd] => 2025-04-06 13:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:55:05' and `end` < '2025-04-06 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-04-06 13:55:18] Production.INFO: count ==1744 [2025-04-06 13:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:55:05 - End Time 2025-04-06 13:55:05 [2025-04-06 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847966', 'tblTempUsageDetail_20' ) start [2025-04-06 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847966', 'tblTempUsageDetail_20' ) end [2025-04-06 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847966', 'tblTempVendorCDR_20' ) start [2025-04-06 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847966', 'tblTempVendorCDR_20' ) end [2025-04-06 13:55:19] Production.INFO: ProcessCDR(1,14847966,1,1,2) [2025-04-06 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847966', 'tblTempUsageDetail_20' ) start [2025-04-06 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847966', 'tblTempUsageDetail_20' ) end [2025-04-06 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:55:24] Production.INFO: ==30339== Releasing lock... [2025-04-06 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:55:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:56:05 [end_date_ymd] => 2025-04-06 13:56:05 [RateCDR] => 1 ) [2025-04-06 13: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-04-06 10:56:05' and `end` < '2025-04-06 13: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-04-06 13:56:18] Production.INFO: count ==1745 [2025-04-06 13:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:56:05 - End Time 2025-04-06 13:56:05 [2025-04-06 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847971', 'tblTempUsageDetail_20' ) start [2025-04-06 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847971', 'tblTempUsageDetail_20' ) end [2025-04-06 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847971', 'tblTempVendorCDR_20' ) start [2025-04-06 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847971', 'tblTempVendorCDR_20' ) end [2025-04-06 13:56:19] Production.INFO: ProcessCDR(1,14847971,1,1,2) [2025-04-06 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847971', 'tblTempUsageDetail_20' ) start [2025-04-06 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847971', 'tblTempUsageDetail_20' ) end [2025-04-06 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:56:24] Production.INFO: ==30420== Releasing lock... [2025-04-06 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:56:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:57:05 [end_date_ymd] => 2025-04-06 13:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:57:05' and `end` < '2025-04-06 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-04-06 13:57:18] Production.INFO: count ==1745 [2025-04-06 13:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 10:57:05 - End Time 2025-04-06 13:57:05 [2025-04-06 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847976', 'tblTempUsageDetail_20' ) start [2025-04-06 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847976', 'tblTempUsageDetail_20' ) end [2025-04-06 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847976', 'tblTempVendorCDR_20' ) start [2025-04-06 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847976', 'tblTempVendorCDR_20' ) end [2025-04-06 13:57:18] Production.INFO: ProcessCDR(1,14847976,1,1,2) [2025-04-06 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847976', 'tblTempUsageDetail_20' ) start [2025-04-06 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847976', 'tblTempUsageDetail_20' ) end [2025-04-06 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:57:23] Production.INFO: ==30492== Releasing lock... [2025-04-06 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:57:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:58:05 [end_date_ymd] => 2025-04-06 13:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:58:05' and `end` < '2025-04-06 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-04-06 13:58:19] Production.INFO: count ==1750 [2025-04-06 13:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:58:05 - End Time 2025-04-06 13:58:05 [2025-04-06 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847981', 'tblTempUsageDetail_20' ) start [2025-04-06 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847981', 'tblTempUsageDetail_20' ) end [2025-04-06 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847981', 'tblTempVendorCDR_20' ) start [2025-04-06 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847981', 'tblTempVendorCDR_20' ) end [2025-04-06 13:58:19] Production.INFO: ProcessCDR(1,14847981,1,1,2) [2025-04-06 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847981', 'tblTempUsageDetail_20' ) start [2025-04-06 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847981', 'tblTempUsageDetail_20' ) end [2025-04-06 13:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:58:24] Production.INFO: ==30567== Releasing lock... [2025-04-06 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:58:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 10:59:05 [end_date_ymd] => 2025-04-06 13:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 10:59:05' and `end` < '2025-04-06 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-04-06 13:59:18] Production.INFO: count ==1755 [2025-04-06 13:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 10:59:05 - End Time 2025-04-06 13:59:05 [2025-04-06 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847986', 'tblTempUsageDetail_20' ) start [2025-04-06 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847986', 'tblTempUsageDetail_20' ) end [2025-04-06 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847986', 'tblTempVendorCDR_20' ) start [2025-04-06 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847986', 'tblTempVendorCDR_20' ) end [2025-04-06 13:59:19] Production.INFO: ProcessCDR(1,14847986,1,1,2) [2025-04-06 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847986', 'tblTempUsageDetail_20' ) start [2025-04-06 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847986', 'tblTempUsageDetail_20' ) end [2025-04-06 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 13:59:24] Production.INFO: ==30644== Releasing lock... [2025-04-06 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 13:59:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:00:07 [end_date_ymd] => 2025-04-06 14:00:07 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:00:07' and `end` < '2025-04-06 14: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-04-06 14:00:20] Production.INFO: count ==1749 [2025-04-06 14:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:00:07 - End Time 2025-04-06 14:00:07 [2025-04-06 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847992', 'tblTempUsageDetail_20' ) start [2025-04-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847992', 'tblTempUsageDetail_20' ) end [2025-04-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847992', 'tblTempVendorCDR_20' ) start [2025-04-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847992', 'tblTempVendorCDR_20' ) end [2025-04-06 14:00:21] Production.INFO: ProcessCDR(1,14847992,1,1,2) [2025-04-06 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847992', 'tblTempUsageDetail_20' ) start [2025-04-06 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847992', 'tblTempUsageDetail_20' ) end [2025-04-06 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:00:24] Production.INFO: ==30723== Releasing lock... [2025-04-06 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:00:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:01:06 [end_date_ymd] => 2025-04-06 14:01:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:01:06' and `end` < '2025-04-06 14: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-04-06 14:01:18] Production.INFO: count ==1747 [2025-04-06 14:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:01:06 - End Time 2025-04-06 14:01:06 [2025-04-06 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847997', 'tblTempUsageDetail_20' ) start [2025-04-06 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14847997', 'tblTempUsageDetail_20' ) end [2025-04-06 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847997', 'tblTempVendorCDR_20' ) start [2025-04-06 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14847997', 'tblTempVendorCDR_20' ) end [2025-04-06 14:01:19] Production.INFO: ProcessCDR(1,14847997,1,1,2) [2025-04-06 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14847997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14847997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14847997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14847997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847997', 'tblTempUsageDetail_20' ) start [2025-04-06 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14847997', 'tblTempUsageDetail_20' ) end [2025-04-06 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:01:24] Production.INFO: ==30812== Releasing lock... [2025-04-06 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:01:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:02:06 [end_date_ymd] => 2025-04-06 14:02:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:02:06' and `end` < '2025-04-06 14: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-04-06 14:02:18] Production.INFO: count ==1749 [2025-04-06 14:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:02:06 - End Time 2025-04-06 14:02:06 [2025-04-06 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848002', 'tblTempUsageDetail_20' ) start [2025-04-06 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848002', 'tblTempUsageDetail_20' ) end [2025-04-06 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848002', 'tblTempVendorCDR_20' ) start [2025-04-06 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848002', 'tblTempVendorCDR_20' ) end [2025-04-06 14:02:19] Production.INFO: ProcessCDR(1,14848002,1,1,2) [2025-04-06 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848002', 'tblTempUsageDetail_20' ) start [2025-04-06 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848002', 'tblTempUsageDetail_20' ) end [2025-04-06 14:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:02:24] Production.INFO: ==30887== Releasing lock... [2025-04-06 14:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:02:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:03:05 [end_date_ymd] => 2025-04-06 14:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:03:05' and `end` < '2025-04-06 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-04-06 14:03:18] Production.INFO: count ==1746 [2025-04-06 14:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:03:05 - End Time 2025-04-06 14:03:05 [2025-04-06 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848007', 'tblTempUsageDetail_20' ) start [2025-04-06 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848007', 'tblTempUsageDetail_20' ) end [2025-04-06 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848007', 'tblTempVendorCDR_20' ) start [2025-04-06 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848007', 'tblTempVendorCDR_20' ) end [2025-04-06 14:03:19] Production.INFO: ProcessCDR(1,14848007,1,1,2) [2025-04-06 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848007', 'tblTempUsageDetail_20' ) start [2025-04-06 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848007', 'tblTempUsageDetail_20' ) end [2025-04-06 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:03:24] Production.INFO: ==30957== Releasing lock... [2025-04-06 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:03:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:04:06 [end_date_ymd] => 2025-04-06 14:04:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:04:06' and `end` < '2025-04-06 14: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-04-06 14:04:19] Production.INFO: count ==1747 [2025-04-06 14:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:04:06 - End Time 2025-04-06 14:04:06 [2025-04-06 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848012', 'tblTempUsageDetail_20' ) start [2025-04-06 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848012', 'tblTempUsageDetail_20' ) end [2025-04-06 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848012', 'tblTempVendorCDR_20' ) start [2025-04-06 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848012', 'tblTempVendorCDR_20' ) end [2025-04-06 14:04:19] Production.INFO: ProcessCDR(1,14848012,1,1,2) [2025-04-06 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848012', 'tblTempUsageDetail_20' ) start [2025-04-06 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848012', 'tblTempUsageDetail_20' ) end [2025-04-06 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:04:23] Production.INFO: ==31033== Releasing lock... [2025-04-06 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:05:05 [end_date_ymd] => 2025-04-06 14:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:05:05' and `end` < '2025-04-06 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-04-06 14:05:18] Production.INFO: count ==1749 [2025-04-06 14:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:05:05 - End Time 2025-04-06 14:05:05 [2025-04-06 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848017', 'tblTempUsageDetail_20' ) start [2025-04-06 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848017', 'tblTempUsageDetail_20' ) end [2025-04-06 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848017', 'tblTempVendorCDR_20' ) start [2025-04-06 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848017', 'tblTempVendorCDR_20' ) end [2025-04-06 14:05:18] Production.INFO: ProcessCDR(1,14848017,1,1,2) [2025-04-06 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848017', 'tblTempUsageDetail_20' ) start [2025-04-06 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848017', 'tblTempUsageDetail_20' ) end [2025-04-06 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:05:23] Production.INFO: ==31106== Releasing lock... [2025-04-06 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:06:05 [end_date_ymd] => 2025-04-06 14:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:06:05' and `end` < '2025-04-06 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-04-06 14:06:18] Production.INFO: count ==1749 [2025-04-06 14:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:06:05 - End Time 2025-04-06 14:06:05 [2025-04-06 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848022', 'tblTempUsageDetail_20' ) start [2025-04-06 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848022', 'tblTempUsageDetail_20' ) end [2025-04-06 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848022', 'tblTempVendorCDR_20' ) start [2025-04-06 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848022', 'tblTempVendorCDR_20' ) end [2025-04-06 14:06:19] Production.INFO: ProcessCDR(1,14848022,1,1,2) [2025-04-06 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848022', 'tblTempUsageDetail_20' ) start [2025-04-06 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848022', 'tblTempUsageDetail_20' ) end [2025-04-06 14:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:06:22] Production.INFO: ==31216== Releasing lock... [2025-04-06 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:07:05 [end_date_ymd] => 2025-04-06 14:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:07:05' and `end` < '2025-04-06 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-04-06 14:07:18] Production.INFO: count ==1750 [2025-04-06 14:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:07:05 - End Time 2025-04-06 14:07:05 [2025-04-06 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848027', 'tblTempUsageDetail_20' ) start [2025-04-06 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848027', 'tblTempUsageDetail_20' ) end [2025-04-06 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848027', 'tblTempVendorCDR_20' ) start [2025-04-06 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848027', 'tblTempVendorCDR_20' ) end [2025-04-06 14:07:18] Production.INFO: ProcessCDR(1,14848027,1,1,2) [2025-04-06 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848027', 'tblTempUsageDetail_20' ) start [2025-04-06 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848027', 'tblTempUsageDetail_20' ) end [2025-04-06 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:07:22] Production.INFO: ==31289== Releasing lock... [2025-04-06 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:08:05 [end_date_ymd] => 2025-04-06 14:08:05 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:08:05' and `end` < '2025-04-06 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-04-06 14:08:18] Production.INFO: count ==1756 [2025-04-06 14:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:08:05 - End Time 2025-04-06 14:08:05 [2025-04-06 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848032', 'tblTempUsageDetail_20' ) start [2025-04-06 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848032', 'tblTempUsageDetail_20' ) end [2025-04-06 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848032', 'tblTempVendorCDR_20' ) start [2025-04-06 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848032', 'tblTempVendorCDR_20' ) end [2025-04-06 14:08:19] Production.INFO: ProcessCDR(1,14848032,1,1,2) [2025-04-06 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848032', 'tblTempUsageDetail_20' ) start [2025-04-06 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848032', 'tblTempUsageDetail_20' ) end [2025-04-06 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:08:22] Production.INFO: ==31361== Releasing lock... [2025-04-06 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:09:05 [end_date_ymd] => 2025-04-06 14:09:05 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:09:05' and `end` < '2025-04-06 14: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-04-06 14:09:18] Production.INFO: count ==1752 [2025-04-06 14:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:09:05 - End Time 2025-04-06 14:09:05 [2025-04-06 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848037', 'tblTempUsageDetail_20' ) start [2025-04-06 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848037', 'tblTempUsageDetail_20' ) end [2025-04-06 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848037', 'tblTempVendorCDR_20' ) start [2025-04-06 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848037', 'tblTempVendorCDR_20' ) end [2025-04-06 14:09:18] Production.INFO: ProcessCDR(1,14848037,1,1,2) [2025-04-06 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848037', 'tblTempUsageDetail_20' ) start [2025-04-06 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848037', 'tblTempUsageDetail_20' ) end [2025-04-06 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:09:23] Production.INFO: ==31441== Releasing lock... [2025-04-06 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:09:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:10:06 [end_date_ymd] => 2025-04-06 14:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:10:06' and `end` < '2025-04-06 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-04-06 14:10:19] Production.INFO: count ==1759 [2025-04-06 14:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:10:06 - End Time 2025-04-06 14:10:06 [2025-04-06 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848043', 'tblTempUsageDetail_20' ) start [2025-04-06 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848043', 'tblTempUsageDetail_20' ) end [2025-04-06 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848043', 'tblTempVendorCDR_20' ) start [2025-04-06 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848043', 'tblTempVendorCDR_20' ) end [2025-04-06 14:10:20] Production.INFO: ProcessCDR(1,14848043,1,1,2) [2025-04-06 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848043', 'tblTempUsageDetail_20' ) start [2025-04-06 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848043', 'tblTempUsageDetail_20' ) end [2025-04-06 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:10:25] Production.INFO: ==31527== Releasing lock... [2025-04-06 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:10:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:11:06 [end_date_ymd] => 2025-04-06 14:11:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:11:06' and `end` < '2025-04-06 14: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-04-06 14:11:19] Production.INFO: count ==1772 [2025-04-06 14:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:11:06 - End Time 2025-04-06 14:11:06 [2025-04-06 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848048', 'tblTempUsageDetail_20' ) start [2025-04-06 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848048', 'tblTempUsageDetail_20' ) end [2025-04-06 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848048', 'tblTempVendorCDR_20' ) start [2025-04-06 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848048', 'tblTempVendorCDR_20' ) end [2025-04-06 14:11:19] Production.INFO: ProcessCDR(1,14848048,1,1,2) [2025-04-06 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848048', 'tblTempUsageDetail_20' ) start [2025-04-06 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848048', 'tblTempUsageDetail_20' ) end [2025-04-06 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:11:23] Production.INFO: ==31605== Releasing lock... [2025-04-06 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:12:05 [end_date_ymd] => 2025-04-06 14:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:12:05' and `end` < '2025-04-06 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-04-06 14:12:18] Production.INFO: count ==1772 [2025-04-06 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:12:05 - End Time 2025-04-06 14:12:05 [2025-04-06 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848053', 'tblTempUsageDetail_20' ) start [2025-04-06 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848053', 'tblTempUsageDetail_20' ) end [2025-04-06 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848053', 'tblTempVendorCDR_20' ) start [2025-04-06 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848053', 'tblTempVendorCDR_20' ) end [2025-04-06 14:12:19] Production.INFO: ProcessCDR(1,14848053,1,1,2) [2025-04-06 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848053', 'tblTempUsageDetail_20' ) start [2025-04-06 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848053', 'tblTempUsageDetail_20' ) end [2025-04-06 14:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:12:22] Production.INFO: ==31687== Releasing lock... [2025-04-06 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:13:06 [end_date_ymd] => 2025-04-06 14:13:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:13:06' and `end` < '2025-04-06 14: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-04-06 14:13:19] Production.INFO: count ==1771 [2025-04-06 14:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:13:06 - End Time 2025-04-06 14:13:06 [2025-04-06 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848058', 'tblTempUsageDetail_20' ) start [2025-04-06 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848058', 'tblTempUsageDetail_20' ) end [2025-04-06 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848058', 'tblTempVendorCDR_20' ) start [2025-04-06 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848058', 'tblTempVendorCDR_20' ) end [2025-04-06 14:13:19] Production.INFO: ProcessCDR(1,14848058,1,1,2) [2025-04-06 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848058', 'tblTempUsageDetail_20' ) start [2025-04-06 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848058', 'tblTempUsageDetail_20' ) end [2025-04-06 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:13:23] Production.INFO: ==31759== Releasing lock... [2025-04-06 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:14:05 [end_date_ymd] => 2025-04-06 14:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:14:05' and `end` < '2025-04-06 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-04-06 14:14:18] Production.INFO: count ==1773 [2025-04-06 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:14:05 - End Time 2025-04-06 14:14:05 [2025-04-06 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848063', 'tblTempUsageDetail_20' ) start [2025-04-06 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848063', 'tblTempUsageDetail_20' ) end [2025-04-06 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848063', 'tblTempVendorCDR_20' ) start [2025-04-06 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848063', 'tblTempVendorCDR_20' ) end [2025-04-06 14:14:19] Production.INFO: ProcessCDR(1,14848063,1,1,2) [2025-04-06 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848063', 'tblTempUsageDetail_20' ) start [2025-04-06 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848063', 'tblTempUsageDetail_20' ) end [2025-04-06 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:14:24] Production.INFO: ==31840== Releasing lock... [2025-04-06 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:14:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:15:06 [end_date_ymd] => 2025-04-06 14:15:06 [RateCDR] => 1 ) [2025-04-06 14:15: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-04-06 11:15:06' and `end` < '2025-04-06 14:15: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-04-06 14:15:19] Production.INFO: count ==1773 [2025-04-06 14:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:15:06 - End Time 2025-04-06 14:15:06 [2025-04-06 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848068', 'tblTempUsageDetail_20' ) start [2025-04-06 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848068', 'tblTempUsageDetail_20' ) end [2025-04-06 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848068', 'tblTempVendorCDR_20' ) start [2025-04-06 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848068', 'tblTempVendorCDR_20' ) end [2025-04-06 14:15:19] Production.INFO: ProcessCDR(1,14848068,1,1,2) [2025-04-06 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848068', 'tblTempUsageDetail_20' ) start [2025-04-06 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848068', 'tblTempUsageDetail_20' ) end [2025-04-06 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:15:23] Production.INFO: ==31915== Releasing lock... [2025-04-06 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:16:06 [end_date_ymd] => 2025-04-06 14:16:06 [RateCDR] => 1 ) [2025-04-06 14:16: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-04-06 11:16:06' and `end` < '2025-04-06 14:16: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-04-06 14:16:18] Production.INFO: count ==1779 [2025-04-06 14:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:16:06 - End Time 2025-04-06 14:16:06 [2025-04-06 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848073', 'tblTempUsageDetail_20' ) start [2025-04-06 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848073', 'tblTempUsageDetail_20' ) end [2025-04-06 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848073', 'tblTempVendorCDR_20' ) start [2025-04-06 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848073', 'tblTempVendorCDR_20' ) end [2025-04-06 14:16:19] Production.INFO: ProcessCDR(1,14848073,1,1,2) [2025-04-06 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848073', 'tblTempUsageDetail_20' ) start [2025-04-06 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848073', 'tblTempUsageDetail_20' ) end [2025-04-06 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:16:23] Production.INFO: ==31991== Releasing lock... [2025-04-06 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:16:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:17:05 [end_date_ymd] => 2025-04-06 14:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:17:05' and `end` < '2025-04-06 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-04-06 14:17:18] Production.INFO: count ==1779 [2025-04-06 14:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:17:05 - End Time 2025-04-06 14:17:05 [2025-04-06 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848078', 'tblTempUsageDetail_20' ) start [2025-04-06 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848078', 'tblTempUsageDetail_20' ) end [2025-04-06 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848078', 'tblTempVendorCDR_20' ) start [2025-04-06 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848078', 'tblTempVendorCDR_20' ) end [2025-04-06 14:17:19] Production.INFO: ProcessCDR(1,14848078,1,1,2) [2025-04-06 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848078', 'tblTempUsageDetail_20' ) start [2025-04-06 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848078', 'tblTempUsageDetail_20' ) end [2025-04-06 14:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:17:24] Production.INFO: ==32069== Releasing lock... [2025-04-06 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:17:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:18:05 [end_date_ymd] => 2025-04-06 14:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:18:05' and `end` < '2025-04-06 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-04-06 14:18:19] Production.INFO: count ==1774 [2025-04-06 14:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:18:05 - End Time 2025-04-06 14:18:05 [2025-04-06 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848083', 'tblTempUsageDetail_20' ) start [2025-04-06 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848083', 'tblTempUsageDetail_20' ) end [2025-04-06 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848083', 'tblTempVendorCDR_20' ) start [2025-04-06 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848083', 'tblTempVendorCDR_20' ) end [2025-04-06 14:18:19] Production.INFO: ProcessCDR(1,14848083,1,1,2) [2025-04-06 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848083', 'tblTempUsageDetail_20' ) start [2025-04-06 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848083', 'tblTempUsageDetail_20' ) end [2025-04-06 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:18:24] Production.INFO: ==32155== Releasing lock... [2025-04-06 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:18:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:19:06 [end_date_ymd] => 2025-04-06 14:19:06 [RateCDR] => 1 ) [2025-04-06 14:19: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-04-06 11:19:06' and `end` < '2025-04-06 14:19: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-04-06 14:19:19] Production.INFO: count ==1774 [2025-04-06 14:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:19:06 - End Time 2025-04-06 14:19:06 [2025-04-06 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848088', 'tblTempUsageDetail_20' ) start [2025-04-06 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848088', 'tblTempUsageDetail_20' ) end [2025-04-06 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848088', 'tblTempVendorCDR_20' ) start [2025-04-06 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848088', 'tblTempVendorCDR_20' ) end [2025-04-06 14:19:19] Production.INFO: ProcessCDR(1,14848088,1,1,2) [2025-04-06 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848088', 'tblTempUsageDetail_20' ) start [2025-04-06 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848088', 'tblTempUsageDetail_20' ) end [2025-04-06 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:19:24] Production.INFO: ==32236== Releasing lock... [2025-04-06 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:19:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:20:06 [end_date_ymd] => 2025-04-06 14:20:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:20:06' and `end` < '2025-04-06 14: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-04-06 14:20:19] Production.INFO: count ==1772 [2025-04-06 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:20:06 - End Time 2025-04-06 14:20:06 [2025-04-06 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848094', 'tblTempUsageDetail_20' ) start [2025-04-06 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848094', 'tblTempUsageDetail_20' ) end [2025-04-06 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848094', 'tblTempVendorCDR_20' ) start [2025-04-06 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848094', 'tblTempVendorCDR_20' ) end [2025-04-06 14:20:19] Production.INFO: ProcessCDR(1,14848094,1,1,2) [2025-04-06 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848094', 'tblTempUsageDetail_20' ) start [2025-04-06 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848094', 'tblTempUsageDetail_20' ) end [2025-04-06 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:20:23] Production.INFO: ==32315== Releasing lock... [2025-04-06 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:21:05 [end_date_ymd] => 2025-04-06 14:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:21:05' and `end` < '2025-04-06 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-04-06 14:21:18] Production.INFO: count ==1788 [2025-04-06 14:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:21:05 - End Time 2025-04-06 14:21:05 [2025-04-06 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848099', 'tblTempUsageDetail_20' ) start [2025-04-06 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848099', 'tblTempUsageDetail_20' ) end [2025-04-06 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848099', 'tblTempVendorCDR_20' ) start [2025-04-06 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848099', 'tblTempVendorCDR_20' ) end [2025-04-06 14:21:19] Production.INFO: ProcessCDR(1,14848099,1,1,2) [2025-04-06 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848099', 'tblTempUsageDetail_20' ) start [2025-04-06 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848099', 'tblTempUsageDetail_20' ) end [2025-04-06 14:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:21:22] Production.INFO: ==32396== Releasing lock... [2025-04-06 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:22:06 [end_date_ymd] => 2025-04-06 14:22:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:22:06' and `end` < '2025-04-06 14: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-04-06 14:22:19] Production.INFO: count ==1796 [2025-04-06 14:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:22:06 - End Time 2025-04-06 14:22:06 [2025-04-06 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848104', 'tblTempUsageDetail_20' ) start [2025-04-06 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848104', 'tblTempUsageDetail_20' ) end [2025-04-06 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848104', 'tblTempVendorCDR_20' ) start [2025-04-06 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848104', 'tblTempVendorCDR_20' ) end [2025-04-06 14:22:19] Production.INFO: ProcessCDR(1,14848104,1,1,2) [2025-04-06 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848104', 'tblTempUsageDetail_20' ) start [2025-04-06 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848104', 'tblTempUsageDetail_20' ) end [2025-04-06 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:22:24] Production.INFO: ==32512== Releasing lock... [2025-04-06 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:23:05 [end_date_ymd] => 2025-04-06 14:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:23:05' and `end` < '2025-04-06 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-04-06 14:23:18] Production.INFO: count ==1798 [2025-04-06 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:23:05 - End Time 2025-04-06 14:23:05 [2025-04-06 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848109', 'tblTempUsageDetail_20' ) start [2025-04-06 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848109', 'tblTempUsageDetail_20' ) end [2025-04-06 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848109', 'tblTempVendorCDR_20' ) start [2025-04-06 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848109', 'tblTempVendorCDR_20' ) end [2025-04-06 14:23:19] Production.INFO: ProcessCDR(1,14848109,1,1,2) [2025-04-06 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848109', 'tblTempUsageDetail_20' ) start [2025-04-06 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848109', 'tblTempUsageDetail_20' ) end [2025-04-06 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:23:22] Production.INFO: ==32596== Releasing lock... [2025-04-06 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:23:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:24:06 [end_date_ymd] => 2025-04-06 14:24:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:24:06' and `end` < '2025-04-06 14: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-04-06 14:24:19] Production.INFO: count ==1794 [2025-04-06 14:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:24:06 - End Time 2025-04-06 14:24:06 [2025-04-06 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848114', 'tblTempUsageDetail_20' ) start [2025-04-06 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848114', 'tblTempUsageDetail_20' ) end [2025-04-06 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848114', 'tblTempVendorCDR_20' ) start [2025-04-06 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848114', 'tblTempVendorCDR_20' ) end [2025-04-06 14:24:19] Production.INFO: ProcessCDR(1,14848114,1,1,2) [2025-04-06 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848114', 'tblTempUsageDetail_20' ) start [2025-04-06 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848114', 'tblTempUsageDetail_20' ) end [2025-04-06 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:24:23] Production.INFO: ==32672== Releasing lock... [2025-04-06 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:24:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:25:05 [end_date_ymd] => 2025-04-06 14:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:25:05' and `end` < '2025-04-06 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-04-06 14:25:18] Production.INFO: count ==1796 [2025-04-06 14:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:25:05 - End Time 2025-04-06 14:25:05 [2025-04-06 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848119', 'tblTempUsageDetail_20' ) start [2025-04-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848119', 'tblTempUsageDetail_20' ) end [2025-04-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848119', 'tblTempVendorCDR_20' ) start [2025-04-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848119', 'tblTempVendorCDR_20' ) end [2025-04-06 14:25:19] Production.INFO: ProcessCDR(1,14848119,1,1,2) [2025-04-06 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848119', 'tblTempUsageDetail_20' ) start [2025-04-06 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848119', 'tblTempUsageDetail_20' ) end [2025-04-06 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:25:22] Production.INFO: ==32748== Releasing lock... [2025-04-06 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:25:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:26:05 [end_date_ymd] => 2025-04-06 14:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:26:05' and `end` < '2025-04-06 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-04-06 14:26:18] Production.INFO: count ==1798 [2025-04-06 14:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:26:05 - End Time 2025-04-06 14:26:05 [2025-04-06 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848124', 'tblTempUsageDetail_20' ) start [2025-04-06 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848124', 'tblTempUsageDetail_20' ) end [2025-04-06 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848124', 'tblTempVendorCDR_20' ) start [2025-04-06 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848124', 'tblTempVendorCDR_20' ) end [2025-04-06 14:26:19] Production.INFO: ProcessCDR(1,14848124,1,1,2) [2025-04-06 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848124', 'tblTempUsageDetail_20' ) start [2025-04-06 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848124', 'tblTempUsageDetail_20' ) end [2025-04-06 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:26:22] Production.INFO: ==385== Releasing lock... [2025-04-06 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:26:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:27:05 [end_date_ymd] => 2025-04-06 14:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:27:05' and `end` < '2025-04-06 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-04-06 14:27:18] Production.INFO: count ==1791 [2025-04-06 14:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:27:05 - End Time 2025-04-06 14:27:05 [2025-04-06 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848129', 'tblTempUsageDetail_20' ) start [2025-04-06 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848129', 'tblTempUsageDetail_20' ) end [2025-04-06 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848129', 'tblTempVendorCDR_20' ) start [2025-04-06 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848129', 'tblTempVendorCDR_20' ) end [2025-04-06 14:27:19] Production.INFO: ProcessCDR(1,14848129,1,1,2) [2025-04-06 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848129', 'tblTempUsageDetail_20' ) start [2025-04-06 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848129', 'tblTempUsageDetail_20' ) end [2025-04-06 14:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:27:24] Production.INFO: ==472== Releasing lock... [2025-04-06 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:27:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:28:05 [end_date_ymd] => 2025-04-06 14:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:28:05' and `end` < '2025-04-06 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-04-06 14:28:18] Production.INFO: count ==1789 [2025-04-06 14:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:28:05 - End Time 2025-04-06 14:28:05 [2025-04-06 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848134', 'tblTempUsageDetail_20' ) start [2025-04-06 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848134', 'tblTempUsageDetail_20' ) end [2025-04-06 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848134', 'tblTempVendorCDR_20' ) start [2025-04-06 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848134', 'tblTempVendorCDR_20' ) end [2025-04-06 14:28:19] Production.INFO: ProcessCDR(1,14848134,1,1,2) [2025-04-06 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848134', 'tblTempUsageDetail_20' ) start [2025-04-06 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848134', 'tblTempUsageDetail_20' ) end [2025-04-06 14:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:28:22] Production.INFO: ==557== Releasing lock... [2025-04-06 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:28:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:29:05 [end_date_ymd] => 2025-04-06 14:29:05 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:29:05' and `end` < '2025-04-06 14: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-04-06 14:29:18] Production.INFO: count ==1774 [2025-04-06 14:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:29:05 - End Time 2025-04-06 14:29:05 [2025-04-06 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848139', 'tblTempUsageDetail_20' ) start [2025-04-06 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848139', 'tblTempUsageDetail_20' ) end [2025-04-06 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848139', 'tblTempVendorCDR_20' ) start [2025-04-06 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848139', 'tblTempVendorCDR_20' ) end [2025-04-06 14:29:19] Production.INFO: ProcessCDR(1,14848139,1,1,2) [2025-04-06 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848139', 'tblTempUsageDetail_20' ) start [2025-04-06 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848139', 'tblTempUsageDetail_20' ) end [2025-04-06 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:29:22] Production.INFO: ==654== Releasing lock... [2025-04-06 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:29:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:30:06 [end_date_ymd] => 2025-04-06 14:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:30:06' and `end` < '2025-04-06 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-04-06 14:30:19] Production.INFO: count ==1760 [2025-04-06 14:30:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:30:06 - End Time 2025-04-06 14:30:06 [2025-04-06 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848145', 'tblTempUsageDetail_20' ) start [2025-04-06 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848145', 'tblTempUsageDetail_20' ) end [2025-04-06 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848145', 'tblTempVendorCDR_20' ) start [2025-04-06 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848145', 'tblTempVendorCDR_20' ) end [2025-04-06 14:30:20] Production.INFO: ProcessCDR(1,14848145,1,1,2) [2025-04-06 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848145', 'tblTempUsageDetail_20' ) start [2025-04-06 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848145', 'tblTempUsageDetail_20' ) end [2025-04-06 14:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:30:25] Production.INFO: ==766== Releasing lock... [2025-04-06 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:30:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:31:06 [end_date_ymd] => 2025-04-06 14:31:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:31:06' and `end` < '2025-04-06 14: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-04-06 14:31:19] Production.INFO: count ==1738 [2025-04-06 14:31:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:31:06 - End Time 2025-04-06 14:31:06 [2025-04-06 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848150', 'tblTempUsageDetail_20' ) start [2025-04-06 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848150', 'tblTempUsageDetail_20' ) end [2025-04-06 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848150', 'tblTempVendorCDR_20' ) start [2025-04-06 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848150', 'tblTempVendorCDR_20' ) end [2025-04-06 14:31:20] Production.INFO: ProcessCDR(1,14848150,1,1,2) [2025-04-06 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848150', 'tblTempUsageDetail_20' ) start [2025-04-06 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848150', 'tblTempUsageDetail_20' ) end [2025-04-06 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:31:23] Production.INFO: ==853== Releasing lock... [2025-04-06 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:31:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:32:05 [end_date_ymd] => 2025-04-06 14:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:32:05' and `end` < '2025-04-06 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-04-06 14:32:18] Production.INFO: count ==1737 [2025-04-06 14:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:32:05 - End Time 2025-04-06 14:32:05 [2025-04-06 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848151', 'tblTempUsageDetail_20' ) start [2025-04-06 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848151', 'tblTempUsageDetail_20' ) end [2025-04-06 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848151', 'tblTempVendorCDR_20' ) start [2025-04-06 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848151', 'tblTempVendorCDR_20' ) end [2025-04-06 14:32:18] Production.INFO: ProcessCDR(1,14848151,1,1,2) [2025-04-06 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848151', 'tblTempUsageDetail_20' ) start [2025-04-06 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848151', 'tblTempUsageDetail_20' ) end [2025-04-06 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:32:23] Production.INFO: ==936== Releasing lock... [2025-04-06 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:33:06 [end_date_ymd] => 2025-04-06 14:33:06 [RateCDR] => 1 ) [2025-04-06 14:33: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-04-06 11:33:06' and `end` < '2025-04-06 14:33: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-04-06 14:33:19] Production.INFO: count ==1725 [2025-04-06 14:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:33:06 - End Time 2025-04-06 14:33:06 [2025-04-06 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848160', 'tblTempUsageDetail_20' ) start [2025-04-06 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848160', 'tblTempUsageDetail_20' ) end [2025-04-06 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848160', 'tblTempVendorCDR_20' ) start [2025-04-06 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848160', 'tblTempVendorCDR_20' ) end [2025-04-06 14:33:19] Production.INFO: ProcessCDR(1,14848160,1,1,2) [2025-04-06 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848160', 'tblTempUsageDetail_20' ) start [2025-04-06 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848160', 'tblTempUsageDetail_20' ) end [2025-04-06 14:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:33:23] Production.INFO: ==1023== Releasing lock... [2025-04-06 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:33:23] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:34:05 [end_date_ymd] => 2025-04-06 14:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:34:05' and `end` < '2025-04-06 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-04-06 14:34:18] Production.INFO: count ==1725 [2025-04-06 14:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:34:05 - End Time 2025-04-06 14:34:05 [2025-04-06 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848165', 'tblTempUsageDetail_20' ) start [2025-04-06 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848165', 'tblTempUsageDetail_20' ) end [2025-04-06 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848165', 'tblTempVendorCDR_20' ) start [2025-04-06 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848165', 'tblTempVendorCDR_20' ) end [2025-04-06 14:34:19] Production.INFO: ProcessCDR(1,14848165,1,1,2) [2025-04-06 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848165', 'tblTempUsageDetail_20' ) start [2025-04-06 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848165', 'tblTempUsageDetail_20' ) end [2025-04-06 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:34:22] Production.INFO: ==1109== Releasing lock... [2025-04-06 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:34:22] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:35:05 [end_date_ymd] => 2025-04-06 14:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:35:05' and `end` < '2025-04-06 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-04-06 14:35:18] Production.INFO: count ==1723 [2025-04-06 14:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:35:05 - End Time 2025-04-06 14:35:05 [2025-04-06 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848170', 'tblTempUsageDetail_20' ) start [2025-04-06 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848170', 'tblTempUsageDetail_20' ) end [2025-04-06 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848170', 'tblTempVendorCDR_20' ) start [2025-04-06 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848170', 'tblTempVendorCDR_20' ) end [2025-04-06 14:35:19] Production.INFO: ProcessCDR(1,14848170,1,1,2) [2025-04-06 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848170', 'tblTempUsageDetail_20' ) start [2025-04-06 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848170', 'tblTempUsageDetail_20' ) end [2025-04-06 14:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:35:24] Production.INFO: ==1203== Releasing lock... [2025-04-06 14:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:35:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:36:05 [end_date_ymd] => 2025-04-06 14:36:05 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:36:05' and `end` < '2025-04-06 14: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-04-06 14:36:18] Production.INFO: count ==1725 [2025-04-06 14:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:36:05 - End Time 2025-04-06 14:36:05 [2025-04-06 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848175', 'tblTempUsageDetail_20' ) start [2025-04-06 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848175', 'tblTempUsageDetail_20' ) end [2025-04-06 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848175', 'tblTempVendorCDR_20' ) start [2025-04-06 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848175', 'tblTempVendorCDR_20' ) end [2025-04-06 14:36:18] Production.INFO: ProcessCDR(1,14848175,1,1,2) [2025-04-06 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848175', 'tblTempUsageDetail_20' ) start [2025-04-06 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848175', 'tblTempUsageDetail_20' ) end [2025-04-06 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:36:22] Production.INFO: ==1294== Releasing lock... [2025-04-06 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:36:22] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:37:06 [end_date_ymd] => 2025-04-06 14:37:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:37:06' and `end` < '2025-04-06 14: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-04-06 14:37:19] Production.INFO: count ==1728 [2025-04-06 14:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:37:06 - End Time 2025-04-06 14:37:06 [2025-04-06 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848180', 'tblTempUsageDetail_20' ) start [2025-04-06 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848180', 'tblTempUsageDetail_20' ) end [2025-04-06 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848180', 'tblTempVendorCDR_20' ) start [2025-04-06 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848180', 'tblTempVendorCDR_20' ) end [2025-04-06 14:37:19] Production.INFO: ProcessCDR(1,14848180,1,1,2) [2025-04-06 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848180', 'tblTempUsageDetail_20' ) start [2025-04-06 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848180', 'tblTempUsageDetail_20' ) end [2025-04-06 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:37:23] Production.INFO: ==1423== Releasing lock... [2025-04-06 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:37:23] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:38:06 [end_date_ymd] => 2025-04-06 14:38:06 [RateCDR] => 1 ) [2025-04-06 14:38: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-04-06 11:38:06' and `end` < '2025-04-06 14:38: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-04-06 14:38:19] Production.INFO: count ==1735 [2025-04-06 14:38:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:38:06 - End Time 2025-04-06 14:38:06 [2025-04-06 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848185', 'tblTempUsageDetail_20' ) start [2025-04-06 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848185', 'tblTempUsageDetail_20' ) end [2025-04-06 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848185', 'tblTempVendorCDR_20' ) start [2025-04-06 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848185', 'tblTempVendorCDR_20' ) end [2025-04-06 14:38:20] Production.INFO: ProcessCDR(1,14848185,1,1,2) [2025-04-06 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848185', 'tblTempUsageDetail_20' ) start [2025-04-06 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848185', 'tblTempUsageDetail_20' ) end [2025-04-06 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:38:23] Production.INFO: ==1542== Releasing lock... [2025-04-06 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:38:23] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:39:05 [end_date_ymd] => 2025-04-06 14:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:39:05' and `end` < '2025-04-06 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-04-06 14:39:17] Production.INFO: count ==1733 [2025-04-06 14:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:39:05 - End Time 2025-04-06 14:39:05 [2025-04-06 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848190', 'tblTempUsageDetail_20' ) start [2025-04-06 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848190', 'tblTempUsageDetail_20' ) end [2025-04-06 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848190', 'tblTempVendorCDR_20' ) start [2025-04-06 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848190', 'tblTempVendorCDR_20' ) end [2025-04-06 14:39:18] Production.INFO: ProcessCDR(1,14848190,1,1,2) [2025-04-06 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848190', 'tblTempUsageDetail_20' ) start [2025-04-06 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848190', 'tblTempUsageDetail_20' ) end [2025-04-06 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:39:24] Production.INFO: ==1634== Releasing lock... [2025-04-06 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:39:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:40:07 [end_date_ymd] => 2025-04-06 14:40:07 [RateCDR] => 1 ) [2025-04-06 14:40: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-04-06 11:40:07' and `end` < '2025-04-06 14:40: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-04-06 14:40:19] Production.INFO: count ==1722 [2025-04-06 14:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:40:07 - End Time 2025-04-06 14:40:07 [2025-04-06 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848196', 'tblTempUsageDetail_20' ) start [2025-04-06 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848196', 'tblTempUsageDetail_20' ) end [2025-04-06 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848196', 'tblTempVendorCDR_20' ) start [2025-04-06 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848196', 'tblTempVendorCDR_20' ) end [2025-04-06 14:40:20] Production.INFO: ProcessCDR(1,14848196,1,1,2) [2025-04-06 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848196', 'tblTempUsageDetail_20' ) start [2025-04-06 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848196', 'tblTempUsageDetail_20' ) end [2025-04-06 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:40:23] Production.INFO: ==1725== Releasing lock... [2025-04-06 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:40:23] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:41:06 [end_date_ymd] => 2025-04-06 14:41:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:41:06' and `end` < '2025-04-06 14: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-04-06 14:41:19] Production.INFO: count ==1705 [2025-04-06 14:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:41:06 - End Time 2025-04-06 14:41:06 [2025-04-06 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848201', 'tblTempUsageDetail_20' ) start [2025-04-06 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848201', 'tblTempUsageDetail_20' ) end [2025-04-06 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848201', 'tblTempVendorCDR_20' ) start [2025-04-06 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848201', 'tblTempVendorCDR_20' ) end [2025-04-06 14:41:19] Production.INFO: ProcessCDR(1,14848201,1,1,2) [2025-04-06 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848201', 'tblTempUsageDetail_20' ) start [2025-04-06 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848201', 'tblTempUsageDetail_20' ) end [2025-04-06 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:41:23] Production.INFO: ==1813== Releasing lock... [2025-04-06 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:41:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:42:06 [end_date_ymd] => 2025-04-06 14:42:06 [RateCDR] => 1 ) [2025-04-06 14:42: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-04-06 11:42:06' and `end` < '2025-04-06 14:42: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-04-06 14:42:19] Production.INFO: count ==1696 [2025-04-06 14:42:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:42:06 - End Time 2025-04-06 14:42:06 [2025-04-06 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848206', 'tblTempUsageDetail_20' ) start [2025-04-06 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848206', 'tblTempUsageDetail_20' ) end [2025-04-06 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848206', 'tblTempVendorCDR_20' ) start [2025-04-06 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848206', 'tblTempVendorCDR_20' ) end [2025-04-06 14:42:20] Production.INFO: ProcessCDR(1,14848206,1,1,2) [2025-04-06 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848206', 'tblTempUsageDetail_20' ) start [2025-04-06 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848206', 'tblTempUsageDetail_20' ) end [2025-04-06 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:42:23] Production.INFO: ==1912== Releasing lock... [2025-04-06 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:43:05 [end_date_ymd] => 2025-04-06 14:43:05 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:43:05' and `end` < '2025-04-06 14: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-04-06 14:43:18] Production.INFO: count ==1689 [2025-04-06 14:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:43:05 - End Time 2025-04-06 14:43:05 [2025-04-06 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848211', 'tblTempUsageDetail_20' ) start [2025-04-06 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848211', 'tblTempUsageDetail_20' ) end [2025-04-06 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848211', 'tblTempVendorCDR_20' ) start [2025-04-06 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848211', 'tblTempVendorCDR_20' ) end [2025-04-06 14:43:19] Production.INFO: ProcessCDR(1,14848211,1,1,2) [2025-04-06 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848211', 'tblTempUsageDetail_20' ) start [2025-04-06 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848211', 'tblTempUsageDetail_20' ) end [2025-04-06 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:43:24] Production.INFO: ==2000== Releasing lock... [2025-04-06 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:43:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:44:06 [end_date_ymd] => 2025-04-06 14:44:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:44:06' and `end` < '2025-04-06 14: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-04-06 14:44:18] Production.INFO: count ==1685 [2025-04-06 14:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:44:06 - End Time 2025-04-06 14:44:06 [2025-04-06 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848216', 'tblTempUsageDetail_20' ) start [2025-04-06 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848216', 'tblTempUsageDetail_20' ) end [2025-04-06 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848216', 'tblTempVendorCDR_20' ) start [2025-04-06 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848216', 'tblTempVendorCDR_20' ) end [2025-04-06 14:44:19] Production.INFO: ProcessCDR(1,14848216,1,1,2) [2025-04-06 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848216', 'tblTempUsageDetail_20' ) start [2025-04-06 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848216', 'tblTempUsageDetail_20' ) end [2025-04-06 14:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:44:24] Production.INFO: ==2089== Releasing lock... [2025-04-06 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:44:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:45:05 [end_date_ymd] => 2025-04-06 14:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:45:05' and `end` < '2025-04-06 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-04-06 14:45:18] Production.INFO: count ==1694 [2025-04-06 14:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:45:05 - End Time 2025-04-06 14:45:05 [2025-04-06 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848221', 'tblTempUsageDetail_20' ) start [2025-04-06 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848221', 'tblTempUsageDetail_20' ) end [2025-04-06 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848221', 'tblTempVendorCDR_20' ) start [2025-04-06 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848221', 'tblTempVendorCDR_20' ) end [2025-04-06 14:45:18] Production.INFO: ProcessCDR(1,14848221,1,1,2) [2025-04-06 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848221', 'tblTempUsageDetail_20' ) start [2025-04-06 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848221', 'tblTempUsageDetail_20' ) end [2025-04-06 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:45:23] Production.INFO: ==2176== Releasing lock... [2025-04-06 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:45:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:46:05 [end_date_ymd] => 2025-04-06 14:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:46:05' and `end` < '2025-04-06 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-04-06 14:46:18] Production.INFO: count ==1677 [2025-04-06 14:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:46:05 - End Time 2025-04-06 14:46:05 [2025-04-06 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848226', 'tblTempUsageDetail_20' ) start [2025-04-06 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848226', 'tblTempUsageDetail_20' ) end [2025-04-06 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848226', 'tblTempVendorCDR_20' ) start [2025-04-06 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848226', 'tblTempVendorCDR_20' ) end [2025-04-06 14:46:19] Production.INFO: ProcessCDR(1,14848226,1,1,2) [2025-04-06 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848226', 'tblTempUsageDetail_20' ) start [2025-04-06 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848226', 'tblTempUsageDetail_20' ) end [2025-04-06 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:46:22] Production.INFO: ==2269== Releasing lock... [2025-04-06 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:46:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:47:05 [end_date_ymd] => 2025-04-06 14:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:47:05' and `end` < '2025-04-06 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-04-06 14:47:18] Production.INFO: count ==1677 [2025-04-06 14:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:47:05 - End Time 2025-04-06 14:47:05 [2025-04-06 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848231', 'tblTempUsageDetail_20' ) start [2025-04-06 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848231', 'tblTempUsageDetail_20' ) end [2025-04-06 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848231', 'tblTempVendorCDR_20' ) start [2025-04-06 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848231', 'tblTempVendorCDR_20' ) end [2025-04-06 14:47:18] Production.INFO: ProcessCDR(1,14848231,1,1,2) [2025-04-06 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848231', 'tblTempUsageDetail_20' ) start [2025-04-06 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848231', 'tblTempUsageDetail_20' ) end [2025-04-06 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:47:22] Production.INFO: ==2357== Releasing lock... [2025-04-06 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:48:05 [end_date_ymd] => 2025-04-06 14:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:48:05' and `end` < '2025-04-06 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-04-06 14:48:18] Production.INFO: count ==1657 [2025-04-06 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:48:05 - End Time 2025-04-06 14:48:05 [2025-04-06 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848236', 'tblTempUsageDetail_20' ) start [2025-04-06 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848236', 'tblTempUsageDetail_20' ) end [2025-04-06 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848236', 'tblTempVendorCDR_20' ) start [2025-04-06 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848236', 'tblTempVendorCDR_20' ) end [2025-04-06 14:48:19] Production.INFO: ProcessCDR(1,14848236,1,1,2) [2025-04-06 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848236', 'tblTempUsageDetail_20' ) start [2025-04-06 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848236', 'tblTempUsageDetail_20' ) end [2025-04-06 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:48:22] Production.INFO: ==2442== Releasing lock... [2025-04-06 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:49:05 [end_date_ymd] => 2025-04-06 14:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:49:05' and `end` < '2025-04-06 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-04-06 14:49:18] Production.INFO: count ==1648 [2025-04-06 14:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:49:05 - End Time 2025-04-06 14:49:05 [2025-04-06 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848241', 'tblTempUsageDetail_20' ) start [2025-04-06 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848241', 'tblTempUsageDetail_20' ) end [2025-04-06 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848241', 'tblTempVendorCDR_20' ) start [2025-04-06 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848241', 'tblTempVendorCDR_20' ) end [2025-04-06 14:49:18] Production.INFO: ProcessCDR(1,14848241,1,1,2) [2025-04-06 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848241', 'tblTempUsageDetail_20' ) start [2025-04-06 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848241', 'tblTempUsageDetail_20' ) end [2025-04-06 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:49:23] Production.INFO: ==2533== Releasing lock... [2025-04-06 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:50:06 [end_date_ymd] => 2025-04-06 14:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:50:06' and `end` < '2025-04-06 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-04-06 14:50:19] Production.INFO: count ==1644 [2025-04-06 14:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:50:06 - End Time 2025-04-06 14:50:06 [2025-04-06 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848247', 'tblTempUsageDetail_20' ) start [2025-04-06 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848247', 'tblTempUsageDetail_20' ) end [2025-04-06 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848247', 'tblTempVendorCDR_20' ) start [2025-04-06 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848247', 'tblTempVendorCDR_20' ) end [2025-04-06 14:50:20] Production.INFO: ProcessCDR(1,14848247,1,1,2) [2025-04-06 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848247', 'tblTempUsageDetail_20' ) start [2025-04-06 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848247', 'tblTempUsageDetail_20' ) end [2025-04-06 14:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:50:23] Production.INFO: ==2620== Releasing lock... [2025-04-06 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:50:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:51:05 [end_date_ymd] => 2025-04-06 14:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:51:05' and `end` < '2025-04-06 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-04-06 14:51:18] Production.INFO: count ==1632 [2025-04-06 14:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 11:51:05 - End Time 2025-04-06 14:51:05 [2025-04-06 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848252', 'tblTempUsageDetail_20' ) start [2025-04-06 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848252', 'tblTempUsageDetail_20' ) end [2025-04-06 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848252', 'tblTempVendorCDR_20' ) start [2025-04-06 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848252', 'tblTempVendorCDR_20' ) end [2025-04-06 14:51:18] Production.INFO: ProcessCDR(1,14848252,1,1,2) [2025-04-06 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848252', 'tblTempUsageDetail_20' ) start [2025-04-06 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848252', 'tblTempUsageDetail_20' ) end [2025-04-06 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:51:22] Production.INFO: ==2708== Releasing lock... [2025-04-06 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:52:05 [end_date_ymd] => 2025-04-06 14:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:52:05' and `end` < '2025-04-06 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-04-06 14:52:18] Production.INFO: count ==1630 [2025-04-06 14:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:52:05 - End Time 2025-04-06 14:52:05 [2025-04-06 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848257', 'tblTempUsageDetail_20' ) start [2025-04-06 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848257', 'tblTempUsageDetail_20' ) end [2025-04-06 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848257', 'tblTempVendorCDR_20' ) start [2025-04-06 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848257', 'tblTempVendorCDR_20' ) end [2025-04-06 14:52:19] Production.INFO: ProcessCDR(1,14848257,1,1,2) [2025-04-06 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848257', 'tblTempUsageDetail_20' ) start [2025-04-06 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848257', 'tblTempUsageDetail_20' ) end [2025-04-06 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:52:22] Production.INFO: ==2797== Releasing lock... [2025-04-06 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:52:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:53:06 [end_date_ymd] => 2025-04-06 14:53:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:53:06' and `end` < '2025-04-06 14: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-04-06 14:53:19] Production.INFO: count ==1628 [2025-04-06 14:53:20] Production.ERROR: pbx CDR StartTime 2025-04-06 11:53:06 - End Time 2025-04-06 14:53:06 [2025-04-06 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848262', 'tblTempUsageDetail_20' ) start [2025-04-06 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848262', 'tblTempUsageDetail_20' ) end [2025-04-06 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848262', 'tblTempVendorCDR_20' ) start [2025-04-06 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848262', 'tblTempVendorCDR_20' ) end [2025-04-06 14:53:20] Production.INFO: ProcessCDR(1,14848262,1,1,2) [2025-04-06 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848262', 'tblTempUsageDetail_20' ) start [2025-04-06 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848262', 'tblTempUsageDetail_20' ) end [2025-04-06 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:53:23] Production.INFO: ==2919== Releasing lock... [2025-04-06 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:53:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:54:06 [end_date_ymd] => 2025-04-06 14:54:06 [RateCDR] => 1 ) [2025-04-06 14:54: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-04-06 11:54:06' and `end` < '2025-04-06 14:54: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-04-06 14:54:19] Production.INFO: count ==1626 [2025-04-06 14:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:54:06 - End Time 2025-04-06 14:54:06 [2025-04-06 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848267', 'tblTempUsageDetail_20' ) start [2025-04-06 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848267', 'tblTempUsageDetail_20' ) end [2025-04-06 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848267', 'tblTempVendorCDR_20' ) start [2025-04-06 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848267', 'tblTempVendorCDR_20' ) end [2025-04-06 14:54:19] Production.INFO: ProcessCDR(1,14848267,1,1,2) [2025-04-06 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848267', 'tblTempUsageDetail_20' ) start [2025-04-06 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848267', 'tblTempUsageDetail_20' ) end [2025-04-06 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:54:23] Production.INFO: ==3004== Releasing lock... [2025-04-06 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:54:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:55:06 [end_date_ymd] => 2025-04-06 14:55:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:55:06' and `end` < '2025-04-06 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-04-06 14:55:19] Production.INFO: count ==1633 [2025-04-06 14:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:55:06 - End Time 2025-04-06 14:55:06 [2025-04-06 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848272', 'tblTempUsageDetail_20' ) start [2025-04-06 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848272', 'tblTempUsageDetail_20' ) end [2025-04-06 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848272', 'tblTempVendorCDR_20' ) start [2025-04-06 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848272', 'tblTempVendorCDR_20' ) end [2025-04-06 14:55:20] Production.INFO: ProcessCDR(1,14848272,1,1,2) [2025-04-06 14:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848272', 'tblTempUsageDetail_20' ) start [2025-04-06 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848272', 'tblTempUsageDetail_20' ) end [2025-04-06 14:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:55:25] Production.INFO: ==3088== Releasing lock... [2025-04-06 14:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:55:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:56:06 [end_date_ymd] => 2025-04-06 14:56:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:56:06' and `end` < '2025-04-06 14: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-04-06 14:56:19] Production.INFO: count ==1641 [2025-04-06 14:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:56:06 - End Time 2025-04-06 14:56:06 [2025-04-06 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848277', 'tblTempUsageDetail_20' ) start [2025-04-06 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848277', 'tblTempUsageDetail_20' ) end [2025-04-06 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848277', 'tblTempVendorCDR_20' ) start [2025-04-06 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848277', 'tblTempVendorCDR_20' ) end [2025-04-06 14:56:19] Production.INFO: ProcessCDR(1,14848277,1,1,2) [2025-04-06 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848277', 'tblTempUsageDetail_20' ) start [2025-04-06 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848277', 'tblTempUsageDetail_20' ) end [2025-04-06 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:56:23] Production.INFO: ==3182== Releasing lock... [2025-04-06 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:56:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:57:06 [end_date_ymd] => 2025-04-06 14:57:06 [RateCDR] => 1 ) [2025-04-06 14: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-04-06 11:57:06' and `end` < '2025-04-06 14: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-04-06 14:57:19] Production.INFO: count ==1648 [2025-04-06 14:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:57:06 - End Time 2025-04-06 14:57:06 [2025-04-06 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848282', 'tblTempUsageDetail_20' ) start [2025-04-06 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848282', 'tblTempUsageDetail_20' ) end [2025-04-06 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848282', 'tblTempVendorCDR_20' ) start [2025-04-06 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848282', 'tblTempVendorCDR_20' ) end [2025-04-06 14:57:19] Production.INFO: ProcessCDR(1,14848282,1,1,2) [2025-04-06 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848282', 'tblTempUsageDetail_20' ) start [2025-04-06 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848282', 'tblTempUsageDetail_20' ) end [2025-04-06 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:57:24] Production.INFO: ==3265== Releasing lock... [2025-04-06 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:57:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:58:05 [end_date_ymd] => 2025-04-06 14:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:58:05' and `end` < '2025-04-06 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-04-06 14:58:18] Production.INFO: count ==1648 [2025-04-06 14:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:58:05 - End Time 2025-04-06 14:58:05 [2025-04-06 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848287', 'tblTempUsageDetail_20' ) start [2025-04-06 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848287', 'tblTempUsageDetail_20' ) end [2025-04-06 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848287', 'tblTempVendorCDR_20' ) start [2025-04-06 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848287', 'tblTempVendorCDR_20' ) end [2025-04-06 14:58:19] Production.INFO: ProcessCDR(1,14848287,1,1,2) [2025-04-06 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848287', 'tblTempUsageDetail_20' ) start [2025-04-06 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848287', 'tblTempUsageDetail_20' ) end [2025-04-06 14:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:58:24] Production.INFO: ==3354== Releasing lock... [2025-04-06 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:58:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 11:59:05 [end_date_ymd] => 2025-04-06 14:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 11:59:05' and `end` < '2025-04-06 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-04-06 14:59:18] Production.INFO: count ==1649 [2025-04-06 14:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 11:59:05 - End Time 2025-04-06 14:59:05 [2025-04-06 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848292', 'tblTempUsageDetail_20' ) start [2025-04-06 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848292', 'tblTempUsageDetail_20' ) end [2025-04-06 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848292', 'tblTempVendorCDR_20' ) start [2025-04-06 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848292', 'tblTempVendorCDR_20' ) end [2025-04-06 14:59:19] Production.INFO: ProcessCDR(1,14848292,1,1,2) [2025-04-06 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848292', 'tblTempUsageDetail_20' ) start [2025-04-06 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848292', 'tblTempUsageDetail_20' ) end [2025-04-06 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 14:59:24] Production.INFO: ==3442== Releasing lock... [2025-04-06 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 14:59:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:00:06 [end_date_ymd] => 2025-04-06 15:00:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:00:06' and `end` < '2025-04-06 15: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-04-06 15:00:19] Production.INFO: count ==1648 [2025-04-06 15:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:00:06 - End Time 2025-04-06 15:00:06 [2025-04-06 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848298', 'tblTempUsageDetail_20' ) start [2025-04-06 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848298', 'tblTempUsageDetail_20' ) end [2025-04-06 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848298', 'tblTempVendorCDR_20' ) start [2025-04-06 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848298', 'tblTempVendorCDR_20' ) end [2025-04-06 15:00:20] Production.INFO: ProcessCDR(1,14848298,1,1,2) [2025-04-06 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848298', 'tblTempUsageDetail_20' ) start [2025-04-06 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848298', 'tblTempUsageDetail_20' ) end [2025-04-06 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:00:25] Production.INFO: ==3525== Releasing lock... [2025-04-06 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:00:25] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:01:06 [end_date_ymd] => 2025-04-06 15:01:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:01:06' and `end` < '2025-04-06 15: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-04-06 15:01:19] Production.INFO: count ==1634 [2025-04-06 15:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:01:06 - End Time 2025-04-06 15:01:06 [2025-04-06 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848303', 'tblTempUsageDetail_20' ) start [2025-04-06 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848303', 'tblTempUsageDetail_20' ) end [2025-04-06 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848303', 'tblTempVendorCDR_20' ) start [2025-04-06 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848303', 'tblTempVendorCDR_20' ) end [2025-04-06 15:01:19] Production.INFO: ProcessCDR(1,14848303,1,1,2) [2025-04-06 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848303', 'tblTempUsageDetail_20' ) start [2025-04-06 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848303', 'tblTempUsageDetail_20' ) end [2025-04-06 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:01:25] Production.INFO: ==3698== Releasing lock... [2025-04-06 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:01:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:02:05 [end_date_ymd] => 2025-04-06 15:02:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:02:05' and `end` < '2025-04-06 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-04-06 15:02:18] Production.INFO: count ==1635 [2025-04-06 15:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:02:05 - End Time 2025-04-06 15:02:05 [2025-04-06 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848308', 'tblTempUsageDetail_20' ) start [2025-04-06 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848308', 'tblTempUsageDetail_20' ) end [2025-04-06 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848308', 'tblTempVendorCDR_20' ) start [2025-04-06 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848308', 'tblTempVendorCDR_20' ) end [2025-04-06 15:02:19] Production.INFO: ProcessCDR(1,14848308,1,1,2) [2025-04-06 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848308', 'tblTempUsageDetail_20' ) start [2025-04-06 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848308', 'tblTempUsageDetail_20' ) end [2025-04-06 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:02:24] Production.INFO: ==3782== Releasing lock... [2025-04-06 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:02:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:03:06 [end_date_ymd] => 2025-04-06 15:03:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:03:06' and `end` < '2025-04-06 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-04-06 15:03:19] Production.INFO: count ==1634 [2025-04-06 15:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:03:06 - End Time 2025-04-06 15:03:06 [2025-04-06 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848313', 'tblTempUsageDetail_20' ) start [2025-04-06 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848313', 'tblTempUsageDetail_20' ) end [2025-04-06 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848313', 'tblTempVendorCDR_20' ) start [2025-04-06 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848313', 'tblTempVendorCDR_20' ) end [2025-04-06 15:03:19] Production.INFO: ProcessCDR(1,14848313,1,1,2) [2025-04-06 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848313', 'tblTempUsageDetail_20' ) start [2025-04-06 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848313', 'tblTempUsageDetail_20' ) end [2025-04-06 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:03:23] Production.INFO: ==3863== Releasing lock... [2025-04-06 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:03:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:04:05 [end_date_ymd] => 2025-04-06 15:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:04:05' and `end` < '2025-04-06 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-04-06 15:04:18] Production.INFO: count ==1630 [2025-04-06 15:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:04:05 - End Time 2025-04-06 15:04:05 [2025-04-06 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848318', 'tblTempUsageDetail_20' ) start [2025-04-06 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848318', 'tblTempUsageDetail_20' ) end [2025-04-06 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848318', 'tblTempVendorCDR_20' ) start [2025-04-06 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848318', 'tblTempVendorCDR_20' ) end [2025-04-06 15:04:19] Production.INFO: ProcessCDR(1,14848318,1,1,2) [2025-04-06 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848318', 'tblTempUsageDetail_20' ) start [2025-04-06 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848318', 'tblTempUsageDetail_20' ) end [2025-04-06 15:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:04:22] Production.INFO: ==3946== Releasing lock... [2025-04-06 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:04:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:05:05 [end_date_ymd] => 2025-04-06 15:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:05:05' and `end` < '2025-04-06 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-04-06 15:05:18] Production.INFO: count ==1627 [2025-04-06 15:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:05:05 - End Time 2025-04-06 15:05:05 [2025-04-06 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848323', 'tblTempUsageDetail_20' ) start [2025-04-06 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848323', 'tblTempUsageDetail_20' ) end [2025-04-06 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848323', 'tblTempVendorCDR_20' ) start [2025-04-06 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848323', 'tblTempVendorCDR_20' ) end [2025-04-06 15:05:19] Production.INFO: ProcessCDR(1,14848323,1,1,2) [2025-04-06 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848323', 'tblTempUsageDetail_20' ) start [2025-04-06 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848323', 'tblTempUsageDetail_20' ) end [2025-04-06 15:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:05:24] Production.INFO: ==4102== Releasing lock... [2025-04-06 15:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:05:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:06:06 [end_date_ymd] => 2025-04-06 15:06:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:06:06' and `end` < '2025-04-06 15: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-04-06 15:06:19] Production.INFO: count ==1640 [2025-04-06 15:06:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:06:06 - End Time 2025-04-06 15:06:06 [2025-04-06 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848328', 'tblTempUsageDetail_20' ) start [2025-04-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848328', 'tblTempUsageDetail_20' ) end [2025-04-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848328', 'tblTempVendorCDR_20' ) start [2025-04-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848328', 'tblTempVendorCDR_20' ) end [2025-04-06 15:06:20] Production.INFO: ProcessCDR(1,14848328,1,1,2) [2025-04-06 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848328', 'tblTempUsageDetail_20' ) start [2025-04-06 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848328', 'tblTempUsageDetail_20' ) end [2025-04-06 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:06:23] Production.INFO: ==4182== Releasing lock... [2025-04-06 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:06:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:07:05 [end_date_ymd] => 2025-04-06 15:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:07:05' and `end` < '2025-04-06 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-04-06 15:07:18] Production.INFO: count ==1648 [2025-04-06 15:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:07:05 - End Time 2025-04-06 15:07:05 [2025-04-06 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848333', 'tblTempUsageDetail_20' ) start [2025-04-06 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848333', 'tblTempUsageDetail_20' ) end [2025-04-06 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848333', 'tblTempVendorCDR_20' ) start [2025-04-06 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848333', 'tblTempVendorCDR_20' ) end [2025-04-06 15:07:19] Production.INFO: ProcessCDR(1,14848333,1,1,2) [2025-04-06 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848333', 'tblTempUsageDetail_20' ) start [2025-04-06 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848333', 'tblTempUsageDetail_20' ) end [2025-04-06 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:07:22] Production.INFO: ==4263== Releasing lock... [2025-04-06 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:07:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:08:04 [end_date_ymd] => 2025-04-06 15:08:04 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:08:04' and `end` < '2025-04-06 15: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-04-06 15:08:17] Production.INFO: count ==1644 [2025-04-06 15:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:08:04 - End Time 2025-04-06 15:08:04 [2025-04-06 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848338', 'tblTempUsageDetail_20' ) start [2025-04-06 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848338', 'tblTempUsageDetail_20' ) end [2025-04-06 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848338', 'tblTempVendorCDR_20' ) start [2025-04-06 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848338', 'tblTempVendorCDR_20' ) end [2025-04-06 15:08:18] Production.INFO: ProcessCDR(1,14848338,1,1,2) [2025-04-06 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848338', 'tblTempUsageDetail_20' ) start [2025-04-06 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848338', 'tblTempUsageDetail_20' ) end [2025-04-06 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:08:22] Production.INFO: ==4461== Releasing lock... [2025-04-06 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:08:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:09:05 [end_date_ymd] => 2025-04-06 15:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:09:05' and `end` < '2025-04-06 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-04-06 15:09:18] Production.INFO: count ==1653 [2025-04-06 15:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:09:05 - End Time 2025-04-06 15:09:05 [2025-04-06 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848343', 'tblTempUsageDetail_20' ) start [2025-04-06 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848343', 'tblTempUsageDetail_20' ) end [2025-04-06 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848343', 'tblTempVendorCDR_20' ) start [2025-04-06 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848343', 'tblTempVendorCDR_20' ) end [2025-04-06 15:09:19] Production.INFO: ProcessCDR(1,14848343,1,1,2) [2025-04-06 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848343', 'tblTempUsageDetail_20' ) start [2025-04-06 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848343', 'tblTempUsageDetail_20' ) end [2025-04-06 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:09:24] Production.INFO: ==4538== Releasing lock... [2025-04-06 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:09:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:10:06 [end_date_ymd] => 2025-04-06 15:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:10:06' and `end` < '2025-04-06 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-04-06 15:10:19] Production.INFO: count ==1658 [2025-04-06 15:10:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:10:06 - End Time 2025-04-06 15:10:06 [2025-04-06 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848349', 'tblTempUsageDetail_20' ) start [2025-04-06 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848349', 'tblTempUsageDetail_20' ) end [2025-04-06 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848349', 'tblTempVendorCDR_20' ) start [2025-04-06 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848349', 'tblTempVendorCDR_20' ) end [2025-04-06 15:10:20] Production.INFO: ProcessCDR(1,14848349,1,1,2) [2025-04-06 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848349', 'tblTempUsageDetail_20' ) start [2025-04-06 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848349', 'tblTempUsageDetail_20' ) end [2025-04-06 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:10:24] Production.INFO: ==4646== Releasing lock... [2025-04-06 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:10:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:11:05 [end_date_ymd] => 2025-04-06 15:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:11:05' and `end` < '2025-04-06 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-04-06 15:11:18] Production.INFO: count ==1682 [2025-04-06 15:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:11:05 - End Time 2025-04-06 15:11:05 [2025-04-06 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848354', 'tblTempUsageDetail_20' ) start [2025-04-06 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848354', 'tblTempUsageDetail_20' ) end [2025-04-06 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848354', 'tblTempVendorCDR_20' ) start [2025-04-06 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848354', 'tblTempVendorCDR_20' ) end [2025-04-06 15:11:19] Production.INFO: ProcessCDR(1,14848354,1,1,2) [2025-04-06 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848354', 'tblTempUsageDetail_20' ) start [2025-04-06 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848354', 'tblTempUsageDetail_20' ) end [2025-04-06 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:11:22] Production.INFO: ==4731== Releasing lock... [2025-04-06 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:11:22] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:12:06 [end_date_ymd] => 2025-04-06 15:12:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:12:06' and `end` < '2025-04-06 15: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-04-06 15:12:19] Production.INFO: count ==1682 [2025-04-06 15:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:12:06 - End Time 2025-04-06 15:12:06 [2025-04-06 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848359', 'tblTempUsageDetail_20' ) start [2025-04-06 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848359', 'tblTempUsageDetail_20' ) end [2025-04-06 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848359', 'tblTempVendorCDR_20' ) start [2025-04-06 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848359', 'tblTempVendorCDR_20' ) end [2025-04-06 15:12:19] Production.INFO: ProcessCDR(1,14848359,1,1,2) [2025-04-06 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848359', 'tblTempUsageDetail_20' ) start [2025-04-06 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848359', 'tblTempUsageDetail_20' ) end [2025-04-06 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:12:25] Production.INFO: ==4899== Releasing lock... [2025-04-06 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:12:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:13:05 [end_date_ymd] => 2025-04-06 15:13:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:13:05' and `end` < '2025-04-06 15: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-04-06 15:13:19] Production.INFO: count ==1675 [2025-04-06 15:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:13:05 - End Time 2025-04-06 15:13:05 [2025-04-06 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848364', 'tblTempUsageDetail_20' ) start [2025-04-06 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848364', 'tblTempUsageDetail_20' ) end [2025-04-06 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848364', 'tblTempVendorCDR_20' ) start [2025-04-06 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848364', 'tblTempVendorCDR_20' ) end [2025-04-06 15:13:19] Production.INFO: ProcessCDR(1,14848364,1,1,2) [2025-04-06 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848364', 'tblTempUsageDetail_20' ) start [2025-04-06 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848364', 'tblTempUsageDetail_20' ) end [2025-04-06 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:13:24] Production.INFO: ==4975== Releasing lock... [2025-04-06 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:13:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:14:06 [end_date_ymd] => 2025-04-06 15:14:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:14:06' and `end` < '2025-04-06 15: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-04-06 15:14:19] Production.INFO: count ==1677 [2025-04-06 15:14:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:14:06 - End Time 2025-04-06 15:14:06 [2025-04-06 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848369', 'tblTempUsageDetail_20' ) start [2025-04-06 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848369', 'tblTempUsageDetail_20' ) end [2025-04-06 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848369', 'tblTempVendorCDR_20' ) start [2025-04-06 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848369', 'tblTempVendorCDR_20' ) end [2025-04-06 15:14:20] Production.INFO: ProcessCDR(1,14848369,1,1,2) [2025-04-06 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848369', 'tblTempUsageDetail_20' ) start [2025-04-06 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848369', 'tblTempUsageDetail_20' ) end [2025-04-06 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:14:25] Production.INFO: ==5058== Releasing lock... [2025-04-06 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:14:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:15:06 [end_date_ymd] => 2025-04-06 15:15:06 [RateCDR] => 1 ) [2025-04-06 15:15: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-04-06 12:15:06' and `end` < '2025-04-06 15:15: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-04-06 15:15:19] Production.INFO: count ==1679 [2025-04-06 15:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:15:06 - End Time 2025-04-06 15:15:06 [2025-04-06 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848374', 'tblTempUsageDetail_20' ) start [2025-04-06 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848374', 'tblTempUsageDetail_20' ) end [2025-04-06 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848374', 'tblTempVendorCDR_20' ) start [2025-04-06 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848374', 'tblTempVendorCDR_20' ) end [2025-04-06 15:15:19] Production.INFO: ProcessCDR(1,14848374,1,1,2) [2025-04-06 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848374', 'tblTempUsageDetail_20' ) start [2025-04-06 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848374', 'tblTempUsageDetail_20' ) end [2025-04-06 15:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:15:24] Production.INFO: ==5217== Releasing lock... [2025-04-06 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:15:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:16:06 [end_date_ymd] => 2025-04-06 15:16:06 [RateCDR] => 1 ) [2025-04-06 15:16: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-04-06 12:16:06' and `end` < '2025-04-06 15:16: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-04-06 15:16:19] Production.INFO: count ==1677 [2025-04-06 15:16:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:16:06 - End Time 2025-04-06 15:16:06 [2025-04-06 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848379', 'tblTempUsageDetail_20' ) start [2025-04-06 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848379', 'tblTempUsageDetail_20' ) end [2025-04-06 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848379', 'tblTempVendorCDR_20' ) start [2025-04-06 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848379', 'tblTempVendorCDR_20' ) end [2025-04-06 15:16:20] Production.INFO: ProcessCDR(1,14848379,1,1,2) [2025-04-06 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848379', 'tblTempUsageDetail_20' ) start [2025-04-06 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848379', 'tblTempUsageDetail_20' ) end [2025-04-06 15:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:16:23] Production.INFO: ==5299== Releasing lock... [2025-04-06 15:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:16:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:17:05 [end_date_ymd] => 2025-04-06 15:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:17:05' and `end` < '2025-04-06 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-04-06 15:17:18] Production.INFO: count ==1687 [2025-04-06 15:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:17:05 - End Time 2025-04-06 15:17:05 [2025-04-06 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848384', 'tblTempUsageDetail_20' ) start [2025-04-06 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848384', 'tblTempUsageDetail_20' ) end [2025-04-06 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848384', 'tblTempVendorCDR_20' ) start [2025-04-06 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848384', 'tblTempVendorCDR_20' ) end [2025-04-06 15:17:18] Production.INFO: ProcessCDR(1,14848384,1,1,2) [2025-04-06 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848384', 'tblTempUsageDetail_20' ) start [2025-04-06 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848384', 'tblTempUsageDetail_20' ) end [2025-04-06 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:17:24] Production.INFO: ==5376== Releasing lock... [2025-04-06 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:17:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:18:05 [end_date_ymd] => 2025-04-06 15:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:18:05' and `end` < '2025-04-06 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-04-06 15:18:18] Production.INFO: count ==1693 [2025-04-06 15:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:18:05 - End Time 2025-04-06 15:18:05 [2025-04-06 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848389', 'tblTempUsageDetail_20' ) start [2025-04-06 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848389', 'tblTempUsageDetail_20' ) end [2025-04-06 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848389', 'tblTempVendorCDR_20' ) start [2025-04-06 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848389', 'tblTempVendorCDR_20' ) end [2025-04-06 15:18:19] Production.INFO: ProcessCDR(1,14848389,1,1,2) [2025-04-06 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848389', 'tblTempUsageDetail_20' ) start [2025-04-06 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848389', 'tblTempUsageDetail_20' ) end [2025-04-06 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:18:24] Production.INFO: ==5456== Releasing lock... [2025-04-06 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:18:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:19:05 [end_date_ymd] => 2025-04-06 15:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:19:05' and `end` < '2025-04-06 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-04-06 15:19:18] Production.INFO: count ==1689 [2025-04-06 15:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:19:05 - End Time 2025-04-06 15:19:05 [2025-04-06 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848394', 'tblTempUsageDetail_20' ) start [2025-04-06 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848394', 'tblTempUsageDetail_20' ) end [2025-04-06 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848394', 'tblTempVendorCDR_20' ) start [2025-04-06 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848394', 'tblTempVendorCDR_20' ) end [2025-04-06 15:19:19] Production.INFO: ProcessCDR(1,14848394,1,1,2) [2025-04-06 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848394', 'tblTempUsageDetail_20' ) start [2025-04-06 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848394', 'tblTempUsageDetail_20' ) end [2025-04-06 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:19:23] Production.INFO: ==5533== Releasing lock... [2025-04-06 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:19:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:20:07 [end_date_ymd] => 2025-04-06 15:20:07 [RateCDR] => 1 ) [2025-04-06 15:20: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-04-06 12:20:07' and `end` < '2025-04-06 15:20: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-04-06 15:20:20] Production.INFO: count ==1689 [2025-04-06 15:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:20:07 - End Time 2025-04-06 15:20:07 [2025-04-06 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848400', 'tblTempUsageDetail_20' ) start [2025-04-06 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848400', 'tblTempUsageDetail_20' ) end [2025-04-06 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848400', 'tblTempVendorCDR_20' ) start [2025-04-06 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848400', 'tblTempVendorCDR_20' ) end [2025-04-06 15:20:20] Production.INFO: ProcessCDR(1,14848400,1,1,2) [2025-04-06 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848400', 'tblTempUsageDetail_20' ) start [2025-04-06 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848400', 'tblTempUsageDetail_20' ) end [2025-04-06 15:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:20:25] Production.INFO: ==5616== Releasing lock... [2025-04-06 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:20:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:21:05 [end_date_ymd] => 2025-04-06 15:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:21:05' and `end` < '2025-04-06 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-04-06 15:21:18] Production.INFO: count ==1696 [2025-04-06 15:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:21:05 - End Time 2025-04-06 15:21:05 [2025-04-06 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848405', 'tblTempUsageDetail_20' ) start [2025-04-06 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848405', 'tblTempUsageDetail_20' ) end [2025-04-06 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848405', 'tblTempVendorCDR_20' ) start [2025-04-06 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848405', 'tblTempVendorCDR_20' ) end [2025-04-06 15:21:19] Production.INFO: ProcessCDR(1,14848405,1,1,2) [2025-04-06 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848405', 'tblTempUsageDetail_20' ) start [2025-04-06 15:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848405', 'tblTempUsageDetail_20' ) end [2025-04-06 15:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:21:24] Production.INFO: ==5694== Releasing lock... [2025-04-06 15:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:21:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:22:05 [end_date_ymd] => 2025-04-06 15:22:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:22:05' and `end` < '2025-04-06 15: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-04-06 15:22:18] Production.INFO: count ==1698 [2025-04-06 15:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:22:05 - End Time 2025-04-06 15:22:05 [2025-04-06 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848410', 'tblTempUsageDetail_20' ) start [2025-04-06 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848410', 'tblTempUsageDetail_20' ) end [2025-04-06 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848410', 'tblTempVendorCDR_20' ) start [2025-04-06 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848410', 'tblTempVendorCDR_20' ) end [2025-04-06 15:22:19] Production.INFO: ProcessCDR(1,14848410,1,1,2) [2025-04-06 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848410', 'tblTempUsageDetail_20' ) start [2025-04-06 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848410', 'tblTempUsageDetail_20' ) end [2025-04-06 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:22:24] Production.INFO: ==5776== Releasing lock... [2025-04-06 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:22:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:23:05 [end_date_ymd] => 2025-04-06 15:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:23:05' and `end` < '2025-04-06 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-04-06 15:23:18] Production.INFO: count ==1695 [2025-04-06 15:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:23:05 - End Time 2025-04-06 15:23:05 [2025-04-06 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848415', 'tblTempUsageDetail_20' ) start [2025-04-06 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848415', 'tblTempUsageDetail_20' ) end [2025-04-06 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848415', 'tblTempVendorCDR_20' ) start [2025-04-06 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848415', 'tblTempVendorCDR_20' ) end [2025-04-06 15:23:19] Production.INFO: ProcessCDR(1,14848415,1,1,2) [2025-04-06 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848415', 'tblTempUsageDetail_20' ) start [2025-04-06 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848415', 'tblTempUsageDetail_20' ) end [2025-04-06 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:23:24] Production.INFO: ==5894== Releasing lock... [2025-04-06 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:23:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:24:06 [end_date_ymd] => 2025-04-06 15:24:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:24:06' and `end` < '2025-04-06 15: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-04-06 15:24:19] Production.INFO: count ==1697 [2025-04-06 15:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:24:06 - End Time 2025-04-06 15:24:06 [2025-04-06 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848420', 'tblTempUsageDetail_20' ) start [2025-04-06 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848420', 'tblTempUsageDetail_20' ) end [2025-04-06 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848420', 'tblTempVendorCDR_20' ) start [2025-04-06 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848420', 'tblTempVendorCDR_20' ) end [2025-04-06 15:24:20] Production.INFO: ProcessCDR(1,14848420,1,1,2) [2025-04-06 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848420', 'tblTempUsageDetail_20' ) start [2025-04-06 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848420', 'tblTempUsageDetail_20' ) end [2025-04-06 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:24:25] Production.INFO: ==5969== Releasing lock... [2025-04-06 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:24:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:25:05 [end_date_ymd] => 2025-04-06 15:25:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:25:05' and `end` < '2025-04-06 15: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-04-06 15:25:18] Production.INFO: count ==1699 [2025-04-06 15:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:25:05 - End Time 2025-04-06 15:25:05 [2025-04-06 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848425', 'tblTempUsageDetail_20' ) start [2025-04-06 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848425', 'tblTempUsageDetail_20' ) end [2025-04-06 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848425', 'tblTempVendorCDR_20' ) start [2025-04-06 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848425', 'tblTempVendorCDR_20' ) end [2025-04-06 15:25:18] Production.INFO: ProcessCDR(1,14848425,1,1,2) [2025-04-06 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848425', 'tblTempUsageDetail_20' ) start [2025-04-06 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848425', 'tblTempUsageDetail_20' ) end [2025-04-06 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:25:23] Production.INFO: ==6040== Releasing lock... [2025-04-06 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:25:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:26:05 [end_date_ymd] => 2025-04-06 15:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:26:05' and `end` < '2025-04-06 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-04-06 15:26:18] Production.INFO: count ==1716 [2025-04-06 15:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:26:05 - End Time 2025-04-06 15:26:05 [2025-04-06 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848430', 'tblTempUsageDetail_20' ) start [2025-04-06 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848430', 'tblTempUsageDetail_20' ) end [2025-04-06 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848430', 'tblTempVendorCDR_20' ) start [2025-04-06 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848430', 'tblTempVendorCDR_20' ) end [2025-04-06 15:26:19] Production.INFO: ProcessCDR(1,14848430,1,1,2) [2025-04-06 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848430', 'tblTempUsageDetail_20' ) start [2025-04-06 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848430', 'tblTempUsageDetail_20' ) end [2025-04-06 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:26:24] Production.INFO: ==6120== Releasing lock... [2025-04-06 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:26:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:27:06 [end_date_ymd] => 2025-04-06 15:27:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:27:06' and `end` < '2025-04-06 15: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-04-06 15:27:19] Production.INFO: count ==1718 [2025-04-06 15:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:27:06 - End Time 2025-04-06 15:27:06 [2025-04-06 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848435', 'tblTempUsageDetail_20' ) start [2025-04-06 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848435', 'tblTempUsageDetail_20' ) end [2025-04-06 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848435', 'tblTempVendorCDR_20' ) start [2025-04-06 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848435', 'tblTempVendorCDR_20' ) end [2025-04-06 15:27:19] Production.INFO: ProcessCDR(1,14848435,1,1,2) [2025-04-06 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848435', 'tblTempUsageDetail_20' ) start [2025-04-06 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848435', 'tblTempUsageDetail_20' ) end [2025-04-06 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:27:24] Production.INFO: ==6197== Releasing lock... [2025-04-06 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:27:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:28:05 [end_date_ymd] => 2025-04-06 15:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:28:05' and `end` < '2025-04-06 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-04-06 15:28:18] Production.INFO: count ==1728 [2025-04-06 15:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:28:05 - End Time 2025-04-06 15:28:05 [2025-04-06 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848440', 'tblTempUsageDetail_20' ) start [2025-04-06 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848440', 'tblTempUsageDetail_20' ) end [2025-04-06 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848440', 'tblTempVendorCDR_20' ) start [2025-04-06 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848440', 'tblTempVendorCDR_20' ) end [2025-04-06 15:28:19] Production.INFO: ProcessCDR(1,14848440,1,1,2) [2025-04-06 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848440', 'tblTempUsageDetail_20' ) start [2025-04-06 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848440', 'tblTempUsageDetail_20' ) end [2025-04-06 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:28:24] Production.INFO: ==6267== Releasing lock... [2025-04-06 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:28:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:29:06 [end_date_ymd] => 2025-04-06 15:29:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:29:06' and `end` < '2025-04-06 15: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-04-06 15:29:19] Production.INFO: count ==1729 [2025-04-06 15:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:29:06 - End Time 2025-04-06 15:29:06 [2025-04-06 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848445', 'tblTempUsageDetail_20' ) start [2025-04-06 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848445', 'tblTempUsageDetail_20' ) end [2025-04-06 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848445', 'tblTempVendorCDR_20' ) start [2025-04-06 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848445', 'tblTempVendorCDR_20' ) end [2025-04-06 15:29:19] Production.INFO: ProcessCDR(1,14848445,1,1,2) [2025-04-06 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848445', 'tblTempUsageDetail_20' ) start [2025-04-06 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848445', 'tblTempUsageDetail_20' ) end [2025-04-06 15:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:29:24] Production.INFO: ==6340== Releasing lock... [2025-04-06 15:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:29:24] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:30:06 [end_date_ymd] => 2025-04-06 15:30:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:30:06' and `end` < '2025-04-06 15: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-04-06 15:30:19] Production.INFO: count ==1728 [2025-04-06 15:30:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:30:06 - End Time 2025-04-06 15:30:06 [2025-04-06 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848451', 'tblTempUsageDetail_20' ) start [2025-04-06 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848451', 'tblTempUsageDetail_20' ) end [2025-04-06 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848451', 'tblTempVendorCDR_20' ) start [2025-04-06 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848451', 'tblTempVendorCDR_20' ) end [2025-04-06 15:30:20] Production.INFO: ProcessCDR(1,14848451,1,1,2) [2025-04-06 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848451', 'tblTempUsageDetail_20' ) start [2025-04-06 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848451', 'tblTempUsageDetail_20' ) end [2025-04-06 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:30:25] Production.INFO: ==6416== Releasing lock... [2025-04-06 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:30:25] Production.INFO: 41 MB #Memory Used# [2025-04-06 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:31:06 [end_date_ymd] => 2025-04-06 15:31:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:31:06' and `end` < '2025-04-06 15: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-04-06 15:31:19] Production.INFO: count ==1785 [2025-04-06 15:31:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:31:06 - End Time 2025-04-06 15:31:06 [2025-04-06 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848456', 'tblTempUsageDetail_20' ) start [2025-04-06 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848456', 'tblTempUsageDetail_20' ) end [2025-04-06 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848456', 'tblTempVendorCDR_20' ) start [2025-04-06 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848456', 'tblTempVendorCDR_20' ) end [2025-04-06 15:31:20] Production.INFO: ProcessCDR(1,14848456,1,1,2) [2025-04-06 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848456', 'tblTempUsageDetail_20' ) start [2025-04-06 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848456', 'tblTempUsageDetail_20' ) end [2025-04-06 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:31:25] Production.INFO: ==6491== Releasing lock... [2025-04-06 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:31:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:32:05 [end_date_ymd] => 2025-04-06 15:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:32:05' and `end` < '2025-04-06 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-04-06 15:32:18] Production.INFO: count ==1785 [2025-04-06 15:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:32:05 - End Time 2025-04-06 15:32:05 [2025-04-06 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848461', 'tblTempUsageDetail_20' ) start [2025-04-06 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848461', 'tblTempUsageDetail_20' ) end [2025-04-06 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848461', 'tblTempVendorCDR_20' ) start [2025-04-06 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848461', 'tblTempVendorCDR_20' ) end [2025-04-06 15:32:19] Production.INFO: ProcessCDR(1,14848461,1,1,2) [2025-04-06 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848461', 'tblTempUsageDetail_20' ) start [2025-04-06 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848461', 'tblTempUsageDetail_20' ) end [2025-04-06 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:32:24] Production.INFO: ==6576== Releasing lock... [2025-04-06 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:32:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:33:06 [end_date_ymd] => 2025-04-06 15:33:06 [RateCDR] => 1 ) [2025-04-06 15:33: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-04-06 12:33:06' and `end` < '2025-04-06 15:33: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-04-06 15:33:19] Production.INFO: count ==1788 [2025-04-06 15:33:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:33:06 - End Time 2025-04-06 15:33:06 [2025-04-06 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848466', 'tblTempUsageDetail_20' ) start [2025-04-06 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848466', 'tblTempUsageDetail_20' ) end [2025-04-06 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848466', 'tblTempVendorCDR_20' ) start [2025-04-06 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848466', 'tblTempVendorCDR_20' ) end [2025-04-06 15:33:20] Production.INFO: ProcessCDR(1,14848466,1,1,2) [2025-04-06 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848466', 'tblTempUsageDetail_20' ) start [2025-04-06 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848466', 'tblTempUsageDetail_20' ) end [2025-04-06 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:33:25] Production.INFO: ==6695== Releasing lock... [2025-04-06 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:33:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:34:06 [end_date_ymd] => 2025-04-06 15:34:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:34:06' and `end` < '2025-04-06 15: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-04-06 15:34:19] Production.INFO: count ==1787 [2025-04-06 15:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:34:06 - End Time 2025-04-06 15:34:06 [2025-04-06 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848471', 'tblTempUsageDetail_20' ) start [2025-04-06 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848471', 'tblTempUsageDetail_20' ) end [2025-04-06 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848471', 'tblTempVendorCDR_20' ) start [2025-04-06 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848471', 'tblTempVendorCDR_20' ) end [2025-04-06 15:34:19] Production.INFO: ProcessCDR(1,14848471,1,1,2) [2025-04-06 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848471', 'tblTempUsageDetail_20' ) start [2025-04-06 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848471', 'tblTempUsageDetail_20' ) end [2025-04-06 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:34:25] Production.INFO: ==6815== Releasing lock... [2025-04-06 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:34:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:35:05 [end_date_ymd] => 2025-04-06 15:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:35:05' and `end` < '2025-04-06 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-04-06 15:35:19] Production.INFO: count ==1784 [2025-04-06 15:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:35:05 - End Time 2025-04-06 15:35:05 [2025-04-06 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848476', 'tblTempUsageDetail_20' ) start [2025-04-06 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848476', 'tblTempUsageDetail_20' ) end [2025-04-06 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848476', 'tblTempVendorCDR_20' ) start [2025-04-06 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848476', 'tblTempVendorCDR_20' ) end [2025-04-06 15:35:19] Production.INFO: ProcessCDR(1,14848476,1,1,2) [2025-04-06 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848476', 'tblTempUsageDetail_20' ) start [2025-04-06 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848476', 'tblTempUsageDetail_20' ) end [2025-04-06 15:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:35:24] Production.INFO: ==6951== Releasing lock... [2025-04-06 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:35:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:36:05 [end_date_ymd] => 2025-04-06 15:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:36:05' and `end` < '2025-04-06 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-04-06 15:36:18] Production.INFO: count ==1769 [2025-04-06 15:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:36:05 - End Time 2025-04-06 15:36:05 [2025-04-06 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848481', 'tblTempUsageDetail_20' ) start [2025-04-06 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848481', 'tblTempUsageDetail_20' ) end [2025-04-06 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848481', 'tblTempVendorCDR_20' ) start [2025-04-06 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848481', 'tblTempVendorCDR_20' ) end [2025-04-06 15:36:19] Production.INFO: ProcessCDR(1,14848481,1,1,2) [2025-04-06 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848481', 'tblTempUsageDetail_20' ) start [2025-04-06 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848481', 'tblTempUsageDetail_20' ) end [2025-04-06 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:36:24] Production.INFO: ==7073== Releasing lock... [2025-04-06 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:36:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:37:06 [end_date_ymd] => 2025-04-06 15:37:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:37:06' and `end` < '2025-04-06 15: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-04-06 15:37:19] Production.INFO: count ==1772 [2025-04-06 15:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:37:06 - End Time 2025-04-06 15:37:06 [2025-04-06 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848486', 'tblTempUsageDetail_20' ) start [2025-04-06 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848486', 'tblTempUsageDetail_20' ) end [2025-04-06 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848486', 'tblTempVendorCDR_20' ) start [2025-04-06 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848486', 'tblTempVendorCDR_20' ) end [2025-04-06 15:37:19] Production.INFO: ProcessCDR(1,14848486,1,1,2) [2025-04-06 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848486', 'tblTempUsageDetail_20' ) start [2025-04-06 15:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848486', 'tblTempUsageDetail_20' ) end [2025-04-06 15:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:37:24] Production.INFO: ==7201== Releasing lock... [2025-04-06 15:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:37:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:38:05 [end_date_ymd] => 2025-04-06 15:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:38:05' and `end` < '2025-04-06 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-04-06 15:38:18] Production.INFO: count ==1775 [2025-04-06 15:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:38:05 - End Time 2025-04-06 15:38:05 [2025-04-06 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848491', 'tblTempUsageDetail_20' ) start [2025-04-06 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848491', 'tblTempUsageDetail_20' ) end [2025-04-06 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848491', 'tblTempVendorCDR_20' ) start [2025-04-06 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848491', 'tblTempVendorCDR_20' ) end [2025-04-06 15:38:19] Production.INFO: ProcessCDR(1,14848491,1,1,2) [2025-04-06 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848491', 'tblTempUsageDetail_20' ) start [2025-04-06 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848491', 'tblTempUsageDetail_20' ) end [2025-04-06 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:38:24] Production.INFO: ==7319== Releasing lock... [2025-04-06 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:38:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-06 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:39:05 [end_date_ymd] => 2025-04-06 15:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:39:05' and `end` < '2025-04-06 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-04-06 15:39:18] Production.INFO: count ==1776 [2025-04-06 15:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:39:05 - End Time 2025-04-06 15:39:05 [2025-04-06 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848496', 'tblTempUsageDetail_20' ) start [2025-04-06 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848496', 'tblTempUsageDetail_20' ) end [2025-04-06 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848496', 'tblTempVendorCDR_20' ) start [2025-04-06 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848496', 'tblTempVendorCDR_20' ) end [2025-04-06 15:39:19] Production.INFO: ProcessCDR(1,14848496,1,1,2) [2025-04-06 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848496', 'tblTempUsageDetail_20' ) start [2025-04-06 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848496', 'tblTempUsageDetail_20' ) end [2025-04-06 15:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:39:24] Production.INFO: ==7477== Releasing lock... [2025-04-06 15:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:39:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:40:06 [end_date_ymd] => 2025-04-06 15:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:40:06' and `end` < '2025-04-06 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-04-06 15:40:19] Production.INFO: count ==1780 [2025-04-06 15:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:40:06 - End Time 2025-04-06 15:40:06 [2025-04-06 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848502', 'tblTempUsageDetail_20' ) start [2025-04-06 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848502', 'tblTempUsageDetail_20' ) end [2025-04-06 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848502', 'tblTempVendorCDR_20' ) start [2025-04-06 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848502', 'tblTempVendorCDR_20' ) end [2025-04-06 15:40:19] Production.INFO: ProcessCDR(1,14848502,1,1,2) [2025-04-06 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848502', 'tblTempUsageDetail_20' ) start [2025-04-06 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848502', 'tblTempUsageDetail_20' ) end [2025-04-06 15:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:40:25] Production.INFO: ==7600== Releasing lock... [2025-04-06 15:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:40:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:41:05 [end_date_ymd] => 2025-04-06 15:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:41:05' and `end` < '2025-04-06 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-04-06 15:41:18] Production.INFO: count ==1813 [2025-04-06 15:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:41:05 - End Time 2025-04-06 15:41:05 [2025-04-06 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848507', 'tblTempUsageDetail_20' ) start [2025-04-06 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848507', 'tblTempUsageDetail_20' ) end [2025-04-06 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848507', 'tblTempVendorCDR_20' ) start [2025-04-06 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848507', 'tblTempVendorCDR_20' ) end [2025-04-06 15:41:19] Production.INFO: ProcessCDR(1,14848507,1,1,2) [2025-04-06 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848507', 'tblTempUsageDetail_20' ) start [2025-04-06 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848507', 'tblTempUsageDetail_20' ) end [2025-04-06 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:41:24] Production.INFO: ==7722== Releasing lock... [2025-04-06 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:42:05 [end_date_ymd] => 2025-04-06 15:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:42:05' and `end` < '2025-04-06 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-04-06 15:42:18] Production.INFO: count ==1815 [2025-04-06 15:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:42:05 - End Time 2025-04-06 15:42:05 [2025-04-06 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848512', 'tblTempUsageDetail_20' ) start [2025-04-06 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848512', 'tblTempUsageDetail_20' ) end [2025-04-06 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848512', 'tblTempVendorCDR_20' ) start [2025-04-06 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848512', 'tblTempVendorCDR_20' ) end [2025-04-06 15:42:19] Production.INFO: ProcessCDR(1,14848512,1,1,2) [2025-04-06 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848512', 'tblTempUsageDetail_20' ) start [2025-04-06 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848512', 'tblTempUsageDetail_20' ) end [2025-04-06 15:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:42:24] Production.INFO: ==7839== Releasing lock... [2025-04-06 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:42:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:43:05 [end_date_ymd] => 2025-04-06 15:43:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:43:05' and `end` < '2025-04-06 15: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-04-06 15:43:19] Production.INFO: count ==1816 [2025-04-06 15:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:43:05 - End Time 2025-04-06 15:43:05 [2025-04-06 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848517', 'tblTempUsageDetail_20' ) start [2025-04-06 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848517', 'tblTempUsageDetail_20' ) end [2025-04-06 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848517', 'tblTempVendorCDR_20' ) start [2025-04-06 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848517', 'tblTempVendorCDR_20' ) end [2025-04-06 15:43:19] Production.INFO: ProcessCDR(1,14848517,1,1,2) [2025-04-06 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848517', 'tblTempUsageDetail_20' ) start [2025-04-06 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848517', 'tblTempUsageDetail_20' ) end [2025-04-06 15:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:43:25] Production.INFO: ==7935== Releasing lock... [2025-04-06 15:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:43:25] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:44:05 [end_date_ymd] => 2025-04-06 15:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:44:05' and `end` < '2025-04-06 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-04-06 15:44:18] Production.INFO: count ==1818 [2025-04-06 15:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:44:05 - End Time 2025-04-06 15:44:05 [2025-04-06 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848522', 'tblTempUsageDetail_20' ) start [2025-04-06 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848522', 'tblTempUsageDetail_20' ) end [2025-04-06 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848522', 'tblTempVendorCDR_20' ) start [2025-04-06 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848522', 'tblTempVendorCDR_20' ) end [2025-04-06 15:44:18] Production.INFO: ProcessCDR(1,14848522,1,1,2) [2025-04-06 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848522', 'tblTempUsageDetail_20' ) start [2025-04-06 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848522', 'tblTempUsageDetail_20' ) end [2025-04-06 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:44:23] Production.INFO: ==8012== Releasing lock... [2025-04-06 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:44:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:45:06 [end_date_ymd] => 2025-04-06 15:45:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:45:06' and `end` < '2025-04-06 15: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-04-06 15:45:19] Production.INFO: count ==1819 [2025-04-06 15:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:45:06 - End Time 2025-04-06 15:45:06 [2025-04-06 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848527', 'tblTempUsageDetail_20' ) start [2025-04-06 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848527', 'tblTempUsageDetail_20' ) end [2025-04-06 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848527', 'tblTempVendorCDR_20' ) start [2025-04-06 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848527', 'tblTempVendorCDR_20' ) end [2025-04-06 15:45:20] Production.INFO: ProcessCDR(1,14848527,1,1,2) [2025-04-06 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848527', 'tblTempUsageDetail_20' ) start [2025-04-06 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848527', 'tblTempUsageDetail_20' ) end [2025-04-06 15:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:45:25] Production.INFO: ==8085== Releasing lock... [2025-04-06 15:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:45:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:46:05 [end_date_ymd] => 2025-04-06 15:46:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:46:05' and `end` < '2025-04-06 15: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-04-06 15:46:18] Production.INFO: count ==1821 [2025-04-06 15:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:46:05 - End Time 2025-04-06 15:46:05 [2025-04-06 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848532', 'tblTempUsageDetail_20' ) start [2025-04-06 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848532', 'tblTempUsageDetail_20' ) end [2025-04-06 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848532', 'tblTempVendorCDR_20' ) start [2025-04-06 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848532', 'tblTempVendorCDR_20' ) end [2025-04-06 15:46:18] Production.INFO: ProcessCDR(1,14848532,1,1,2) [2025-04-06 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848532', 'tblTempUsageDetail_20' ) start [2025-04-06 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848532', 'tblTempUsageDetail_20' ) end [2025-04-06 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:46:23] Production.INFO: ==8157== Releasing lock... [2025-04-06 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:46:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:47:05 [end_date_ymd] => 2025-04-06 15:47:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:47:05' and `end` < '2025-04-06 15: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-04-06 15:47:18] Production.INFO: count ==1821 [2025-04-06 15:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:47:05 - End Time 2025-04-06 15:47:05 [2025-04-06 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848537', 'tblTempUsageDetail_20' ) start [2025-04-06 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848537', 'tblTempUsageDetail_20' ) end [2025-04-06 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848537', 'tblTempVendorCDR_20' ) start [2025-04-06 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848537', 'tblTempVendorCDR_20' ) end [2025-04-06 15:47:19] Production.INFO: ProcessCDR(1,14848537,1,1,2) [2025-04-06 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848537', 'tblTempUsageDetail_20' ) start [2025-04-06 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848537', 'tblTempUsageDetail_20' ) end [2025-04-06 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:47:24] Production.INFO: ==8230== Releasing lock... [2025-04-06 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:48:05 [end_date_ymd] => 2025-04-06 15:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:48:05' and `end` < '2025-04-06 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-04-06 15:48:18] Production.INFO: count ==1823 [2025-04-06 15:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:48:05 - End Time 2025-04-06 15:48:05 [2025-04-06 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848542', 'tblTempUsageDetail_20' ) start [2025-04-06 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848542', 'tblTempUsageDetail_20' ) end [2025-04-06 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848542', 'tblTempVendorCDR_20' ) start [2025-04-06 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848542', 'tblTempVendorCDR_20' ) end [2025-04-06 15:48:19] Production.INFO: ProcessCDR(1,14848542,1,1,2) [2025-04-06 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848542', 'tblTempUsageDetail_20' ) start [2025-04-06 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848542', 'tblTempUsageDetail_20' ) end [2025-04-06 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:48:25] Production.INFO: ==8301== Releasing lock... [2025-04-06 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:48:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:49:05 [end_date_ymd] => 2025-04-06 15:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:49:05' and `end` < '2025-04-06 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-04-06 15:49:19] Production.INFO: count ==1823 [2025-04-06 15:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:49:05 - End Time 2025-04-06 15:49:05 [2025-04-06 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848547', 'tblTempUsageDetail_20' ) start [2025-04-06 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848547', 'tblTempUsageDetail_20' ) end [2025-04-06 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848547', 'tblTempVendorCDR_20' ) start [2025-04-06 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848547', 'tblTempVendorCDR_20' ) end [2025-04-06 15:49:19] Production.INFO: ProcessCDR(1,14848547,1,1,2) [2025-04-06 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848547', 'tblTempUsageDetail_20' ) start [2025-04-06 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848547', 'tblTempUsageDetail_20' ) end [2025-04-06 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:49:23] Production.INFO: ==8450== Releasing lock... [2025-04-06 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:49:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:50:06 [end_date_ymd] => 2025-04-06 15:50:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:50:06' and `end` < '2025-04-06 15: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-04-06 15:50:19] Production.INFO: count ==1828 [2025-04-06 15:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 12:50:06 - End Time 2025-04-06 15:50:06 [2025-04-06 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848551', 'tblTempUsageDetail_20' ) start [2025-04-06 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848551', 'tblTempUsageDetail_20' ) end [2025-04-06 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848551', 'tblTempVendorCDR_20' ) start [2025-04-06 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848551', 'tblTempVendorCDR_20' ) end [2025-04-06 15:50:20] Production.INFO: ProcessCDR(1,14848551,1,1,2) [2025-04-06 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848551', 'tblTempUsageDetail_20' ) start [2025-04-06 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848551', 'tblTempUsageDetail_20' ) end [2025-04-06 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:50:23] Production.INFO: ==8523== Releasing lock... [2025-04-06 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:51:05 [end_date_ymd] => 2025-04-06 15:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:51:05' and `end` < '2025-04-06 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-04-06 15:51:18] Production.INFO: count ==1854 [2025-04-06 15:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:51:05 - End Time 2025-04-06 15:51:05 [2025-04-06 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848558', 'tblTempUsageDetail_20' ) start [2025-04-06 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848558', 'tblTempUsageDetail_20' ) end [2025-04-06 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848558', 'tblTempVendorCDR_20' ) start [2025-04-06 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848558', 'tblTempVendorCDR_20' ) end [2025-04-06 15:51:19] Production.INFO: ProcessCDR(1,14848558,1,1,2) [2025-04-06 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848558', 'tblTempUsageDetail_20' ) start [2025-04-06 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848558', 'tblTempUsageDetail_20' ) end [2025-04-06 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:51:22] Production.INFO: ==8598== Releasing lock... [2025-04-06 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:51:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:52:06 [end_date_ymd] => 2025-04-06 15:52:06 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:52:06' and `end` < '2025-04-06 15: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-04-06 15:52:19] Production.INFO: count ==1853 [2025-04-06 15:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:52:06 - End Time 2025-04-06 15:52:06 [2025-04-06 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848563', 'tblTempUsageDetail_20' ) start [2025-04-06 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848563', 'tblTempUsageDetail_20' ) end [2025-04-06 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848563', 'tblTempVendorCDR_20' ) start [2025-04-06 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848563', 'tblTempVendorCDR_20' ) end [2025-04-06 15:52:19] Production.INFO: ProcessCDR(1,14848563,1,1,2) [2025-04-06 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848563', 'tblTempUsageDetail_20' ) start [2025-04-06 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848563', 'tblTempUsageDetail_20' ) end [2025-04-06 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:52:23] Production.INFO: ==8671== Releasing lock... [2025-04-06 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:52:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:53:05 [end_date_ymd] => 2025-04-06 15:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:53:05' and `end` < '2025-04-06 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-04-06 15:53:18] Production.INFO: count ==1853 [2025-04-06 15:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:53:05 - End Time 2025-04-06 15:53:05 [2025-04-06 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848568', 'tblTempUsageDetail_20' ) start [2025-04-06 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848568', 'tblTempUsageDetail_20' ) end [2025-04-06 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848568', 'tblTempVendorCDR_20' ) start [2025-04-06 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848568', 'tblTempVendorCDR_20' ) end [2025-04-06 15:53:19] Production.INFO: ProcessCDR(1,14848568,1,1,2) [2025-04-06 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848568', 'tblTempUsageDetail_20' ) start [2025-04-06 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848568', 'tblTempUsageDetail_20' ) end [2025-04-06 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:53:22] Production.INFO: ==8748== Releasing lock... [2025-04-06 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:53:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:54:05 [end_date_ymd] => 2025-04-06 15:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:54:05' and `end` < '2025-04-06 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-04-06 15:54:18] Production.INFO: count ==1853 [2025-04-06 15:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:54:05 - End Time 2025-04-06 15:54:05 [2025-04-06 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848573', 'tblTempUsageDetail_20' ) start [2025-04-06 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848573', 'tblTempUsageDetail_20' ) end [2025-04-06 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848573', 'tblTempVendorCDR_20' ) start [2025-04-06 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848573', 'tblTempVendorCDR_20' ) end [2025-04-06 15:54:19] Production.INFO: ProcessCDR(1,14848573,1,1,2) [2025-04-06 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848573', 'tblTempUsageDetail_20' ) start [2025-04-06 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848573', 'tblTempUsageDetail_20' ) end [2025-04-06 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:54:23] Production.INFO: ==8871== Releasing lock... [2025-04-06 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:54:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:55:05 [end_date_ymd] => 2025-04-06 15:55:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:55:05' and `end` < '2025-04-06 15: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-04-06 15:55:18] Production.INFO: count ==1852 [2025-04-06 15:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:55:05 - End Time 2025-04-06 15:55:05 [2025-04-06 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848578', 'tblTempUsageDetail_20' ) start [2025-04-06 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848578', 'tblTempUsageDetail_20' ) end [2025-04-06 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848578', 'tblTempVendorCDR_20' ) start [2025-04-06 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848578', 'tblTempVendorCDR_20' ) end [2025-04-06 15:55:19] Production.INFO: ProcessCDR(1,14848578,1,1,2) [2025-04-06 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848578', 'tblTempUsageDetail_20' ) start [2025-04-06 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848578', 'tblTempUsageDetail_20' ) end [2025-04-06 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:55:22] Production.INFO: ==8943== Releasing lock... [2025-04-06 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-06 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:56:05 [end_date_ymd] => 2025-04-06 15:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:56:05' and `end` < '2025-04-06 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-04-06 15:56:18] Production.INFO: count ==1844 [2025-04-06 15:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:56:05 - End Time 2025-04-06 15:56:05 [2025-04-06 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848583', 'tblTempUsageDetail_20' ) start [2025-04-06 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848583', 'tblTempUsageDetail_20' ) end [2025-04-06 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848583', 'tblTempVendorCDR_20' ) start [2025-04-06 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848583', 'tblTempVendorCDR_20' ) end [2025-04-06 15:56:19] Production.INFO: ProcessCDR(1,14848583,1,1,2) [2025-04-06 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848583', 'tblTempUsageDetail_20' ) start [2025-04-06 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848583', 'tblTempUsageDetail_20' ) end [2025-04-06 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:56:22] Production.INFO: ==9016== Releasing lock... [2025-04-06 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:56:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:57:05 [end_date_ymd] => 2025-04-06 15:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:57:05' and `end` < '2025-04-06 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-04-06 15:57:18] Production.INFO: count ==1840 [2025-04-06 15:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 12:57:05 - End Time 2025-04-06 15:57:05 [2025-04-06 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848588', 'tblTempUsageDetail_20' ) start [2025-04-06 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848588', 'tblTempUsageDetail_20' ) end [2025-04-06 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848588', 'tblTempVendorCDR_20' ) start [2025-04-06 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848588', 'tblTempVendorCDR_20' ) end [2025-04-06 15:57:18] Production.INFO: ProcessCDR(1,14848588,1,1,2) [2025-04-06 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848588', 'tblTempUsageDetail_20' ) start [2025-04-06 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848588', 'tblTempUsageDetail_20' ) end [2025-04-06 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:57:22] Production.INFO: ==9088== Releasing lock... [2025-04-06 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:57:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:58:06 [end_date_ymd] => 2025-04-06 15:58:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 12:58:06' and `end` < '2025-04-06 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-04-06 15:58:18] Production.INFO: count ==1838 [2025-04-06 15:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:58:06 - End Time 2025-04-06 15:58:06 [2025-04-06 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848593', 'tblTempUsageDetail_20' ) start [2025-04-06 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848593', 'tblTempUsageDetail_20' ) end [2025-04-06 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848593', 'tblTempVendorCDR_20' ) start [2025-04-06 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848593', 'tblTempVendorCDR_20' ) end [2025-04-06 15:58:19] Production.INFO: ProcessCDR(1,14848593,1,1,2) [2025-04-06 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848593', 'tblTempUsageDetail_20' ) start [2025-04-06 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848593', 'tblTempUsageDetail_20' ) end [2025-04-06 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:58:23] Production.INFO: ==9161== Releasing lock... [2025-04-06 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:58:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 12:59:05 [end_date_ymd] => 2025-04-06 15:59:05 [RateCDR] => 1 ) [2025-04-06 15: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-04-06 12:59:05' and `end` < '2025-04-06 15: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-04-06 15:59:19] Production.INFO: count ==1830 [2025-04-06 15:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 12:59:05 - End Time 2025-04-06 15:59:05 [2025-04-06 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848598', 'tblTempUsageDetail_20' ) start [2025-04-06 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848598', 'tblTempUsageDetail_20' ) end [2025-04-06 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848598', 'tblTempVendorCDR_20' ) start [2025-04-06 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848598', 'tblTempVendorCDR_20' ) end [2025-04-06 15:59:19] Production.INFO: ProcessCDR(1,14848598,1,1,2) [2025-04-06 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848598', 'tblTempUsageDetail_20' ) start [2025-04-06 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848598', 'tblTempUsageDetail_20' ) end [2025-04-06 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 15:59:23] Production.INFO: ==9231== Releasing lock... [2025-04-06 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 15:59:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:00:06 [end_date_ymd] => 2025-04-06 16:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:00:06' and `end` < '2025-04-06 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-04-06 16:00:19] Production.INFO: count ==1834 [2025-04-06 16:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 13:00:06 - End Time 2025-04-06 16:00:06 [2025-04-06 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848603', 'tblTempUsageDetail_20' ) start [2025-04-06 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848603', 'tblTempUsageDetail_20' ) end [2025-04-06 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848603', 'tblTempVendorCDR_20' ) start [2025-04-06 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848603', 'tblTempVendorCDR_20' ) end [2025-04-06 16:00:20] Production.INFO: ProcessCDR(1,14848603,1,1,2) [2025-04-06 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848603', 'tblTempUsageDetail_20' ) start [2025-04-06 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848603', 'tblTempUsageDetail_20' ) end [2025-04-06 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:00:23] Production.INFO: ==9306== Releasing lock... [2025-04-06 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:00:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:01:05 [end_date_ymd] => 2025-04-06 16:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:01:05' and `end` < '2025-04-06 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-04-06 16:01:18] Production.INFO: count ==1854 [2025-04-06 16:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:01:05 - End Time 2025-04-06 16:01:05 [2025-04-06 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848609', 'tblTempUsageDetail_20' ) start [2025-04-06 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848609', 'tblTempUsageDetail_20' ) end [2025-04-06 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848609', 'tblTempVendorCDR_20' ) start [2025-04-06 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848609', 'tblTempVendorCDR_20' ) end [2025-04-06 16:01:19] Production.INFO: ProcessCDR(1,14848609,1,1,2) [2025-04-06 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848609', 'tblTempUsageDetail_20' ) start [2025-04-06 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848609', 'tblTempUsageDetail_20' ) end [2025-04-06 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:01:23] Production.INFO: ==9392== Releasing lock... [2025-04-06 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:01:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:02:06 [end_date_ymd] => 2025-04-06 16:02:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:02:06' and `end` < '2025-04-06 16: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-04-06 16:02:19] Production.INFO: count ==1853 [2025-04-06 16:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:02:06 - End Time 2025-04-06 16:02:06 [2025-04-06 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848614', 'tblTempUsageDetail_20' ) start [2025-04-06 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848614', 'tblTempUsageDetail_20' ) end [2025-04-06 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848614', 'tblTempVendorCDR_20' ) start [2025-04-06 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848614', 'tblTempVendorCDR_20' ) end [2025-04-06 16:02:19] Production.INFO: ProcessCDR(1,14848614,1,1,2) [2025-04-06 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848614', 'tblTempUsageDetail_20' ) start [2025-04-06 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848614', 'tblTempUsageDetail_20' ) end [2025-04-06 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:02:23] Production.INFO: ==9461== Releasing lock... [2025-04-06 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:02:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:03:05 [end_date_ymd] => 2025-04-06 16:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:03:05' and `end` < '2025-04-06 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-04-06 16:03:18] Production.INFO: count ==1853 [2025-04-06 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:03:05 - End Time 2025-04-06 16:03:05 [2025-04-06 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848619', 'tblTempUsageDetail_20' ) start [2025-04-06 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848619', 'tblTempUsageDetail_20' ) end [2025-04-06 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848619', 'tblTempVendorCDR_20' ) start [2025-04-06 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848619', 'tblTempVendorCDR_20' ) end [2025-04-06 16:03:18] Production.INFO: ProcessCDR(1,14848619,1,1,2) [2025-04-06 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848619', 'tblTempUsageDetail_20' ) start [2025-04-06 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848619', 'tblTempUsageDetail_20' ) end [2025-04-06 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:03:22] Production.INFO: ==9530== Releasing lock... [2025-04-06 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:03:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:04:05 [end_date_ymd] => 2025-04-06 16:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:04:05' and `end` < '2025-04-06 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-04-06 16:04:18] Production.INFO: count ==1859 [2025-04-06 16:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:04:05 - End Time 2025-04-06 16:04:05 [2025-04-06 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848624', 'tblTempUsageDetail_20' ) start [2025-04-06 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848624', 'tblTempUsageDetail_20' ) end [2025-04-06 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848624', 'tblTempVendorCDR_20' ) start [2025-04-06 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848624', 'tblTempVendorCDR_20' ) end [2025-04-06 16:04:19] Production.INFO: ProcessCDR(1,14848624,1,1,2) [2025-04-06 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848624', 'tblTempUsageDetail_20' ) start [2025-04-06 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848624', 'tblTempUsageDetail_20' ) end [2025-04-06 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:04:22] Production.INFO: ==9603== Releasing lock... [2025-04-06 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:04:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:05:06 [end_date_ymd] => 2025-04-06 16:05:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:05:06' and `end` < '2025-04-06 16: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-04-06 16:05:19] Production.INFO: count ==1852 [2025-04-06 16:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:05:06 - End Time 2025-04-06 16:05:06 [2025-04-06 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848629', 'tblTempUsageDetail_20' ) start [2025-04-06 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848629', 'tblTempUsageDetail_20' ) end [2025-04-06 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848629', 'tblTempVendorCDR_20' ) start [2025-04-06 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848629', 'tblTempVendorCDR_20' ) end [2025-04-06 16:05:20] Production.INFO: ProcessCDR(1,14848629,1,1,2) [2025-04-06 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848629', 'tblTempUsageDetail_20' ) start [2025-04-06 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848629', 'tblTempUsageDetail_20' ) end [2025-04-06 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:05:23] Production.INFO: ==9675== Releasing lock... [2025-04-06 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:05:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:06:05 [end_date_ymd] => 2025-04-06 16:06:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:06:05' and `end` < '2025-04-06 16: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-04-06 16:06:18] Production.INFO: count ==1848 [2025-04-06 16:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:06:05 - End Time 2025-04-06 16:06:05 [2025-04-06 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848634', 'tblTempUsageDetail_20' ) start [2025-04-06 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848634', 'tblTempUsageDetail_20' ) end [2025-04-06 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848634', 'tblTempVendorCDR_20' ) start [2025-04-06 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848634', 'tblTempVendorCDR_20' ) end [2025-04-06 16:06:19] Production.INFO: ProcessCDR(1,14848634,1,1,2) [2025-04-06 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848634', 'tblTempUsageDetail_20' ) start [2025-04-06 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848634', 'tblTempUsageDetail_20' ) end [2025-04-06 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:06:22] Production.INFO: ==9745== Releasing lock... [2025-04-06 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:06:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:07:06 [end_date_ymd] => 2025-04-06 16:07:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:07:06' and `end` < '2025-04-06 16:07: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-04-06 16:07:19] Production.INFO: count ==1838 [2025-04-06 16:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:07:06 - End Time 2025-04-06 16:07:06 [2025-04-06 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848639', 'tblTempUsageDetail_20' ) start [2025-04-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848639', 'tblTempUsageDetail_20' ) end [2025-04-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848639', 'tblTempVendorCDR_20' ) start [2025-04-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848639', 'tblTempVendorCDR_20' ) end [2025-04-06 16:07:20] Production.INFO: ProcessCDR(1,14848639,1,1,2) [2025-04-06 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848639', 'tblTempUsageDetail_20' ) start [2025-04-06 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848639', 'tblTempUsageDetail_20' ) end [2025-04-06 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:07:23] Production.INFO: ==9815== Releasing lock... [2025-04-06 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:08:05 [end_date_ymd] => 2025-04-06 16:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:08:05' and `end` < '2025-04-06 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-04-06 16:08:18] Production.INFO: count ==1830 [2025-04-06 16:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:08:05 - End Time 2025-04-06 16:08:05 [2025-04-06 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848644', 'tblTempUsageDetail_20' ) start [2025-04-06 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848644', 'tblTempUsageDetail_20' ) end [2025-04-06 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848644', 'tblTempVendorCDR_20' ) start [2025-04-06 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848644', 'tblTempVendorCDR_20' ) end [2025-04-06 16:08:19] Production.INFO: ProcessCDR(1,14848644,1,1,2) [2025-04-06 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848644', 'tblTempUsageDetail_20' ) start [2025-04-06 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848644', 'tblTempUsageDetail_20' ) end [2025-04-06 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:08:23] Production.INFO: ==9888== Releasing lock... [2025-04-06 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:08:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:09:05 [end_date_ymd] => 2025-04-06 16:09:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:09:05' and `end` < '2025-04-06 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-04-06 16:09:18] Production.INFO: count ==1822 [2025-04-06 16:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:09:05 - End Time 2025-04-06 16:09:05 [2025-04-06 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848649', 'tblTempUsageDetail_20' ) start [2025-04-06 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848649', 'tblTempUsageDetail_20' ) end [2025-04-06 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848649', 'tblTempVendorCDR_20' ) start [2025-04-06 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848649', 'tblTempVendorCDR_20' ) end [2025-04-06 16:09:19] Production.INFO: ProcessCDR(1,14848649,1,1,2) [2025-04-06 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848649', 'tblTempUsageDetail_20' ) start [2025-04-06 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848649', 'tblTempUsageDetail_20' ) end [2025-04-06 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:09:22] Production.INFO: ==9960== Releasing lock... [2025-04-06 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:09:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:10:05 [end_date_ymd] => 2025-04-06 16:10:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:10:05' and `end` < '2025-04-06 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-04-06 16:10:18] Production.INFO: count ==1819 [2025-04-06 16:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:10:05 - End Time 2025-04-06 16:10:05 [2025-04-06 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848654', 'tblTempUsageDetail_20' ) start [2025-04-06 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848654', 'tblTempUsageDetail_20' ) end [2025-04-06 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848654', 'tblTempVendorCDR_20' ) start [2025-04-06 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848654', 'tblTempVendorCDR_20' ) end [2025-04-06 16:10:19] Production.INFO: ProcessCDR(1,14848654,1,1,2) [2025-04-06 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848654', 'tblTempUsageDetail_20' ) start [2025-04-06 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848654', 'tblTempUsageDetail_20' ) end [2025-04-06 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:10:24] Production.INFO: ==10071== Releasing lock... [2025-04-06 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:10:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-06 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:11:05 [end_date_ymd] => 2025-04-06 16:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:11:05' and `end` < '2025-04-06 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-04-06 16:11:19] Production.INFO: count ==1839 [2025-04-06 16:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:11:05 - End Time 2025-04-06 16:11:05 [2025-04-06 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848660', 'tblTempUsageDetail_20' ) start [2025-04-06 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848660', 'tblTempUsageDetail_20' ) end [2025-04-06 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848660', 'tblTempVendorCDR_20' ) start [2025-04-06 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848660', 'tblTempVendorCDR_20' ) end [2025-04-06 16:11:19] Production.INFO: ProcessCDR(1,14848660,1,1,2) [2025-04-06 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848660', 'tblTempUsageDetail_20' ) start [2025-04-06 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848660', 'tblTempUsageDetail_20' ) end [2025-04-06 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:11:23] Production.INFO: ==10143== Releasing lock... [2025-04-06 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:11:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:12:05 [end_date_ymd] => 2025-04-06 16:12:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:12:05' and `end` < '2025-04-06 16: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-04-06 16:12:18] Production.INFO: count ==1839 [2025-04-06 16:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:12:05 - End Time 2025-04-06 16:12:05 [2025-04-06 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848665', 'tblTempUsageDetail_20' ) start [2025-04-06 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848665', 'tblTempUsageDetail_20' ) end [2025-04-06 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848665', 'tblTempVendorCDR_20' ) start [2025-04-06 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848665', 'tblTempVendorCDR_20' ) end [2025-04-06 16:12:19] Production.INFO: ProcessCDR(1,14848665,1,1,2) [2025-04-06 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848665', 'tblTempUsageDetail_20' ) start [2025-04-06 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848665', 'tblTempUsageDetail_20' ) end [2025-04-06 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:12:24] Production.INFO: ==10214== Releasing lock... [2025-04-06 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:12:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:13:05 [end_date_ymd] => 2025-04-06 16:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:13:05' and `end` < '2025-04-06 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-04-06 16:13:19] Production.INFO: count ==1840 [2025-04-06 16:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:13:05 - End Time 2025-04-06 16:13:05 [2025-04-06 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848670', 'tblTempUsageDetail_20' ) start [2025-04-06 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848670', 'tblTempUsageDetail_20' ) end [2025-04-06 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848670', 'tblTempVendorCDR_20' ) start [2025-04-06 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848670', 'tblTempVendorCDR_20' ) end [2025-04-06 16:13:19] Production.INFO: ProcessCDR(1,14848670,1,1,2) [2025-04-06 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848670', 'tblTempUsageDetail_20' ) start [2025-04-06 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848670', 'tblTempUsageDetail_20' ) end [2025-04-06 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:13:24] Production.INFO: ==10284== Releasing lock... [2025-04-06 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:13:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:14:05 [end_date_ymd] => 2025-04-06 16:14:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:14:05' and `end` < '2025-04-06 16: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-04-06 16:14:18] Production.INFO: count ==1844 [2025-04-06 16:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:14:05 - End Time 2025-04-06 16:14:05 [2025-04-06 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848675', 'tblTempUsageDetail_20' ) start [2025-04-06 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848675', 'tblTempUsageDetail_20' ) end [2025-04-06 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848675', 'tblTempVendorCDR_20' ) start [2025-04-06 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848675', 'tblTempVendorCDR_20' ) end [2025-04-06 16:14:19] Production.INFO: ProcessCDR(1,14848675,1,1,2) [2025-04-06 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848675', 'tblTempUsageDetail_20' ) start [2025-04-06 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848675', 'tblTempUsageDetail_20' ) end [2025-04-06 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:14:24] Production.INFO: ==10360== Releasing lock... [2025-04-06 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:14:24] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:15:05 [end_date_ymd] => 2025-04-06 16:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:15:05' and `end` < '2025-04-06 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-04-06 16:15:18] Production.INFO: count ==1844 [2025-04-06 16:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:15:05 - End Time 2025-04-06 16:15:05 [2025-04-06 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848680', 'tblTempUsageDetail_20' ) start [2025-04-06 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848680', 'tblTempUsageDetail_20' ) end [2025-04-06 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848680', 'tblTempVendorCDR_20' ) start [2025-04-06 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848680', 'tblTempVendorCDR_20' ) end [2025-04-06 16:15:19] Production.INFO: ProcessCDR(1,14848680,1,1,2) [2025-04-06 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848680', 'tblTempUsageDetail_20' ) start [2025-04-06 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848680', 'tblTempUsageDetail_20' ) end [2025-04-06 16:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:15:22] Production.INFO: ==10431== Releasing lock... [2025-04-06 16:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:15:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:16:05 [end_date_ymd] => 2025-04-06 16:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:16:05' and `end` < '2025-04-06 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-04-06 16:16:18] Production.INFO: count ==1846 [2025-04-06 16:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:16:05 - End Time 2025-04-06 16:16:05 [2025-04-06 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848685', 'tblTempUsageDetail_20' ) start [2025-04-06 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848685', 'tblTempUsageDetail_20' ) end [2025-04-06 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848685', 'tblTempVendorCDR_20' ) start [2025-04-06 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848685', 'tblTempVendorCDR_20' ) end [2025-04-06 16:16:19] Production.INFO: ProcessCDR(1,14848685,1,1,2) [2025-04-06 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848685', 'tblTempUsageDetail_20' ) start [2025-04-06 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848685', 'tblTempUsageDetail_20' ) end [2025-04-06 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:16:24] Production.INFO: ==10502== Releasing lock... [2025-04-06 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:16:24] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:17:06 [end_date_ymd] => 2025-04-06 16:17:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:17:06' and `end` < '2025-04-06 16: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-04-06 16:17:19] Production.INFO: count ==1845 [2025-04-06 16:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:17:06 - End Time 2025-04-06 16:17:06 [2025-04-06 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848690', 'tblTempUsageDetail_20' ) start [2025-04-06 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848690', 'tblTempUsageDetail_20' ) end [2025-04-06 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848690', 'tblTempVendorCDR_20' ) start [2025-04-06 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848690', 'tblTempVendorCDR_20' ) end [2025-04-06 16:17:20] Production.INFO: ProcessCDR(1,14848690,1,1,2) [2025-04-06 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848690', 'tblTempUsageDetail_20' ) start [2025-04-06 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848690', 'tblTempUsageDetail_20' ) end [2025-04-06 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:17:23] Production.INFO: ==10573== Releasing lock... [2025-04-06 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:17:23] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:18:05 [end_date_ymd] => 2025-04-06 16:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:18:05' and `end` < '2025-04-06 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-04-06 16:18:18] Production.INFO: count ==1855 [2025-04-06 16:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:18:05 - End Time 2025-04-06 16:18:05 [2025-04-06 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848695', 'tblTempUsageDetail_20' ) start [2025-04-06 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848695', 'tblTempUsageDetail_20' ) end [2025-04-06 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848695', 'tblTempVendorCDR_20' ) start [2025-04-06 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848695', 'tblTempVendorCDR_20' ) end [2025-04-06 16:18:19] Production.INFO: ProcessCDR(1,14848695,1,1,2) [2025-04-06 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848695', 'tblTempUsageDetail_20' ) start [2025-04-06 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848695', 'tblTempUsageDetail_20' ) end [2025-04-06 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:18:24] Production.INFO: ==10642== Releasing lock... [2025-04-06 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:18:24] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:19:06 [end_date_ymd] => 2025-04-06 16:19:06 [RateCDR] => 1 ) [2025-04-06 16:19: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-04-06 13:19:06' and `end` < '2025-04-06 16:19: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-04-06 16:19:19] Production.INFO: count ==1852 [2025-04-06 16:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:19:06 - End Time 2025-04-06 16:19:06 [2025-04-06 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848700', 'tblTempUsageDetail_20' ) start [2025-04-06 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848700', 'tblTempUsageDetail_20' ) end [2025-04-06 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848700', 'tblTempVendorCDR_20' ) start [2025-04-06 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848700', 'tblTempVendorCDR_20' ) end [2025-04-06 16:19:19] Production.INFO: ProcessCDR(1,14848700,1,1,2) [2025-04-06 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848700', 'tblTempUsageDetail_20' ) start [2025-04-06 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848700', 'tblTempUsageDetail_20' ) end [2025-04-06 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:19:23] Production.INFO: ==10716== Releasing lock... [2025-04-06 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:19:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-06 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:20:07 [end_date_ymd] => 2025-04-06 16:20:07 [RateCDR] => 1 ) [2025-04-06 16:20: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-04-06 13:20:07' and `end` < '2025-04-06 16:20: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-04-06 16:20:20] Production.INFO: count ==1851 [2025-04-06 16:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 13:20:07 - End Time 2025-04-06 16:20:07 [2025-04-06 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848706', 'tblTempUsageDetail_20' ) start [2025-04-06 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848706', 'tblTempUsageDetail_20' ) end [2025-04-06 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848706', 'tblTempVendorCDR_20' ) start [2025-04-06 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848706', 'tblTempVendorCDR_20' ) end [2025-04-06 16:20:20] Production.INFO: ProcessCDR(1,14848706,1,1,2) [2025-04-06 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848706', 'tblTempUsageDetail_20' ) start [2025-04-06 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848706', 'tblTempUsageDetail_20' ) end [2025-04-06 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:20:24] Production.INFO: ==10788== Releasing lock... [2025-04-06 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:20:24] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:21:05 [end_date_ymd] => 2025-04-06 16:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:21:05' and `end` < '2025-04-06 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-04-06 16:21:18] Production.INFO: count ==1868 [2025-04-06 16:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:21:05 - End Time 2025-04-06 16:21:05 [2025-04-06 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848711', 'tblTempUsageDetail_20' ) start [2025-04-06 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848711', 'tblTempUsageDetail_20' ) end [2025-04-06 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848711', 'tblTempVendorCDR_20' ) start [2025-04-06 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848711', 'tblTempVendorCDR_20' ) end [2025-04-06 16:21:19] Production.INFO: ProcessCDR(1,14848711,1,1,2) [2025-04-06 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848711', 'tblTempUsageDetail_20' ) start [2025-04-06 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848711', 'tblTempUsageDetail_20' ) end [2025-04-06 16:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:21:22] Production.INFO: ==10861== Releasing lock... [2025-04-06 16:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:21:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:22:06 [end_date_ymd] => 2025-04-06 16:22:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:22:06' and `end` < '2025-04-06 16: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-04-06 16:22:19] Production.INFO: count ==1849 [2025-04-06 16:22:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:22:06 - End Time 2025-04-06 16:22:06 [2025-04-06 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848716', 'tblTempUsageDetail_20' ) start [2025-04-06 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848716', 'tblTempUsageDetail_20' ) end [2025-04-06 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848716', 'tblTempVendorCDR_20' ) start [2025-04-06 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848716', 'tblTempVendorCDR_20' ) end [2025-04-06 16:22:19] Production.INFO: ProcessCDR(1,14848716,1,1,2) [2025-04-06 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848716', 'tblTempUsageDetail_20' ) start [2025-04-06 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848716', 'tblTempUsageDetail_20' ) end [2025-04-06 16:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:22:24] Production.INFO: ==10933== Releasing lock... [2025-04-06 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:22:24] Production.INFO: 42 MB #Memory Used# [2025-04-06 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:23:05 [end_date_ymd] => 2025-04-06 16:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:23:05' and `end` < '2025-04-06 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-04-06 16:23:18] Production.INFO: count ==1772 [2025-04-06 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:23:05 - End Time 2025-04-06 16:23:05 [2025-04-06 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848721', 'tblTempUsageDetail_20' ) start [2025-04-06 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848721', 'tblTempUsageDetail_20' ) end [2025-04-06 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848721', 'tblTempVendorCDR_20' ) start [2025-04-06 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848721', 'tblTempVendorCDR_20' ) end [2025-04-06 16:23:19] Production.INFO: ProcessCDR(1,14848721,1,1,2) [2025-04-06 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848721', 'tblTempUsageDetail_20' ) start [2025-04-06 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848721', 'tblTempUsageDetail_20' ) end [2025-04-06 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:23:22] Production.INFO: ==11009== Releasing lock... [2025-04-06 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:24:06 [end_date_ymd] => 2025-04-06 16:24:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:24:06' and `end` < '2025-04-06 16: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-04-06 16:24:19] Production.INFO: count ==1686 [2025-04-06 16:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:24:06 - End Time 2025-04-06 16:24:06 [2025-04-06 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848726', 'tblTempUsageDetail_20' ) start [2025-04-06 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848726', 'tblTempUsageDetail_20' ) end [2025-04-06 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848726', 'tblTempVendorCDR_20' ) start [2025-04-06 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848726', 'tblTempVendorCDR_20' ) end [2025-04-06 16:24:19] Production.INFO: ProcessCDR(1,14848726,1,1,2) [2025-04-06 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848726', 'tblTempUsageDetail_20' ) start [2025-04-06 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848726', 'tblTempUsageDetail_20' ) end [2025-04-06 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:24:23] Production.INFO: ==11080== Releasing lock... [2025-04-06 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:24:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-06 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:25:05 [end_date_ymd] => 2025-04-06 16:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:25:05' and `end` < '2025-04-06 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-04-06 16:25:18] Production.INFO: count ==1596 [2025-04-06 16:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:25:05 - End Time 2025-04-06 16:25:05 [2025-04-06 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848731', 'tblTempUsageDetail_20' ) start [2025-04-06 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848731', 'tblTempUsageDetail_20' ) end [2025-04-06 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848731', 'tblTempVendorCDR_20' ) start [2025-04-06 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848731', 'tblTempVendorCDR_20' ) end [2025-04-06 16:25:19] Production.INFO: ProcessCDR(1,14848731,1,1,2) [2025-04-06 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848731', 'tblTempUsageDetail_20' ) start [2025-04-06 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848731', 'tblTempUsageDetail_20' ) end [2025-04-06 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:25:22] Production.INFO: ==11191== Releasing lock... [2025-04-06 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:25:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:26:05 [end_date_ymd] => 2025-04-06 16:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:26:05' and `end` < '2025-04-06 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-04-06 16:26:18] Production.INFO: count ==1534 [2025-04-06 16:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:26:05 - End Time 2025-04-06 16:26:05 [2025-04-06 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848736', 'tblTempUsageDetail_20' ) start [2025-04-06 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848736', 'tblTempUsageDetail_20' ) end [2025-04-06 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848736', 'tblTempVendorCDR_20' ) start [2025-04-06 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848736', 'tblTempVendorCDR_20' ) end [2025-04-06 16:26:19] Production.INFO: ProcessCDR(1,14848736,1,1,2) [2025-04-06 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848736', 'tblTempUsageDetail_20' ) start [2025-04-06 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848736', 'tblTempUsageDetail_20' ) end [2025-04-06 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:26:22] Production.INFO: ==11275== Releasing lock... [2025-04-06 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:26:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-06 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:27:05 [end_date_ymd] => 2025-04-06 16:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:27:05' and `end` < '2025-04-06 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-04-06 16:27:18] Production.INFO: count ==1474 [2025-04-06 16:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:27:05 - End Time 2025-04-06 16:27:05 [2025-04-06 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848741', 'tblTempUsageDetail_20' ) start [2025-04-06 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848741', 'tblTempUsageDetail_20' ) end [2025-04-06 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848741', 'tblTempVendorCDR_20' ) start [2025-04-06 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848741', 'tblTempVendorCDR_20' ) end [2025-04-06 16:27:19] Production.INFO: ProcessCDR(1,14848741,1,1,2) [2025-04-06 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848741', 'tblTempUsageDetail_20' ) start [2025-04-06 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848741', 'tblTempUsageDetail_20' ) end [2025-04-06 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:27:24] Production.INFO: ==11344== Releasing lock... [2025-04-06 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:27:24] Production.INFO: 39 MB #Memory Used# [2025-04-06 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:28:06 [end_date_ymd] => 2025-04-06 16:28:06 [RateCDR] => 1 ) [2025-04-06 16:28: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-04-06 13:28:06' and `end` < '2025-04-06 16:28: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-04-06 16:28:19] Production.INFO: count ==1431 [2025-04-06 16:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:28:06 - End Time 2025-04-06 16:28:06 [2025-04-06 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848746', 'tblTempUsageDetail_20' ) start [2025-04-06 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848746', 'tblTempUsageDetail_20' ) end [2025-04-06 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848746', 'tblTempVendorCDR_20' ) start [2025-04-06 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848746', 'tblTempVendorCDR_20' ) end [2025-04-06 16:28:19] Production.INFO: ProcessCDR(1,14848746,1,1,2) [2025-04-06 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848746', 'tblTempUsageDetail_20' ) start [2025-04-06 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848746', 'tblTempUsageDetail_20' ) end [2025-04-06 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:28:22] Production.INFO: ==11416== Releasing lock... [2025-04-06 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:29:05 [end_date_ymd] => 2025-04-06 16:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:29:05' and `end` < '2025-04-06 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-04-06 16:29:18] Production.INFO: count ==1438 [2025-04-06 16:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:29:05 - End Time 2025-04-06 16:29:05 [2025-04-06 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848751', 'tblTempUsageDetail_20' ) start [2025-04-06 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848751', 'tblTempUsageDetail_20' ) end [2025-04-06 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848751', 'tblTempVendorCDR_20' ) start [2025-04-06 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848751', 'tblTempVendorCDR_20' ) end [2025-04-06 16:29:18] Production.INFO: ProcessCDR(1,14848751,1,1,2) [2025-04-06 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848751', 'tblTempUsageDetail_20' ) start [2025-04-06 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848751', 'tblTempUsageDetail_20' ) end [2025-04-06 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:29:24] Production.INFO: ==11487== Releasing lock... [2025-04-06 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:30:06 [end_date_ymd] => 2025-04-06 16:30:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:30:06' and `end` < '2025-04-06 16: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-04-06 16:30:19] Production.INFO: count ==1417 [2025-04-06 16:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:30:06 - End Time 2025-04-06 16:30:06 [2025-04-06 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848757', 'tblTempUsageDetail_20' ) start [2025-04-06 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848757', 'tblTempUsageDetail_20' ) end [2025-04-06 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848757', 'tblTempVendorCDR_20' ) start [2025-04-06 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848757', 'tblTempVendorCDR_20' ) end [2025-04-06 16:30:19] Production.INFO: ProcessCDR(1,14848757,1,1,2) [2025-04-06 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848757', 'tblTempUsageDetail_20' ) start [2025-04-06 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848757', 'tblTempUsageDetail_20' ) end [2025-04-06 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:30:23] Production.INFO: ==11564== Releasing lock... [2025-04-06 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:30:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:31:05 [end_date_ymd] => 2025-04-06 16:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:31:05' and `end` < '2025-04-06 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-04-06 16:31:18] Production.INFO: count ==1316 [2025-04-06 16:31:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:31:05 - End Time 2025-04-06 16:31:05 [2025-04-06 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848762', 'tblTempUsageDetail_20' ) start [2025-04-06 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848762', 'tblTempUsageDetail_20' ) end [2025-04-06 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848762', 'tblTempVendorCDR_20' ) start [2025-04-06 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848762', 'tblTempVendorCDR_20' ) end [2025-04-06 16:31:18] Production.INFO: ProcessCDR(1,14848762,1,1,2) [2025-04-06 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848762', 'tblTempUsageDetail_20' ) start [2025-04-06 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848762', 'tblTempUsageDetail_20' ) end [2025-04-06 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:31:22] Production.INFO: ==11639== Releasing lock... [2025-04-06 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:32:05 [end_date_ymd] => 2025-04-06 16:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:32:05' and `end` < '2025-04-06 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-04-06 16:32:18] Production.INFO: count ==1234 [2025-04-06 16:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:32:05 - End Time 2025-04-06 16:32:05 [2025-04-06 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848767', 'tblTempUsageDetail_20' ) start [2025-04-06 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848767', 'tblTempUsageDetail_20' ) end [2025-04-06 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848767', 'tblTempVendorCDR_20' ) start [2025-04-06 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848767', 'tblTempVendorCDR_20' ) end [2025-04-06 16:32:18] Production.INFO: ProcessCDR(1,14848767,1,1,2) [2025-04-06 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848767', 'tblTempUsageDetail_20' ) start [2025-04-06 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848767', 'tblTempUsageDetail_20' ) end [2025-04-06 16:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:32:21] Production.INFO: ==11711== Releasing lock... [2025-04-06 16:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:33:06 [end_date_ymd] => 2025-04-06 16:33:06 [RateCDR] => 1 ) [2025-04-06 16:33: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-04-06 13:33:06' and `end` < '2025-04-06 16:33: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-04-06 16:33:19] Production.INFO: count ==1208 [2025-04-06 16:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:33:06 - End Time 2025-04-06 16:33:06 [2025-04-06 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848772', 'tblTempUsageDetail_20' ) start [2025-04-06 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848772', 'tblTempUsageDetail_20' ) end [2025-04-06 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848772', 'tblTempVendorCDR_20' ) start [2025-04-06 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848772', 'tblTempVendorCDR_20' ) end [2025-04-06 16:33:19] Production.INFO: ProcessCDR(1,14848772,1,1,2) [2025-04-06 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848772', 'tblTempUsageDetail_20' ) start [2025-04-06 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848772', 'tblTempUsageDetail_20' ) end [2025-04-06 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:33:22] Production.INFO: ==11787== Releasing lock... [2025-04-06 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:33:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:34:05 [end_date_ymd] => 2025-04-06 16:34:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:34:05' and `end` < '2025-04-06 16: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-04-06 16:34:18] Production.INFO: count ==1205 [2025-04-06 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:34:05 - End Time 2025-04-06 16:34:05 [2025-04-06 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848777', 'tblTempUsageDetail_20' ) start [2025-04-06 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848777', 'tblTempUsageDetail_20' ) end [2025-04-06 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848777', 'tblTempVendorCDR_20' ) start [2025-04-06 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848777', 'tblTempVendorCDR_20' ) end [2025-04-06 16:34:19] Production.INFO: ProcessCDR(1,14848777,1,1,2) [2025-04-06 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848777', 'tblTempUsageDetail_20' ) start [2025-04-06 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848777', 'tblTempUsageDetail_20' ) end [2025-04-06 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:34:24] Production.INFO: ==11861== Releasing lock... [2025-04-06 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:34:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:35:06 [end_date_ymd] => 2025-04-06 16:35:06 [RateCDR] => 1 ) [2025-04-06 16:35: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-04-06 13:35:06' and `end` < '2025-04-06 16:35: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-04-06 16:35:18] Production.INFO: count ==1202 [2025-04-06 16:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:35:06 - End Time 2025-04-06 16:35:06 [2025-04-06 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848782', 'tblTempUsageDetail_20' ) start [2025-04-06 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848782', 'tblTempUsageDetail_20' ) end [2025-04-06 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848782', 'tblTempVendorCDR_20' ) start [2025-04-06 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848782', 'tblTempVendorCDR_20' ) end [2025-04-06 16:35:19] Production.INFO: ProcessCDR(1,14848782,1,1,2) [2025-04-06 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848782', 'tblTempUsageDetail_20' ) start [2025-04-06 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848782', 'tblTempUsageDetail_20' ) end [2025-04-06 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:35:22] Production.INFO: ==11932== Releasing lock... [2025-04-06 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:36:05 [end_date_ymd] => 2025-04-06 16:36:05 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:36:05' and `end` < '2025-04-06 16: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-04-06 16:36:18] Production.INFO: count ==1187 [2025-04-06 16:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:36:05 - End Time 2025-04-06 16:36:05 [2025-04-06 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848787', 'tblTempUsageDetail_20' ) start [2025-04-06 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848787', 'tblTempUsageDetail_20' ) end [2025-04-06 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848787', 'tblTempVendorCDR_20' ) start [2025-04-06 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848787', 'tblTempVendorCDR_20' ) end [2025-04-06 16:36:18] Production.INFO: ProcessCDR(1,14848787,1,1,2) [2025-04-06 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848787', 'tblTempUsageDetail_20' ) start [2025-04-06 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848787', 'tblTempUsageDetail_20' ) end [2025-04-06 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:36:23] Production.INFO: ==12004== Releasing lock... [2025-04-06 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:36:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:37:05 [end_date_ymd] => 2025-04-06 16:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:37:05' and `end` < '2025-04-06 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-04-06 16:37:19] Production.INFO: count ==1185 [2025-04-06 16:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:37:05 - End Time 2025-04-06 16:37:05 [2025-04-06 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848792', 'tblTempUsageDetail_20' ) start [2025-04-06 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848792', 'tblTempUsageDetail_20' ) end [2025-04-06 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848792', 'tblTempVendorCDR_20' ) start [2025-04-06 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848792', 'tblTempVendorCDR_20' ) end [2025-04-06 16:37:19] Production.INFO: ProcessCDR(1,14848792,1,1,2) [2025-04-06 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848792', 'tblTempUsageDetail_20' ) start [2025-04-06 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848792', 'tblTempUsageDetail_20' ) end [2025-04-06 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:37:22] Production.INFO: ==12082== Releasing lock... [2025-04-06 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:38:04 [end_date_ymd] => 2025-04-06 16:38:04 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:38:04' and `end` < '2025-04-06 16: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-04-06 16:38:17] Production.INFO: count ==1186 [2025-04-06 16:38:17] Production.ERROR: pbx CDR StartTime 2025-04-06 13:38:04 - End Time 2025-04-06 16:38:04 [2025-04-06 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848797', 'tblTempUsageDetail_20' ) start [2025-04-06 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848797', 'tblTempUsageDetail_20' ) end [2025-04-06 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848797', 'tblTempVendorCDR_20' ) start [2025-04-06 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848797', 'tblTempVendorCDR_20' ) end [2025-04-06 16:38:17] Production.INFO: ProcessCDR(1,14848797,1,1,2) [2025-04-06 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848797', 'tblTempUsageDetail_20' ) start [2025-04-06 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848797', 'tblTempUsageDetail_20' ) end [2025-04-06 16:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:38:22] Production.INFO: ==12156== Releasing lock... [2025-04-06 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:39:05 [end_date_ymd] => 2025-04-06 16:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:39:05' and `end` < '2025-04-06 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-04-06 16:39:18] Production.INFO: count ==1184 [2025-04-06 16:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:39:05 - End Time 2025-04-06 16:39:05 [2025-04-06 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848802', 'tblTempUsageDetail_20' ) start [2025-04-06 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848802', 'tblTempUsageDetail_20' ) end [2025-04-06 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848802', 'tblTempVendorCDR_20' ) start [2025-04-06 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848802', 'tblTempVendorCDR_20' ) end [2025-04-06 16:39:19] Production.INFO: ProcessCDR(1,14848802,1,1,2) [2025-04-06 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848802', 'tblTempUsageDetail_20' ) start [2025-04-06 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848802', 'tblTempUsageDetail_20' ) end [2025-04-06 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:39:22] Production.INFO: ==12229== Releasing lock... [2025-04-06 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:39:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:40:06 [end_date_ymd] => 2025-04-06 16:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:40:06' and `end` < '2025-04-06 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-04-06 16:40:19] Production.INFO: count ==1161 [2025-04-06 16:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 13:40:06 - End Time 2025-04-06 16:40:06 [2025-04-06 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848807', 'tblTempUsageDetail_20' ) start [2025-04-06 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848807', 'tblTempUsageDetail_20' ) end [2025-04-06 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848807', 'tblTempVendorCDR_20' ) start [2025-04-06 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848807', 'tblTempVendorCDR_20' ) end [2025-04-06 16:40:20] Production.INFO: ProcessCDR(1,14848807,1,1,2) [2025-04-06 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848807', 'tblTempUsageDetail_20' ) start [2025-04-06 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848807', 'tblTempUsageDetail_20' ) end [2025-04-06 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:40:25] Production.INFO: ==12300== Releasing lock... [2025-04-06 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:40:25] Production.INFO: 37 MB #Memory Used# [2025-04-06 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:41:05 [end_date_ymd] => 2025-04-06 16:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:41:05' and `end` < '2025-04-06 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-04-06 16:41:18] Production.INFO: count ==1170 [2025-04-06 16:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:41:05 - End Time 2025-04-06 16:41:05 [2025-04-06 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848813', 'tblTempUsageDetail_20' ) start [2025-04-06 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848813', 'tblTempUsageDetail_20' ) end [2025-04-06 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848813', 'tblTempVendorCDR_20' ) start [2025-04-06 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848813', 'tblTempVendorCDR_20' ) end [2025-04-06 16:41:18] Production.INFO: ProcessCDR(1,14848813,1,1,2) [2025-04-06 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848813', 'tblTempUsageDetail_20' ) start [2025-04-06 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848813', 'tblTempUsageDetail_20' ) end [2025-04-06 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:41:22] Production.INFO: ==12413== Releasing lock... [2025-04-06 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:42:05 [end_date_ymd] => 2025-04-06 16:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:42:05' and `end` < '2025-04-06 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-04-06 16:42:18] Production.INFO: count ==1167 [2025-04-06 16:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:42:05 - End Time 2025-04-06 16:42:05 [2025-04-06 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848818', 'tblTempUsageDetail_20' ) start [2025-04-06 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848818', 'tblTempUsageDetail_20' ) end [2025-04-06 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848818', 'tblTempVendorCDR_20' ) start [2025-04-06 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848818', 'tblTempVendorCDR_20' ) end [2025-04-06 16:42:18] Production.INFO: ProcessCDR(1,14848818,1,1,2) [2025-04-06 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848818', 'tblTempUsageDetail_20' ) start [2025-04-06 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848818', 'tblTempUsageDetail_20' ) end [2025-04-06 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:42:22] Production.INFO: ==12486== Releasing lock... [2025-04-06 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:43:05 [end_date_ymd] => 2025-04-06 16:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:43:05' and `end` < '2025-04-06 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-04-06 16:43:18] Production.INFO: count ==1166 [2025-04-06 16:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:43:05 - End Time 2025-04-06 16:43:05 [2025-04-06 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848823', 'tblTempUsageDetail_20' ) start [2025-04-06 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848823', 'tblTempUsageDetail_20' ) end [2025-04-06 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848823', 'tblTempVendorCDR_20' ) start [2025-04-06 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848823', 'tblTempVendorCDR_20' ) end [2025-04-06 16:43:18] Production.INFO: ProcessCDR(1,14848823,1,1,2) [2025-04-06 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848823', 'tblTempUsageDetail_20' ) start [2025-04-06 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848823', 'tblTempUsageDetail_20' ) end [2025-04-06 16:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:43:22] Production.INFO: ==12557== Releasing lock... [2025-04-06 16:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:43:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:44:06 [end_date_ymd] => 2025-04-06 16:44:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:44:06' and `end` < '2025-04-06 16: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-04-06 16:44:19] Production.INFO: count ==1168 [2025-04-06 16:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:44:06 - End Time 2025-04-06 16:44:06 [2025-04-06 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848828', 'tblTempUsageDetail_20' ) start [2025-04-06 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848828', 'tblTempUsageDetail_20' ) end [2025-04-06 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848828', 'tblTempVendorCDR_20' ) start [2025-04-06 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848828', 'tblTempVendorCDR_20' ) end [2025-04-06 16:44:19] Production.INFO: ProcessCDR(1,14848828,1,1,2) [2025-04-06 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848828', 'tblTempUsageDetail_20' ) start [2025-04-06 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848828', 'tblTempUsageDetail_20' ) end [2025-04-06 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:44:24] Production.INFO: ==12630== Releasing lock... [2025-04-06 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:44:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:45:05 [end_date_ymd] => 2025-04-06 16:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:45:05' and `end` < '2025-04-06 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-04-06 16:45:18] Production.INFO: count ==1165 [2025-04-06 16:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:45:05 - End Time 2025-04-06 16:45:05 [2025-04-06 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848833', 'tblTempUsageDetail_20' ) start [2025-04-06 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848833', 'tblTempUsageDetail_20' ) end [2025-04-06 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848833', 'tblTempVendorCDR_20' ) start [2025-04-06 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848833', 'tblTempVendorCDR_20' ) end [2025-04-06 16:45:19] Production.INFO: ProcessCDR(1,14848833,1,1,2) [2025-04-06 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848833', 'tblTempUsageDetail_20' ) start [2025-04-06 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848833', 'tblTempUsageDetail_20' ) end [2025-04-06 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:45:22] Production.INFO: ==12703== Releasing lock... [2025-04-06 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:46:05 [end_date_ymd] => 2025-04-06 16:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:46:05' and `end` < '2025-04-06 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-04-06 16:46:18] Production.INFO: count ==1168 [2025-04-06 16:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:46:05 - End Time 2025-04-06 16:46:05 [2025-04-06 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848838', 'tblTempUsageDetail_20' ) start [2025-04-06 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848838', 'tblTempUsageDetail_20' ) end [2025-04-06 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848838', 'tblTempVendorCDR_20' ) start [2025-04-06 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848838', 'tblTempVendorCDR_20' ) end [2025-04-06 16:46:19] Production.INFO: ProcessCDR(1,14848838,1,1,2) [2025-04-06 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848838', 'tblTempUsageDetail_20' ) start [2025-04-06 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848838', 'tblTempUsageDetail_20' ) end [2025-04-06 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:46:22] Production.INFO: ==12772== Releasing lock... [2025-04-06 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:46:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:47:05 [end_date_ymd] => 2025-04-06 16:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:47:05' and `end` < '2025-04-06 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-04-06 16:47:18] Production.INFO: count ==1176 [2025-04-06 16:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:47:05 - End Time 2025-04-06 16:47:05 [2025-04-06 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848843', 'tblTempUsageDetail_20' ) start [2025-04-06 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848843', 'tblTempUsageDetail_20' ) end [2025-04-06 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848843', 'tblTempVendorCDR_20' ) start [2025-04-06 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848843', 'tblTempVendorCDR_20' ) end [2025-04-06 16:47:18] Production.INFO: ProcessCDR(1,14848843,1,1,2) [2025-04-06 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848843', 'tblTempUsageDetail_20' ) start [2025-04-06 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848843', 'tblTempUsageDetail_20' ) end [2025-04-06 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:47:23] Production.INFO: ==12844== Releasing lock... [2025-04-06 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:48:06 [end_date_ymd] => 2025-04-06 16:48:06 [RateCDR] => 1 ) [2025-04-06 16:48: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-04-06 13:48:06' and `end` < '2025-04-06 16:48: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-04-06 16:48:19] Production.INFO: count ==1175 [2025-04-06 16:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:48:06 - End Time 2025-04-06 16:48:06 [2025-04-06 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848848', 'tblTempUsageDetail_20' ) start [2025-04-06 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848848', 'tblTempUsageDetail_20' ) end [2025-04-06 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848848', 'tblTempVendorCDR_20' ) start [2025-04-06 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848848', 'tblTempVendorCDR_20' ) end [2025-04-06 16:48:19] Production.INFO: ProcessCDR(1,14848848,1,1,2) [2025-04-06 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848848', 'tblTempUsageDetail_20' ) start [2025-04-06 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848848', 'tblTempUsageDetail_20' ) end [2025-04-06 16:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:48:22] Production.INFO: ==12918== Releasing lock... [2025-04-06 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:48:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:49:05 [end_date_ymd] => 2025-04-06 16:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:49:05' and `end` < '2025-04-06 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-04-06 16:49:18] Production.INFO: count ==1178 [2025-04-06 16:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:49:05 - End Time 2025-04-06 16:49:05 [2025-04-06 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848853', 'tblTempUsageDetail_20' ) start [2025-04-06 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848853', 'tblTempUsageDetail_20' ) end [2025-04-06 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848853', 'tblTempVendorCDR_20' ) start [2025-04-06 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848853', 'tblTempVendorCDR_20' ) end [2025-04-06 16:49:18] Production.INFO: ProcessCDR(1,14848853,1,1,2) [2025-04-06 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848853', 'tblTempUsageDetail_20' ) start [2025-04-06 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848853', 'tblTempUsageDetail_20' ) end [2025-04-06 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:49:23] Production.INFO: ==12989== Releasing lock... [2025-04-06 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:49:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:50:06 [end_date_ymd] => 2025-04-06 16:50:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:50:06' and `end` < '2025-04-06 16: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-04-06 16:50:19] Production.INFO: count ==1175 [2025-04-06 16:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:50:06 - End Time 2025-04-06 16:50:06 [2025-04-06 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848859', 'tblTempUsageDetail_20' ) start [2025-04-06 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848859', 'tblTempUsageDetail_20' ) end [2025-04-06 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848859', 'tblTempVendorCDR_20' ) start [2025-04-06 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848859', 'tblTempVendorCDR_20' ) end [2025-04-06 16:50:19] Production.INFO: ProcessCDR(1,14848859,1,1,2) [2025-04-06 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848859', 'tblTempUsageDetail_20' ) start [2025-04-06 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848859', 'tblTempUsageDetail_20' ) end [2025-04-06 16:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:50:23] Production.INFO: ==13063== Releasing lock... [2025-04-06 16:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:50:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:51:04 [end_date_ymd] => 2025-04-06 16:51:04 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:51:04' and `end` < '2025-04-06 16: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-04-06 16:51:17] Production.INFO: count ==1218 [2025-04-06 16:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:51:04 - End Time 2025-04-06 16:51:04 [2025-04-06 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848864', 'tblTempUsageDetail_20' ) start [2025-04-06 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848864', 'tblTempUsageDetail_20' ) end [2025-04-06 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848864', 'tblTempVendorCDR_20' ) start [2025-04-06 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848864', 'tblTempVendorCDR_20' ) end [2025-04-06 16:51:18] Production.INFO: ProcessCDR(1,14848864,1,1,2) [2025-04-06 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848864', 'tblTempUsageDetail_20' ) start [2025-04-06 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848864', 'tblTempUsageDetail_20' ) end [2025-04-06 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:51:23] Production.INFO: ==13141== Releasing lock... [2025-04-06 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:51:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:52:06 [end_date_ymd] => 2025-04-06 16:52:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:52:06' and `end` < '2025-04-06 16: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-04-06 16:52:19] Production.INFO: count ==1217 [2025-04-06 16:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:52:06 - End Time 2025-04-06 16:52:06 [2025-04-06 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848869', 'tblTempUsageDetail_20' ) start [2025-04-06 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848869', 'tblTempUsageDetail_20' ) end [2025-04-06 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848869', 'tblTempVendorCDR_20' ) start [2025-04-06 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848869', 'tblTempVendorCDR_20' ) end [2025-04-06 16:52:19] Production.INFO: ProcessCDR(1,14848869,1,1,2) [2025-04-06 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848869', 'tblTempUsageDetail_20' ) start [2025-04-06 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848869', 'tblTempUsageDetail_20' ) end [2025-04-06 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:52:22] Production.INFO: ==13212== Releasing lock... [2025-04-06 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:53:05 [end_date_ymd] => 2025-04-06 16:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:53:05' and `end` < '2025-04-06 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-04-06 16:53:18] Production.INFO: count ==1214 [2025-04-06 16:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:53:05 - End Time 2025-04-06 16:53:05 [2025-04-06 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848874', 'tblTempUsageDetail_20' ) start [2025-04-06 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848874', 'tblTempUsageDetail_20' ) end [2025-04-06 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848874', 'tblTempVendorCDR_20' ) start [2025-04-06 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848874', 'tblTempVendorCDR_20' ) end [2025-04-06 16:53:19] Production.INFO: ProcessCDR(1,14848874,1,1,2) [2025-04-06 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848874', 'tblTempUsageDetail_20' ) start [2025-04-06 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848874', 'tblTempUsageDetail_20' ) end [2025-04-06 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:53:24] Production.INFO: ==13292== Releasing lock... [2025-04-06 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:53:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:54:05 [end_date_ymd] => 2025-04-06 16:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:54:05' and `end` < '2025-04-06 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-04-06 16:54:17] Production.INFO: count ==1210 [2025-04-06 16:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:54:05 - End Time 2025-04-06 16:54:05 [2025-04-06 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848879', 'tblTempUsageDetail_20' ) start [2025-04-06 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848879', 'tblTempUsageDetail_20' ) end [2025-04-06 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848879', 'tblTempVendorCDR_20' ) start [2025-04-06 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848879', 'tblTempVendorCDR_20' ) end [2025-04-06 16:54:18] Production.INFO: ProcessCDR(1,14848879,1,1,2) [2025-04-06 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848879', 'tblTempUsageDetail_20' ) start [2025-04-06 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848879', 'tblTempUsageDetail_20' ) end [2025-04-06 16:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:54:21] Production.INFO: ==13365== Releasing lock... [2025-04-06 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:55:06 [end_date_ymd] => 2025-04-06 16:55:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:55:06' and `end` < '2025-04-06 16: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-04-06 16:55:19] Production.INFO: count ==1203 [2025-04-06 16:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:55:06 - End Time 2025-04-06 16:55:06 [2025-04-06 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848884', 'tblTempUsageDetail_20' ) start [2025-04-06 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848884', 'tblTempUsageDetail_20' ) end [2025-04-06 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848884', 'tblTempVendorCDR_20' ) start [2025-04-06 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848884', 'tblTempVendorCDR_20' ) end [2025-04-06 16:55:19] Production.INFO: ProcessCDR(1,14848884,1,1,2) [2025-04-06 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848884', 'tblTempUsageDetail_20' ) start [2025-04-06 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848884', 'tblTempUsageDetail_20' ) end [2025-04-06 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:55:23] Production.INFO: ==13437== Releasing lock... [2025-04-06 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:56:05 [end_date_ymd] => 2025-04-06 16:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:56:05' and `end` < '2025-04-06 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-04-06 16:56:18] Production.INFO: count ==1210 [2025-04-06 16:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:56:05 - End Time 2025-04-06 16:56:05 [2025-04-06 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848889', 'tblTempUsageDetail_20' ) start [2025-04-06 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848889', 'tblTempUsageDetail_20' ) end [2025-04-06 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848889', 'tblTempVendorCDR_20' ) start [2025-04-06 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848889', 'tblTempVendorCDR_20' ) end [2025-04-06 16:56:19] Production.INFO: ProcessCDR(1,14848889,1,1,2) [2025-04-06 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848889', 'tblTempUsageDetail_20' ) start [2025-04-06 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848889', 'tblTempUsageDetail_20' ) end [2025-04-06 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:56:22] Production.INFO: ==13548== Releasing lock... [2025-04-06 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:57:06 [end_date_ymd] => 2025-04-06 16:57:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:57:06' and `end` < '2025-04-06 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-04-06 16:57:19] Production.INFO: count ==1209 [2025-04-06 16:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:57:06 - End Time 2025-04-06 16:57:06 [2025-04-06 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848894', 'tblTempUsageDetail_20' ) start [2025-04-06 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848894', 'tblTempUsageDetail_20' ) end [2025-04-06 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848894', 'tblTempVendorCDR_20' ) start [2025-04-06 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848894', 'tblTempVendorCDR_20' ) end [2025-04-06 16:57:19] Production.INFO: ProcessCDR(1,14848894,1,1,2) [2025-04-06 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848894', 'tblTempUsageDetail_20' ) start [2025-04-06 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848894', 'tblTempUsageDetail_20' ) end [2025-04-06 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:57:23] Production.INFO: ==13620== Releasing lock... [2025-04-06 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:57:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:58:05 [end_date_ymd] => 2025-04-06 16:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 13:58:05' and `end` < '2025-04-06 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-04-06 16:58:18] Production.INFO: count ==1208 [2025-04-06 16:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 13:58:05 - End Time 2025-04-06 16:58:05 [2025-04-06 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848899', 'tblTempUsageDetail_20' ) start [2025-04-06 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848899', 'tblTempUsageDetail_20' ) end [2025-04-06 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848899', 'tblTempVendorCDR_20' ) start [2025-04-06 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848899', 'tblTempVendorCDR_20' ) end [2025-04-06 16:58:18] Production.INFO: ProcessCDR(1,14848899,1,1,2) [2025-04-06 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848899', 'tblTempUsageDetail_20' ) start [2025-04-06 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848899', 'tblTempUsageDetail_20' ) end [2025-04-06 16:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:58:21] Production.INFO: ==13690== Releasing lock... [2025-04-06 16:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:58:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 13:59:06 [end_date_ymd] => 2025-04-06 16:59:06 [RateCDR] => 1 ) [2025-04-06 16: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-04-06 13:59:06' and `end` < '2025-04-06 16: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-04-06 16:59:19] Production.INFO: count ==1205 [2025-04-06 16:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 13:59:06 - End Time 2025-04-06 16:59:06 [2025-04-06 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848904', 'tblTempUsageDetail_20' ) start [2025-04-06 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848904', 'tblTempUsageDetail_20' ) end [2025-04-06 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848904', 'tblTempVendorCDR_20' ) start [2025-04-06 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848904', 'tblTempVendorCDR_20' ) end [2025-04-06 16:59:19] Production.INFO: ProcessCDR(1,14848904,1,1,2) [2025-04-06 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848904', 'tblTempUsageDetail_20' ) start [2025-04-06 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848904', 'tblTempUsageDetail_20' ) end [2025-04-06 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 16:59:23] Production.INFO: ==13763== Releasing lock... [2025-04-06 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 16:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:00:06 [end_date_ymd] => 2025-04-06 17:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:00:06' and `end` < '2025-04-06 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-04-06 17:00:19] Production.INFO: count ==1216 [2025-04-06 17:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:00:06 - End Time 2025-04-06 17:00:06 [2025-04-06 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848910', 'tblTempUsageDetail_20' ) start [2025-04-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848910', 'tblTempUsageDetail_20' ) end [2025-04-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848910', 'tblTempVendorCDR_20' ) start [2025-04-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848910', 'tblTempVendorCDR_20' ) end [2025-04-06 17:00:20] Production.INFO: ProcessCDR(1,14848910,1,1,2) [2025-04-06 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848910', 'tblTempUsageDetail_20' ) start [2025-04-06 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848910', 'tblTempUsageDetail_20' ) end [2025-04-06 17:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:00:23] Production.INFO: ==13837== Releasing lock... [2025-04-06 17:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:00:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:01:05 [end_date_ymd] => 2025-04-06 17:01:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:01:05' and `end` < '2025-04-06 17: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-04-06 17:01:18] Production.INFO: count ==1268 [2025-04-06 17:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:01:05 - End Time 2025-04-06 17:01:05 [2025-04-06 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848915', 'tblTempUsageDetail_20' ) start [2025-04-06 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848915', 'tblTempUsageDetail_20' ) end [2025-04-06 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848915', 'tblTempVendorCDR_20' ) start [2025-04-06 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848915', 'tblTempVendorCDR_20' ) end [2025-04-06 17:01:19] Production.INFO: ProcessCDR(1,14848915,1,1,2) [2025-04-06 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848915', 'tblTempUsageDetail_20' ) start [2025-04-06 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848915', 'tblTempUsageDetail_20' ) end [2025-04-06 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:01:22] Production.INFO: ==13922== Releasing lock... [2025-04-06 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:01:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:02:06 [end_date_ymd] => 2025-04-06 17:02:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:02:06' and `end` < '2025-04-06 17: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-04-06 17:02:19] Production.INFO: count ==1269 [2025-04-06 17:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:02:06 - End Time 2025-04-06 17:02:06 [2025-04-06 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848920', 'tblTempUsageDetail_20' ) start [2025-04-06 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848920', 'tblTempUsageDetail_20' ) end [2025-04-06 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848920', 'tblTempVendorCDR_20' ) start [2025-04-06 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848920', 'tblTempVendorCDR_20' ) end [2025-04-06 17:02:19] Production.INFO: ProcessCDR(1,14848920,1,1,2) [2025-04-06 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848920', 'tblTempUsageDetail_20' ) start [2025-04-06 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848920', 'tblTempUsageDetail_20' ) end [2025-04-06 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:02:23] Production.INFO: ==13995== Releasing lock... [2025-04-06 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:02:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:03:05 [end_date_ymd] => 2025-04-06 17:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:03:05' and `end` < '2025-04-06 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-04-06 17:03:18] Production.INFO: count ==1267 [2025-04-06 17:03:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:03:05 - End Time 2025-04-06 17:03:05 [2025-04-06 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848925', 'tblTempUsageDetail_20' ) start [2025-04-06 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848925', 'tblTempUsageDetail_20' ) end [2025-04-06 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848925', 'tblTempVendorCDR_20' ) start [2025-04-06 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848925', 'tblTempVendorCDR_20' ) end [2025-04-06 17:03:18] Production.INFO: ProcessCDR(1,14848925,1,1,2) [2025-04-06 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848925', 'tblTempUsageDetail_20' ) start [2025-04-06 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848925', 'tblTempUsageDetail_20' ) end [2025-04-06 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:03:22] Production.INFO: ==14067== Releasing lock... [2025-04-06 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:04:05 [end_date_ymd] => 2025-04-06 17:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:04:05' and `end` < '2025-04-06 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-04-06 17:04:19] Production.INFO: count ==1274 [2025-04-06 17:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:04:05 - End Time 2025-04-06 17:04:05 [2025-04-06 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848930', 'tblTempUsageDetail_20' ) start [2025-04-06 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848930', 'tblTempUsageDetail_20' ) end [2025-04-06 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848930', 'tblTempVendorCDR_20' ) start [2025-04-06 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848930', 'tblTempVendorCDR_20' ) end [2025-04-06 17:04:19] Production.INFO: ProcessCDR(1,14848930,1,1,2) [2025-04-06 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848930', 'tblTempUsageDetail_20' ) start [2025-04-06 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848930', 'tblTempUsageDetail_20' ) end [2025-04-06 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:04:24] Production.INFO: ==14138== Releasing lock... [2025-04-06 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:04:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:05:06 [end_date_ymd] => 2025-04-06 17:05:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:05:06' and `end` < '2025-04-06 17: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-04-06 17:05:19] Production.INFO: count ==1267 [2025-04-06 17:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:05:06 - End Time 2025-04-06 17:05:06 [2025-04-06 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848935', 'tblTempUsageDetail_20' ) start [2025-04-06 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848935', 'tblTempUsageDetail_20' ) end [2025-04-06 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848935', 'tblTempVendorCDR_20' ) start [2025-04-06 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848935', 'tblTempVendorCDR_20' ) end [2025-04-06 17:05:19] Production.INFO: ProcessCDR(1,14848935,1,1,2) [2025-04-06 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848935', 'tblTempUsageDetail_20' ) start [2025-04-06 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848935', 'tblTempUsageDetail_20' ) end [2025-04-06 17:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:05:24] Production.INFO: ==14217== Releasing lock... [2025-04-06 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:05:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:06:06 [end_date_ymd] => 2025-04-06 17:06:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:06:06' and `end` < '2025-04-06 17: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-04-06 17:06:18] Production.INFO: count ==1268 [2025-04-06 17:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:06:06 - End Time 2025-04-06 17:06:06 [2025-04-06 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848940', 'tblTempUsageDetail_20' ) start [2025-04-06 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848940', 'tblTempUsageDetail_20' ) end [2025-04-06 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848940', 'tblTempVendorCDR_20' ) start [2025-04-06 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848940', 'tblTempVendorCDR_20' ) end [2025-04-06 17:06:19] Production.INFO: ProcessCDR(1,14848940,1,1,2) [2025-04-06 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848940', 'tblTempUsageDetail_20' ) start [2025-04-06 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848940', 'tblTempUsageDetail_20' ) end [2025-04-06 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:06:24] Production.INFO: ==14292== Releasing lock... [2025-04-06 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:06:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:07:05 [end_date_ymd] => 2025-04-06 17:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:07:05' and `end` < '2025-04-06 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-04-06 17:07:18] Production.INFO: count ==1273 [2025-04-06 17:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:07:05 - End Time 2025-04-06 17:07:05 [2025-04-06 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848945', 'tblTempUsageDetail_20' ) start [2025-04-06 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848945', 'tblTempUsageDetail_20' ) end [2025-04-06 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848945', 'tblTempVendorCDR_20' ) start [2025-04-06 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848945', 'tblTempVendorCDR_20' ) end [2025-04-06 17:07:18] Production.INFO: ProcessCDR(1,14848945,1,1,2) [2025-04-06 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848945', 'tblTempUsageDetail_20' ) start [2025-04-06 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848945', 'tblTempUsageDetail_20' ) end [2025-04-06 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:07:22] Production.INFO: ==14361== Releasing lock... [2025-04-06 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:07:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:08:06 [end_date_ymd] => 2025-04-06 17:08:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:08:06' and `end` < '2025-04-06 17: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-04-06 17:08:19] Production.INFO: count ==1284 [2025-04-06 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:08:06 - End Time 2025-04-06 17:08:06 [2025-04-06 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848950', 'tblTempUsageDetail_20' ) start [2025-04-06 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848950', 'tblTempUsageDetail_20' ) end [2025-04-06 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848950', 'tblTempVendorCDR_20' ) start [2025-04-06 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848950', 'tblTempVendorCDR_20' ) end [2025-04-06 17:08:19] Production.INFO: ProcessCDR(1,14848950,1,1,2) [2025-04-06 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848950', 'tblTempUsageDetail_20' ) start [2025-04-06 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848950', 'tblTempUsageDetail_20' ) end [2025-04-06 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:08:24] Production.INFO: ==14440== Releasing lock... [2025-04-06 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:08:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:09:05 [end_date_ymd] => 2025-04-06 17:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:09:05' and `end` < '2025-04-06 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-04-06 17:09:18] Production.INFO: count ==1285 [2025-04-06 17:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:09:05 - End Time 2025-04-06 17:09:05 [2025-04-06 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848955', 'tblTempUsageDetail_20' ) start [2025-04-06 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848955', 'tblTempUsageDetail_20' ) end [2025-04-06 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848955', 'tblTempVendorCDR_20' ) start [2025-04-06 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848955', 'tblTempVendorCDR_20' ) end [2025-04-06 17:09:19] Production.INFO: ProcessCDR(1,14848955,1,1,2) [2025-04-06 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848955', 'tblTempUsageDetail_20' ) start [2025-04-06 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848955', 'tblTempUsageDetail_20' ) end [2025-04-06 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:09:22] Production.INFO: ==14514== Releasing lock... [2025-04-06 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:09:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:10:06 [end_date_ymd] => 2025-04-06 17:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:10:06' and `end` < '2025-04-06 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-04-06 17:10:19] Production.INFO: count ==1279 [2025-04-06 17:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:10:06 - End Time 2025-04-06 17:10:06 [2025-04-06 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848961', 'tblTempUsageDetail_20' ) start [2025-04-06 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848961', 'tblTempUsageDetail_20' ) end [2025-04-06 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848961', 'tblTempVendorCDR_20' ) start [2025-04-06 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848961', 'tblTempVendorCDR_20' ) end [2025-04-06 17:10:19] Production.INFO: ProcessCDR(1,14848961,1,1,2) [2025-04-06 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848961', 'tblTempUsageDetail_20' ) start [2025-04-06 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848961', 'tblTempUsageDetail_20' ) end [2025-04-06 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:10:23] Production.INFO: ==14586== Releasing lock... [2025-04-06 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:10:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:11:05 [end_date_ymd] => 2025-04-06 17:11:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:11:05' and `end` < '2025-04-06 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-04-06 17:11:18] Production.INFO: count ==1319 [2025-04-06 17:11:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:11:05 - End Time 2025-04-06 17:11:05 [2025-04-06 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848966', 'tblTempUsageDetail_20' ) start [2025-04-06 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848966', 'tblTempUsageDetail_20' ) end [2025-04-06 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848966', 'tblTempVendorCDR_20' ) start [2025-04-06 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848966', 'tblTempVendorCDR_20' ) end [2025-04-06 17:11:18] Production.INFO: ProcessCDR(1,14848966,1,1,2) [2025-04-06 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848966', 'tblTempUsageDetail_20' ) start [2025-04-06 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848966', 'tblTempUsageDetail_20' ) end [2025-04-06 17:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:11:21] Production.INFO: ==14700== Releasing lock... [2025-04-06 17:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:11:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:12:06 [end_date_ymd] => 2025-04-06 17:12:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:12:06' and `end` < '2025-04-06 17: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-04-06 17:12:18] Production.INFO: count ==1319 [2025-04-06 17:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:12:06 - End Time 2025-04-06 17:12:06 [2025-04-06 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848971', 'tblTempUsageDetail_20' ) start [2025-04-06 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848971', 'tblTempUsageDetail_20' ) end [2025-04-06 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848971', 'tblTempVendorCDR_20' ) start [2025-04-06 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848971', 'tblTempVendorCDR_20' ) end [2025-04-06 17:12:19] Production.INFO: ProcessCDR(1,14848971,1,1,2) [2025-04-06 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848971', 'tblTempUsageDetail_20' ) start [2025-04-06 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848971', 'tblTempUsageDetail_20' ) end [2025-04-06 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:12:22] Production.INFO: ==14782== Releasing lock... [2025-04-06 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:13:05 [end_date_ymd] => 2025-04-06 17:13:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:13:05' and `end` < '2025-04-06 17: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-04-06 17:13:18] Production.INFO: count ==1323 [2025-04-06 17:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:13:05 - End Time 2025-04-06 17:13:05 [2025-04-06 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848976', 'tblTempUsageDetail_20' ) start [2025-04-06 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848976', 'tblTempUsageDetail_20' ) end [2025-04-06 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848976', 'tblTempVendorCDR_20' ) start [2025-04-06 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848976', 'tblTempVendorCDR_20' ) end [2025-04-06 17:13:18] Production.INFO: ProcessCDR(1,14848976,1,1,2) [2025-04-06 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848976', 'tblTempUsageDetail_20' ) start [2025-04-06 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848976', 'tblTempUsageDetail_20' ) end [2025-04-06 17:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:13:21] Production.INFO: ==14853== Releasing lock... [2025-04-06 17:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:13:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:14:05 [end_date_ymd] => 2025-04-06 17:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:14:05' and `end` < '2025-04-06 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-04-06 17:14:18] Production.INFO: count ==1321 [2025-04-06 17:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:14:05 - End Time 2025-04-06 17:14:05 [2025-04-06 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848981', 'tblTempUsageDetail_20' ) start [2025-04-06 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848981', 'tblTempUsageDetail_20' ) end [2025-04-06 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848981', 'tblTempVendorCDR_20' ) start [2025-04-06 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848981', 'tblTempVendorCDR_20' ) end [2025-04-06 17:14:19] Production.INFO: ProcessCDR(1,14848981,1,1,2) [2025-04-06 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848981', 'tblTempUsageDetail_20' ) start [2025-04-06 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848981', 'tblTempUsageDetail_20' ) end [2025-04-06 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:14:22] Production.INFO: ==14928== Releasing lock... [2025-04-06 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:15:05 [end_date_ymd] => 2025-04-06 17:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:15:05' and `end` < '2025-04-06 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-04-06 17:15:18] Production.INFO: count ==1322 [2025-04-06 17:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:15:05 - End Time 2025-04-06 17:15:05 [2025-04-06 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848986', 'tblTempUsageDetail_20' ) start [2025-04-06 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848986', 'tblTempUsageDetail_20' ) end [2025-04-06 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848986', 'tblTempVendorCDR_20' ) start [2025-04-06 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848986', 'tblTempVendorCDR_20' ) end [2025-04-06 17:15:18] Production.INFO: ProcessCDR(1,14848986,1,1,2) [2025-04-06 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848986', 'tblTempUsageDetail_20' ) start [2025-04-06 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848986', 'tblTempUsageDetail_20' ) end [2025-04-06 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:15:22] Production.INFO: ==15007== Releasing lock... [2025-04-06 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:16:05 [end_date_ymd] => 2025-04-06 17:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:16:05' and `end` < '2025-04-06 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-04-06 17:16:18] Production.INFO: count ==1332 [2025-04-06 17:16:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:16:05 - End Time 2025-04-06 17:16:05 [2025-04-06 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848991', 'tblTempUsageDetail_20' ) start [2025-04-06 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848991', 'tblTempUsageDetail_20' ) end [2025-04-06 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848991', 'tblTempVendorCDR_20' ) start [2025-04-06 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848991', 'tblTempVendorCDR_20' ) end [2025-04-06 17:16:19] Production.INFO: ProcessCDR(1,14848991,1,1,2) [2025-04-06 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848991', 'tblTempUsageDetail_20' ) start [2025-04-06 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848991', 'tblTempUsageDetail_20' ) end [2025-04-06 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:16:23] Production.INFO: ==15083== Releasing lock... [2025-04-06 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:16:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:17:05 [end_date_ymd] => 2025-04-06 17:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:17:05' and `end` < '2025-04-06 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-04-06 17:17:18] Production.INFO: count ==1355 [2025-04-06 17:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:17:05 - End Time 2025-04-06 17:17:05 [2025-04-06 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848996', 'tblTempUsageDetail_20' ) start [2025-04-06 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14848996', 'tblTempUsageDetail_20' ) end [2025-04-06 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848996', 'tblTempVendorCDR_20' ) start [2025-04-06 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14848996', 'tblTempVendorCDR_20' ) end [2025-04-06 17:17:18] Production.INFO: ProcessCDR(1,14848996,1,1,2) [2025-04-06 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14848996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14848996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14848996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14848996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848996', 'tblTempUsageDetail_20' ) start [2025-04-06 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14848996', 'tblTempUsageDetail_20' ) end [2025-04-06 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:17:23] Production.INFO: ==15160== Releasing lock... [2025-04-06 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:17:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:18:05 [end_date_ymd] => 2025-04-06 17:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:18:05' and `end` < '2025-04-06 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-04-06 17:18:18] Production.INFO: count ==1353 [2025-04-06 17:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:18:05 - End Time 2025-04-06 17:18:05 [2025-04-06 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849001', 'tblTempUsageDetail_20' ) start [2025-04-06 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849001', 'tblTempUsageDetail_20' ) end [2025-04-06 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849001', 'tblTempVendorCDR_20' ) start [2025-04-06 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849001', 'tblTempVendorCDR_20' ) end [2025-04-06 17:18:19] Production.INFO: ProcessCDR(1,14849001,1,1,2) [2025-04-06 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849001', 'tblTempUsageDetail_20' ) start [2025-04-06 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849001', 'tblTempUsageDetail_20' ) end [2025-04-06 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:18:22] Production.INFO: ==15249== Releasing lock... [2025-04-06 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:18:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:19:05 [end_date_ymd] => 2025-04-06 17:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:19:05' and `end` < '2025-04-06 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-04-06 17:19:18] Production.INFO: count ==1370 [2025-04-06 17:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:19:05 - End Time 2025-04-06 17:19:05 [2025-04-06 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849006', 'tblTempUsageDetail_20' ) start [2025-04-06 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849006', 'tblTempUsageDetail_20' ) end [2025-04-06 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849006', 'tblTempVendorCDR_20' ) start [2025-04-06 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849006', 'tblTempVendorCDR_20' ) end [2025-04-06 17:19:18] Production.INFO: ProcessCDR(1,14849006,1,1,2) [2025-04-06 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849006', 'tblTempUsageDetail_20' ) start [2025-04-06 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849006', 'tblTempUsageDetail_20' ) end [2025-04-06 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:19:22] Production.INFO: ==15324== Releasing lock... [2025-04-06 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:19:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:20:06 [end_date_ymd] => 2025-04-06 17:20:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:20:06' and `end` < '2025-04-06 17: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-04-06 17:20:19] Production.INFO: count ==1368 [2025-04-06 17:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:20:06 - End Time 2025-04-06 17:20:06 [2025-04-06 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849012', 'tblTempUsageDetail_20' ) start [2025-04-06 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849012', 'tblTempUsageDetail_20' ) end [2025-04-06 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849012', 'tblTempVendorCDR_20' ) start [2025-04-06 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849012', 'tblTempVendorCDR_20' ) end [2025-04-06 17:20:19] Production.INFO: ProcessCDR(1,14849012,1,1,2) [2025-04-06 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849012', 'tblTempUsageDetail_20' ) start [2025-04-06 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849012', 'tblTempUsageDetail_20' ) end [2025-04-06 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:20:23] Production.INFO: ==15408== Releasing lock... [2025-04-06 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:20:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:21:05 [end_date_ymd] => 2025-04-06 17:21:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:21:05' and `end` < '2025-04-06 17: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-04-06 17:21:18] Production.INFO: count ==1335 [2025-04-06 17:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:21:05 - End Time 2025-04-06 17:21:05 [2025-04-06 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849017', 'tblTempUsageDetail_20' ) start [2025-04-06 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849017', 'tblTempUsageDetail_20' ) end [2025-04-06 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849017', 'tblTempVendorCDR_20' ) start [2025-04-06 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849017', 'tblTempVendorCDR_20' ) end [2025-04-06 17:21:18] Production.INFO: ProcessCDR(1,14849017,1,1,2) [2025-04-06 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849017', 'tblTempUsageDetail_20' ) start [2025-04-06 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849017', 'tblTempUsageDetail_20' ) end [2025-04-06 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:21:22] Production.INFO: ==15487== Releasing lock... [2025-04-06 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:22:05 [end_date_ymd] => 2025-04-06 17:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:22:05' and `end` < '2025-04-06 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-04-06 17:22:18] Production.INFO: count ==1332 [2025-04-06 17:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:22:05 - End Time 2025-04-06 17:22:05 [2025-04-06 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849022', 'tblTempUsageDetail_20' ) start [2025-04-06 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849022', 'tblTempUsageDetail_20' ) end [2025-04-06 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849022', 'tblTempVendorCDR_20' ) start [2025-04-06 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849022', 'tblTempVendorCDR_20' ) end [2025-04-06 17:22:18] Production.INFO: ProcessCDR(1,14849022,1,1,2) [2025-04-06 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849022', 'tblTempUsageDetail_20' ) start [2025-04-06 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849022', 'tblTempUsageDetail_20' ) end [2025-04-06 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:22:22] Production.INFO: ==15570== Releasing lock... [2025-04-06 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:23:06 [end_date_ymd] => 2025-04-06 17:23:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:23:06' and `end` < '2025-04-06 17: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-04-06 17:23:19] Production.INFO: count ==1334 [2025-04-06 17:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:23:06 - End Time 2025-04-06 17:23:06 [2025-04-06 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849027', 'tblTempUsageDetail_20' ) start [2025-04-06 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849027', 'tblTempUsageDetail_20' ) end [2025-04-06 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849027', 'tblTempVendorCDR_20' ) start [2025-04-06 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849027', 'tblTempVendorCDR_20' ) end [2025-04-06 17:23:19] Production.INFO: ProcessCDR(1,14849027,1,1,2) [2025-04-06 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849027', 'tblTempUsageDetail_20' ) start [2025-04-06 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849027', 'tblTempUsageDetail_20' ) end [2025-04-06 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:23:23] Production.INFO: ==15652== Releasing lock... [2025-04-06 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:24:06 [end_date_ymd] => 2025-04-06 17:24:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:24:06' and `end` < '2025-04-06 17: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-04-06 17:24:19] Production.INFO: count ==1342 [2025-04-06 17:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:24:06 - End Time 2025-04-06 17:24:06 [2025-04-06 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849032', 'tblTempUsageDetail_20' ) start [2025-04-06 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849032', 'tblTempUsageDetail_20' ) end [2025-04-06 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849032', 'tblTempVendorCDR_20' ) start [2025-04-06 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849032', 'tblTempVendorCDR_20' ) end [2025-04-06 17:24:19] Production.INFO: ProcessCDR(1,14849032,1,1,2) [2025-04-06 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849032', 'tblTempUsageDetail_20' ) start [2025-04-06 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849032', 'tblTempUsageDetail_20' ) end [2025-04-06 17:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:24:22] Production.INFO: ==15738== Releasing lock... [2025-04-06 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:24:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:25:05 [end_date_ymd] => 2025-04-06 17:25:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:25:05' and `end` < '2025-04-06 17: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-04-06 17:25:18] Production.INFO: count ==1336 [2025-04-06 17:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:25:05 - End Time 2025-04-06 17:25:05 [2025-04-06 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849037', 'tblTempUsageDetail_20' ) start [2025-04-06 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849037', 'tblTempUsageDetail_20' ) end [2025-04-06 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849037', 'tblTempVendorCDR_20' ) start [2025-04-06 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849037', 'tblTempVendorCDR_20' ) end [2025-04-06 17:25:19] Production.INFO: ProcessCDR(1,14849037,1,1,2) [2025-04-06 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849037', 'tblTempUsageDetail_20' ) start [2025-04-06 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849037', 'tblTempUsageDetail_20' ) end [2025-04-06 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:25:22] Production.INFO: ==15820== Releasing lock... [2025-04-06 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:25:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:26:05 [end_date_ymd] => 2025-04-06 17:26:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:26:05' and `end` < '2025-04-06 17: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-04-06 17:26:19] Production.INFO: count ==1335 [2025-04-06 17:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:26:05 - End Time 2025-04-06 17:26:05 [2025-04-06 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849042', 'tblTempUsageDetail_20' ) start [2025-04-06 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849042', 'tblTempUsageDetail_20' ) end [2025-04-06 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849042', 'tblTempVendorCDR_20' ) start [2025-04-06 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849042', 'tblTempVendorCDR_20' ) end [2025-04-06 17:26:19] Production.INFO: ProcessCDR(1,14849042,1,1,2) [2025-04-06 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849042', 'tblTempUsageDetail_20' ) start [2025-04-06 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849042', 'tblTempUsageDetail_20' ) end [2025-04-06 17:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:26:22] Production.INFO: ==15914== Releasing lock... [2025-04-06 17:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:26:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:27:05 [end_date_ymd] => 2025-04-06 17:27:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:27:05' and `end` < '2025-04-06 17: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-04-06 17:27:18] Production.INFO: count ==1333 [2025-04-06 17:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:27:05 - End Time 2025-04-06 17:27:05 [2025-04-06 17:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849047', 'tblTempUsageDetail_20' ) start [2025-04-06 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849047', 'tblTempUsageDetail_20' ) end [2025-04-06 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849047', 'tblTempVendorCDR_20' ) start [2025-04-06 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849047', 'tblTempVendorCDR_20' ) end [2025-04-06 17:27:18] Production.INFO: ProcessCDR(1,14849047,1,1,2) [2025-04-06 17:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849047', 'tblTempUsageDetail_20' ) start [2025-04-06 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849047', 'tblTempUsageDetail_20' ) end [2025-04-06 17:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:27:24] Production.INFO: ==16036== Releasing lock... [2025-04-06 17:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:27:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:28:05 [end_date_ymd] => 2025-04-06 17:28:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:28:05' and `end` < '2025-04-06 17: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-04-06 17:28:18] Production.INFO: count ==1336 [2025-04-06 17:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:28:05 - End Time 2025-04-06 17:28:05 [2025-04-06 17:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849052', 'tblTempUsageDetail_20' ) start [2025-04-06 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849052', 'tblTempUsageDetail_20' ) end [2025-04-06 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849052', 'tblTempVendorCDR_20' ) start [2025-04-06 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849052', 'tblTempVendorCDR_20' ) end [2025-04-06 17:28:18] Production.INFO: ProcessCDR(1,14849052,1,1,2) [2025-04-06 17:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849052', 'tblTempUsageDetail_20' ) start [2025-04-06 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849052', 'tblTempUsageDetail_20' ) end [2025-04-06 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:28:22] Production.INFO: ==16125== Releasing lock... [2025-04-06 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:28:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:29:05 [end_date_ymd] => 2025-04-06 17:29:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:29:05' and `end` < '2025-04-06 17: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-04-06 17:29:18] Production.INFO: count ==1333 [2025-04-06 17:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:29:05 - End Time 2025-04-06 17:29:05 [2025-04-06 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849057', 'tblTempUsageDetail_20' ) start [2025-04-06 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849057', 'tblTempUsageDetail_20' ) end [2025-04-06 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849057', 'tblTempVendorCDR_20' ) start [2025-04-06 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849057', 'tblTempVendorCDR_20' ) end [2025-04-06 17:29:18] Production.INFO: ProcessCDR(1,14849057,1,1,2) [2025-04-06 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849057', 'tblTempUsageDetail_20' ) start [2025-04-06 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849057', 'tblTempUsageDetail_20' ) end [2025-04-06 17:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:29:21] Production.INFO: ==16214== Releasing lock... [2025-04-06 17:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:29:21] Production.INFO: 38 MB #Memory Used# [2025-04-06 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:30:06 [end_date_ymd] => 2025-04-06 17:30:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:30:06' and `end` < '2025-04-06 17: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-04-06 17:30:19] Production.INFO: count ==1337 [2025-04-06 17:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:30:06 - End Time 2025-04-06 17:30:06 [2025-04-06 17:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849062', 'tblTempUsageDetail_20' ) start [2025-04-06 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849062', 'tblTempUsageDetail_20' ) end [2025-04-06 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849062', 'tblTempVendorCDR_20' ) start [2025-04-06 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849062', 'tblTempVendorCDR_20' ) end [2025-04-06 17:30:19] Production.INFO: ProcessCDR(1,14849062,1,1,2) [2025-04-06 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849062', 'tblTempUsageDetail_20' ) start [2025-04-06 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849062', 'tblTempUsageDetail_20' ) end [2025-04-06 17:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:30:24] Production.INFO: ==16302== Releasing lock... [2025-04-06 17:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:30:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:31:05 [end_date_ymd] => 2025-04-06 17:31:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:31:05' and `end` < '2025-04-06 17: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-04-06 17:31:18] Production.INFO: count ==1366 [2025-04-06 17:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:31:05 - End Time 2025-04-06 17:31:05 [2025-04-06 17:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849068', 'tblTempUsageDetail_20' ) start [2025-04-06 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849068', 'tblTempUsageDetail_20' ) end [2025-04-06 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849068', 'tblTempVendorCDR_20' ) start [2025-04-06 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849068', 'tblTempVendorCDR_20' ) end [2025-04-06 17:31:19] Production.INFO: ProcessCDR(1,14849068,1,1,2) [2025-04-06 17:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849068', 'tblTempUsageDetail_20' ) start [2025-04-06 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849068', 'tblTempUsageDetail_20' ) end [2025-04-06 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:31:24] Production.INFO: ==16398== Releasing lock... [2025-04-06 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:31:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:32:05 [end_date_ymd] => 2025-04-06 17:32:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:32:05' and `end` < '2025-04-06 17: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-04-06 17:32:18] Production.INFO: count ==1376 [2025-04-06 17:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:32:05 - End Time 2025-04-06 17:32:05 [2025-04-06 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849073', 'tblTempUsageDetail_20' ) start [2025-04-06 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849073', 'tblTempUsageDetail_20' ) end [2025-04-06 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849073', 'tblTempVendorCDR_20' ) start [2025-04-06 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849073', 'tblTempVendorCDR_20' ) end [2025-04-06 17:32:18] Production.INFO: ProcessCDR(1,14849073,1,1,2) [2025-04-06 17:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849073', 'tblTempUsageDetail_20' ) start [2025-04-06 17:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849073', 'tblTempUsageDetail_20' ) end [2025-04-06 17:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:32:21] Production.INFO: ==16489== Releasing lock... [2025-04-06 17:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:32:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:33:06 [end_date_ymd] => 2025-04-06 17:33:06 [RateCDR] => 1 ) [2025-04-06 17:33: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-04-06 14:33:06' and `end` < '2025-04-06 17:33: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-04-06 17:33:19] Production.INFO: count ==1381 [2025-04-06 17:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:33:06 - End Time 2025-04-06 17:33:06 [2025-04-06 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849078', 'tblTempUsageDetail_20' ) start [2025-04-06 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849078', 'tblTempUsageDetail_20' ) end [2025-04-06 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849078', 'tblTempVendorCDR_20' ) start [2025-04-06 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849078', 'tblTempVendorCDR_20' ) end [2025-04-06 17:33:19] Production.INFO: ProcessCDR(1,14849078,1,1,2) [2025-04-06 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849078', 'tblTempUsageDetail_20' ) start [2025-04-06 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849078', 'tblTempUsageDetail_20' ) end [2025-04-06 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:33:22] Production.INFO: ==16576== Releasing lock... [2025-04-06 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:33:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:34:05 [end_date_ymd] => 2025-04-06 17:34:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:34:05' and `end` < '2025-04-06 17: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-04-06 17:34:18] Production.INFO: count ==1382 [2025-04-06 17:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:34:05 - End Time 2025-04-06 17:34:05 [2025-04-06 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849083', 'tblTempUsageDetail_20' ) start [2025-04-06 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849083', 'tblTempUsageDetail_20' ) end [2025-04-06 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849083', 'tblTempVendorCDR_20' ) start [2025-04-06 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849083', 'tblTempVendorCDR_20' ) end [2025-04-06 17:34:19] Production.INFO: ProcessCDR(1,14849083,1,1,2) [2025-04-06 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849083', 'tblTempUsageDetail_20' ) start [2025-04-06 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849083', 'tblTempUsageDetail_20' ) end [2025-04-06 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:34:24] Production.INFO: ==16666== Releasing lock... [2025-04-06 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:34:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:35:05 [end_date_ymd] => 2025-04-06 17:35:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:35:05' and `end` < '2025-04-06 17: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-04-06 17:35:18] Production.INFO: count ==1395 [2025-04-06 17:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:35:05 - End Time 2025-04-06 17:35:05 [2025-04-06 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849088', 'tblTempUsageDetail_20' ) start [2025-04-06 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849088', 'tblTempUsageDetail_20' ) end [2025-04-06 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849088', 'tblTempVendorCDR_20' ) start [2025-04-06 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849088', 'tblTempVendorCDR_20' ) end [2025-04-06 17:35:19] Production.INFO: ProcessCDR(1,14849088,1,1,2) [2025-04-06 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849088', 'tblTempUsageDetail_20' ) start [2025-04-06 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849088', 'tblTempUsageDetail_20' ) end [2025-04-06 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:35:22] Production.INFO: ==16758== Releasing lock... [2025-04-06 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:35:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:36:06 [end_date_ymd] => 2025-04-06 17:36:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:36:06' and `end` < '2025-04-06 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-04-06 17:36:19] Production.INFO: count ==1389 [2025-04-06 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:36:06 - End Time 2025-04-06 17:36:06 [2025-04-06 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849093', 'tblTempUsageDetail_20' ) start [2025-04-06 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849093', 'tblTempUsageDetail_20' ) end [2025-04-06 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849093', 'tblTempVendorCDR_20' ) start [2025-04-06 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849093', 'tblTempVendorCDR_20' ) end [2025-04-06 17:36:19] Production.INFO: ProcessCDR(1,14849093,1,1,2) [2025-04-06 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849093', 'tblTempUsageDetail_20' ) start [2025-04-06 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849093', 'tblTempUsageDetail_20' ) end [2025-04-06 17:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:36:22] Production.INFO: ==16843== Releasing lock... [2025-04-06 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:36:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:37:05 [end_date_ymd] => 2025-04-06 17:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:37:05' and `end` < '2025-04-06 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-04-06 17:37:18] Production.INFO: count ==1390 [2025-04-06 17:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:37:05 - End Time 2025-04-06 17:37:05 [2025-04-06 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849098', 'tblTempUsageDetail_20' ) start [2025-04-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849098', 'tblTempUsageDetail_20' ) end [2025-04-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849098', 'tblTempVendorCDR_20' ) start [2025-04-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849098', 'tblTempVendorCDR_20' ) end [2025-04-06 17:37:19] Production.INFO: ProcessCDR(1,14849098,1,1,2) [2025-04-06 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849098', 'tblTempUsageDetail_20' ) start [2025-04-06 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849098', 'tblTempUsageDetail_20' ) end [2025-04-06 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:37:22] Production.INFO: ==16931== Releasing lock... [2025-04-06 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:37:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:38:06 [end_date_ymd] => 2025-04-06 17:38:06 [RateCDR] => 1 ) [2025-04-06 17:38: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-04-06 14:38:06' and `end` < '2025-04-06 17:38: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-04-06 17:38:19] Production.INFO: count ==1390 [2025-04-06 17:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:38:06 - End Time 2025-04-06 17:38:06 [2025-04-06 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849103', 'tblTempUsageDetail_20' ) start [2025-04-06 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849103', 'tblTempUsageDetail_20' ) end [2025-04-06 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849103', 'tblTempVendorCDR_20' ) start [2025-04-06 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849103', 'tblTempVendorCDR_20' ) end [2025-04-06 17:38:19] Production.INFO: ProcessCDR(1,14849103,1,1,2) [2025-04-06 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849103', 'tblTempUsageDetail_20' ) start [2025-04-06 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849103', 'tblTempUsageDetail_20' ) end [2025-04-06 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:38:23] Production.INFO: ==17017== Releasing lock... [2025-04-06 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:38:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:39:05 [end_date_ymd] => 2025-04-06 17:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:39:05' and `end` < '2025-04-06 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-04-06 17:39:18] Production.INFO: count ==1392 [2025-04-06 17:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:39:05 - End Time 2025-04-06 17:39:05 [2025-04-06 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849108', 'tblTempUsageDetail_20' ) start [2025-04-06 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849108', 'tblTempUsageDetail_20' ) end [2025-04-06 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849108', 'tblTempVendorCDR_20' ) start [2025-04-06 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849108', 'tblTempVendorCDR_20' ) end [2025-04-06 17:39:19] Production.INFO: ProcessCDR(1,14849108,1,1,2) [2025-04-06 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849108', 'tblTempUsageDetail_20' ) start [2025-04-06 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849108', 'tblTempUsageDetail_20' ) end [2025-04-06 17:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:39:22] Production.INFO: ==17104== Releasing lock... [2025-04-06 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:39:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:40:07 [end_date_ymd] => 2025-04-06 17:40:07 [RateCDR] => 1 ) [2025-04-06 17:40: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-04-06 14:40:07' and `end` < '2025-04-06 17:40: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-04-06 17:40:20] Production.INFO: count ==1396 [2025-04-06 17:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 14:40:07 - End Time 2025-04-06 17:40:07 [2025-04-06 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849114', 'tblTempUsageDetail_20' ) start [2025-04-06 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849114', 'tblTempUsageDetail_20' ) end [2025-04-06 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849114', 'tblTempVendorCDR_20' ) start [2025-04-06 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849114', 'tblTempVendorCDR_20' ) end [2025-04-06 17:40:20] Production.INFO: ProcessCDR(1,14849114,1,1,2) [2025-04-06 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849114', 'tblTempUsageDetail_20' ) start [2025-04-06 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849114', 'tblTempUsageDetail_20' ) end [2025-04-06 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:40:24] Production.INFO: ==17197== Releasing lock... [2025-04-06 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:40:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-06 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:41:06 [end_date_ymd] => 2025-04-06 17:41:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:41:06' and `end` < '2025-04-06 17: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-04-06 17:41:19] Production.INFO: count ==1406 [2025-04-06 17:41:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:41:06 - End Time 2025-04-06 17:41:06 [2025-04-06 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849119', 'tblTempUsageDetail_20' ) start [2025-04-06 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849119', 'tblTempUsageDetail_20' ) end [2025-04-06 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849119', 'tblTempVendorCDR_20' ) start [2025-04-06 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849119', 'tblTempVendorCDR_20' ) end [2025-04-06 17:41:19] Production.INFO: ProcessCDR(1,14849119,1,1,2) [2025-04-06 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849119', 'tblTempUsageDetail_20' ) start [2025-04-06 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849119', 'tblTempUsageDetail_20' ) end [2025-04-06 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:41:22] Production.INFO: ==17285== Releasing lock... [2025-04-06 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:42:05 [end_date_ymd] => 2025-04-06 17:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:42:05' and `end` < '2025-04-06 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-04-06 17:42:18] Production.INFO: count ==1407 [2025-04-06 17:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:42:05 - End Time 2025-04-06 17:42:05 [2025-04-06 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849124', 'tblTempUsageDetail_20' ) start [2025-04-06 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849124', 'tblTempUsageDetail_20' ) end [2025-04-06 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849124', 'tblTempVendorCDR_20' ) start [2025-04-06 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849124', 'tblTempVendorCDR_20' ) end [2025-04-06 17:42:19] Production.INFO: ProcessCDR(1,14849124,1,1,2) [2025-04-06 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849124', 'tblTempUsageDetail_20' ) start [2025-04-06 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849124', 'tblTempUsageDetail_20' ) end [2025-04-06 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:42:24] Production.INFO: ==17413== Releasing lock... [2025-04-06 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:42:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:43:05 [end_date_ymd] => 2025-04-06 17:43:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:43:05' and `end` < '2025-04-06 17: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-04-06 17:43:18] Production.INFO: count ==1406 [2025-04-06 17:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:43:05 - End Time 2025-04-06 17:43:05 [2025-04-06 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849129', 'tblTempUsageDetail_20' ) start [2025-04-06 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849129', 'tblTempUsageDetail_20' ) end [2025-04-06 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849129', 'tblTempVendorCDR_20' ) start [2025-04-06 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849129', 'tblTempVendorCDR_20' ) end [2025-04-06 17:43:18] Production.INFO: ProcessCDR(1,14849129,1,1,2) [2025-04-06 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849129', 'tblTempUsageDetail_20' ) start [2025-04-06 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849129', 'tblTempUsageDetail_20' ) end [2025-04-06 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:43:22] Production.INFO: ==17504== Releasing lock... [2025-04-06 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:43:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:44:06 [end_date_ymd] => 2025-04-06 17:44:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:44:06' and `end` < '2025-04-06 17: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-04-06 17:44:19] Production.INFO: count ==1406 [2025-04-06 17:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:44:06 - End Time 2025-04-06 17:44:06 [2025-04-06 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849134', 'tblTempUsageDetail_20' ) start [2025-04-06 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849134', 'tblTempUsageDetail_20' ) end [2025-04-06 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849134', 'tblTempVendorCDR_20' ) start [2025-04-06 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849134', 'tblTempVendorCDR_20' ) end [2025-04-06 17:44:19] Production.INFO: ProcessCDR(1,14849134,1,1,2) [2025-04-06 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849134', 'tblTempUsageDetail_20' ) start [2025-04-06 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849134', 'tblTempUsageDetail_20' ) end [2025-04-06 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:44:23] Production.INFO: ==17593== Releasing lock... [2025-04-06 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:44:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:45:05 [end_date_ymd] => 2025-04-06 17:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:45:05' and `end` < '2025-04-06 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-04-06 17:45:18] Production.INFO: count ==1390 [2025-04-06 17:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:45:05 - End Time 2025-04-06 17:45:05 [2025-04-06 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849139', 'tblTempUsageDetail_20' ) start [2025-04-06 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849139', 'tblTempUsageDetail_20' ) end [2025-04-06 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849139', 'tblTempVendorCDR_20' ) start [2025-04-06 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849139', 'tblTempVendorCDR_20' ) end [2025-04-06 17:45:18] Production.INFO: ProcessCDR(1,14849139,1,1,2) [2025-04-06 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849139', 'tblTempUsageDetail_20' ) start [2025-04-06 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849139', 'tblTempUsageDetail_20' ) end [2025-04-06 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:45:22] Production.INFO: ==17678== Releasing lock... [2025-04-06 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:45:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:46:05 [end_date_ymd] => 2025-04-06 17:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:46:05' and `end` < '2025-04-06 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-04-06 17:46:18] Production.INFO: count ==1392 [2025-04-06 17:46:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:46:05 - End Time 2025-04-06 17:46:05 [2025-04-06 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849144', 'tblTempUsageDetail_20' ) start [2025-04-06 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849144', 'tblTempUsageDetail_20' ) end [2025-04-06 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849144', 'tblTempVendorCDR_20' ) start [2025-04-06 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849144', 'tblTempVendorCDR_20' ) end [2025-04-06 17:46:18] Production.INFO: ProcessCDR(1,14849144,1,1,2) [2025-04-06 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849144', 'tblTempUsageDetail_20' ) start [2025-04-06 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849144', 'tblTempUsageDetail_20' ) end [2025-04-06 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:46:24] Production.INFO: ==17772== Releasing lock... [2025-04-06 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:46:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:47:05 [end_date_ymd] => 2025-04-06 17:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:47:05' and `end` < '2025-04-06 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-04-06 17:47:18] Production.INFO: count ==1388 [2025-04-06 17:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:47:05 - End Time 2025-04-06 17:47:05 [2025-04-06 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849149', 'tblTempUsageDetail_20' ) start [2025-04-06 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849149', 'tblTempUsageDetail_20' ) end [2025-04-06 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849149', 'tblTempVendorCDR_20' ) start [2025-04-06 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849149', 'tblTempVendorCDR_20' ) end [2025-04-06 17:47:18] Production.INFO: ProcessCDR(1,14849149,1,1,2) [2025-04-06 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849149', 'tblTempUsageDetail_20' ) start [2025-04-06 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849149', 'tblTempUsageDetail_20' ) end [2025-04-06 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:47:22] Production.INFO: ==17865== Releasing lock... [2025-04-06 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:47:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:48:05 [end_date_ymd] => 2025-04-06 17:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:48:05' and `end` < '2025-04-06 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-04-06 17:48:18] Production.INFO: count ==1388 [2025-04-06 17:48:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:48:05 - End Time 2025-04-06 17:48:05 [2025-04-06 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849154', 'tblTempUsageDetail_20' ) start [2025-04-06 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849154', 'tblTempUsageDetail_20' ) end [2025-04-06 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849154', 'tblTempVendorCDR_20' ) start [2025-04-06 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849154', 'tblTempVendorCDR_20' ) end [2025-04-06 17:48:18] Production.INFO: ProcessCDR(1,14849154,1,1,2) [2025-04-06 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849154', 'tblTempUsageDetail_20' ) start [2025-04-06 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849154', 'tblTempUsageDetail_20' ) end [2025-04-06 17:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:48:22] Production.INFO: ==17959== Releasing lock... [2025-04-06 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:48:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:49:05 [end_date_ymd] => 2025-04-06 17:49:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:49:05' and `end` < '2025-04-06 17: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-04-06 17:49:18] Production.INFO: count ==1388 [2025-04-06 17:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:49:05 - End Time 2025-04-06 17:49:05 [2025-04-06 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849159', 'tblTempUsageDetail_20' ) start [2025-04-06 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849159', 'tblTempUsageDetail_20' ) end [2025-04-06 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849159', 'tblTempVendorCDR_20' ) start [2025-04-06 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849159', 'tblTempVendorCDR_20' ) end [2025-04-06 17:49:18] Production.INFO: ProcessCDR(1,14849159,1,1,2) [2025-04-06 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849159', 'tblTempUsageDetail_20' ) start [2025-04-06 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849159', 'tblTempUsageDetail_20' ) end [2025-04-06 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:49:22] Production.INFO: ==18046== Releasing lock... [2025-04-06 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:49:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:50:06 [end_date_ymd] => 2025-04-06 17:50:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:50:06' and `end` < '2025-04-06 17: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-04-06 17:50:19] Production.INFO: count ==1396 [2025-04-06 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 14:50:06 - End Time 2025-04-06 17:50:06 [2025-04-06 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849165', 'tblTempUsageDetail_20' ) start [2025-04-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849165', 'tblTempUsageDetail_20' ) end [2025-04-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849165', 'tblTempVendorCDR_20' ) start [2025-04-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849165', 'tblTempVendorCDR_20' ) end [2025-04-06 17:50:20] Production.INFO: ProcessCDR(1,14849165,1,1,2) [2025-04-06 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849165', 'tblTempUsageDetail_20' ) start [2025-04-06 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849165', 'tblTempUsageDetail_20' ) end [2025-04-06 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:50:24] Production.INFO: ==18140== Releasing lock... [2025-04-06 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:50:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:51:05 [end_date_ymd] => 2025-04-06 17:51:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:51:05' and `end` < '2025-04-06 17: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-04-06 17:51:18] Production.INFO: count ==1404 [2025-04-06 17:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:51:05 - End Time 2025-04-06 17:51:05 [2025-04-06 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849170', 'tblTempUsageDetail_20' ) start [2025-04-06 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849170', 'tblTempUsageDetail_20' ) end [2025-04-06 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849170', 'tblTempVendorCDR_20' ) start [2025-04-06 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849170', 'tblTempVendorCDR_20' ) end [2025-04-06 17:51:18] Production.INFO: ProcessCDR(1,14849170,1,1,2) [2025-04-06 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849170', 'tblTempUsageDetail_20' ) start [2025-04-06 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849170', 'tblTempUsageDetail_20' ) end [2025-04-06 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:51:23] Production.INFO: ==18241== Releasing lock... [2025-04-06 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:51:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:52:06 [end_date_ymd] => 2025-04-06 17:52:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:52:06' and `end` < '2025-04-06 17: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-04-06 17:52:19] Production.INFO: count ==1406 [2025-04-06 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:52:06 - End Time 2025-04-06 17:52:06 [2025-04-06 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849175', 'tblTempUsageDetail_20' ) start [2025-04-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849175', 'tblTempUsageDetail_20' ) end [2025-04-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849175', 'tblTempVendorCDR_20' ) start [2025-04-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849175', 'tblTempVendorCDR_20' ) end [2025-04-06 17:52:19] Production.INFO: ProcessCDR(1,14849175,1,1,2) [2025-04-06 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849175', 'tblTempUsageDetail_20' ) start [2025-04-06 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849175', 'tblTempUsageDetail_20' ) end [2025-04-06 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:52:23] Production.INFO: ==18332== Releasing lock... [2025-04-06 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:53:05 [end_date_ymd] => 2025-04-06 17:53:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:53:05' and `end` < '2025-04-06 17: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-04-06 17:53:18] Production.INFO: count ==1408 [2025-04-06 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:53:05 - End Time 2025-04-06 17:53:05 [2025-04-06 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849180', 'tblTempUsageDetail_20' ) start [2025-04-06 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849180', 'tblTempUsageDetail_20' ) end [2025-04-06 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849180', 'tblTempVendorCDR_20' ) start [2025-04-06 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849180', 'tblTempVendorCDR_20' ) end [2025-04-06 17:53:19] Production.INFO: ProcessCDR(1,14849180,1,1,2) [2025-04-06 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849180', 'tblTempUsageDetail_20' ) start [2025-04-06 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849180', 'tblTempUsageDetail_20' ) end [2025-04-06 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:53:22] Production.INFO: ==18419== Releasing lock... [2025-04-06 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:53:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:54:05 [end_date_ymd] => 2025-04-06 17:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:54:05' and `end` < '2025-04-06 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-04-06 17:54:18] Production.INFO: count ==1411 [2025-04-06 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:54:05 - End Time 2025-04-06 17:54:05 [2025-04-06 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849185', 'tblTempUsageDetail_20' ) start [2025-04-06 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849185', 'tblTempUsageDetail_20' ) end [2025-04-06 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849185', 'tblTempVendorCDR_20' ) start [2025-04-06 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849185', 'tblTempVendorCDR_20' ) end [2025-04-06 17:54:19] Production.INFO: ProcessCDR(1,14849185,1,1,2) [2025-04-06 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849185', 'tblTempUsageDetail_20' ) start [2025-04-06 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849185', 'tblTempUsageDetail_20' ) end [2025-04-06 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:54:22] Production.INFO: ==18509== Releasing lock... [2025-04-06 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:54:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:55:06 [end_date_ymd] => 2025-04-06 17:55:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:55:06' and `end` < '2025-04-06 17: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-04-06 17:55:19] Production.INFO: count ==1417 [2025-04-06 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:55:06 - End Time 2025-04-06 17:55:06 [2025-04-06 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849190', 'tblTempUsageDetail_20' ) start [2025-04-06 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849190', 'tblTempUsageDetail_20' ) end [2025-04-06 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849190', 'tblTempVendorCDR_20' ) start [2025-04-06 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849190', 'tblTempVendorCDR_20' ) end [2025-04-06 17:55:19] Production.INFO: ProcessCDR(1,14849190,1,1,2) [2025-04-06 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849190', 'tblTempUsageDetail_20' ) start [2025-04-06 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849190', 'tblTempUsageDetail_20' ) end [2025-04-06 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:55:22] Production.INFO: ==18598== Releasing lock... [2025-04-06 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:55:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:56:05 [end_date_ymd] => 2025-04-06 17:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:56:05' and `end` < '2025-04-06 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-04-06 17:56:18] Production.INFO: count ==1409 [2025-04-06 17:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:56:05 - End Time 2025-04-06 17:56:05 [2025-04-06 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849195', 'tblTempUsageDetail_20' ) start [2025-04-06 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849195', 'tblTempUsageDetail_20' ) end [2025-04-06 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849195', 'tblTempVendorCDR_20' ) start [2025-04-06 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849195', 'tblTempVendorCDR_20' ) end [2025-04-06 17:56:18] Production.INFO: ProcessCDR(1,14849195,1,1,2) [2025-04-06 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849195', 'tblTempUsageDetail_20' ) start [2025-04-06 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849195', 'tblTempUsageDetail_20' ) end [2025-04-06 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:56:22] Production.INFO: ==18689== Releasing lock... [2025-04-06 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:56:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:57:06 [end_date_ymd] => 2025-04-06 17:57:06 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:57:06' and `end` < '2025-04-06 17: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-04-06 17:57:19] Production.INFO: count ==1407 [2025-04-06 17:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:57:06 - End Time 2025-04-06 17:57:06 [2025-04-06 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849200', 'tblTempUsageDetail_20' ) start [2025-04-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849200', 'tblTempUsageDetail_20' ) end [2025-04-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849200', 'tblTempVendorCDR_20' ) start [2025-04-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849200', 'tblTempVendorCDR_20' ) end [2025-04-06 17:57:19] Production.INFO: ProcessCDR(1,14849200,1,1,2) [2025-04-06 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849200', 'tblTempUsageDetail_20' ) start [2025-04-06 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849200', 'tblTempUsageDetail_20' ) end [2025-04-06 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:57:23] Production.INFO: ==18776== Releasing lock... [2025-04-06 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:57:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:58:05 [end_date_ymd] => 2025-04-06 17:58:05 [RateCDR] => 1 ) [2025-04-06 17: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-04-06 14:58:05' and `end` < '2025-04-06 17: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-04-06 17:58:18] Production.INFO: count ==1438 [2025-04-06 17:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 14:58:05 - End Time 2025-04-06 17:58:05 [2025-04-06 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849205', 'tblTempUsageDetail_20' ) start [2025-04-06 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849205', 'tblTempUsageDetail_20' ) end [2025-04-06 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849205', 'tblTempVendorCDR_20' ) start [2025-04-06 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849205', 'tblTempVendorCDR_20' ) end [2025-04-06 17:58:19] Production.INFO: ProcessCDR(1,14849205,1,1,2) [2025-04-06 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849205', 'tblTempUsageDetail_20' ) start [2025-04-06 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849205', 'tblTempUsageDetail_20' ) end [2025-04-06 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:58:22] Production.INFO: ==18902== Releasing lock... [2025-04-06 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:58:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 14:59:05 [end_date_ymd] => 2025-04-06 17:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 14:59:05' and `end` < '2025-04-06 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-04-06 17:59:18] Production.INFO: count ==1478 [2025-04-06 17:59:18] Production.ERROR: pbx CDR StartTime 2025-04-06 14:59:05 - End Time 2025-04-06 17:59:05 [2025-04-06 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849210', 'tblTempUsageDetail_20' ) start [2025-04-06 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849210', 'tblTempUsageDetail_20' ) end [2025-04-06 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849210', 'tblTempVendorCDR_20' ) start [2025-04-06 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849210', 'tblTempVendorCDR_20' ) end [2025-04-06 17:59:19] Production.INFO: ProcessCDR(1,14849210,1,1,2) [2025-04-06 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849210', 'tblTempUsageDetail_20' ) start [2025-04-06 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849210', 'tblTempUsageDetail_20' ) end [2025-04-06 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 17:59:22] Production.INFO: ==18988== Releasing lock... [2025-04-06 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 17:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:00:06 [end_date_ymd] => 2025-04-06 18:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:00:06' and `end` < '2025-04-06 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-04-06 18:00:19] Production.INFO: count ==1526 [2025-04-06 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:00:06 - End Time 2025-04-06 18:00:06 [2025-04-06 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849216', 'tblTempUsageDetail_20' ) start [2025-04-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849216', 'tblTempUsageDetail_20' ) end [2025-04-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849216', 'tblTempVendorCDR_20' ) start [2025-04-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849216', 'tblTempVendorCDR_20' ) end [2025-04-06 18:00:20] Production.INFO: ProcessCDR(1,14849216,1,1,2) [2025-04-06 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849216', 'tblTempUsageDetail_20' ) start [2025-04-06 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849216', 'tblTempUsageDetail_20' ) end [2025-04-06 18:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:00:23] Production.INFO: ==19074== Releasing lock... [2025-04-06 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:00:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-06 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:01:05 [end_date_ymd] => 2025-04-06 18:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:01:05' and `end` < '2025-04-06 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-04-06 18:01:18] Production.INFO: count ==1554 [2025-04-06 18:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 15:01:05 - End Time 2025-04-06 18:01:05 [2025-04-06 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849221', 'tblTempUsageDetail_20' ) start [2025-04-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849221', 'tblTempUsageDetail_20' ) end [2025-04-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849221', 'tblTempVendorCDR_20' ) start [2025-04-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849221', 'tblTempVendorCDR_20' ) end [2025-04-06 18:01:19] Production.INFO: ProcessCDR(1,14849221,1,1,2) [2025-04-06 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849221', 'tblTempUsageDetail_20' ) start [2025-04-06 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849221', 'tblTempUsageDetail_20' ) end [2025-04-06 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:01:22] Production.INFO: ==19178== Releasing lock... [2025-04-06 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:01:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:02:06 [end_date_ymd] => 2025-04-06 18:02:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:02:06' and `end` < '2025-04-06 18: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-04-06 18:02:19] Production.INFO: count ==1804 [2025-04-06 18:02:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:02:06 - End Time 2025-04-06 18:02:06 [2025-04-06 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849226', 'tblTempUsageDetail_20' ) start [2025-04-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849226', 'tblTempUsageDetail_20' ) end [2025-04-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849226', 'tblTempVendorCDR_20' ) start [2025-04-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849226', 'tblTempVendorCDR_20' ) end [2025-04-06 18:02:20] Production.INFO: ProcessCDR(1,14849226,1,1,2) [2025-04-06 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849226', 'tblTempUsageDetail_20' ) start [2025-04-06 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849226', 'tblTempUsageDetail_20' ) end [2025-04-06 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:02:23] Production.INFO: ==19265== Releasing lock... [2025-04-06 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:03:06 [end_date_ymd] => 2025-04-06 18:03:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:03:06' and `end` < '2025-04-06 18: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-04-06 18:03:19] Production.INFO: count ==1813 [2025-04-06 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:03:06 - End Time 2025-04-06 18:03:06 [2025-04-06 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849231', 'tblTempUsageDetail_20' ) start [2025-04-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849231', 'tblTempUsageDetail_20' ) end [2025-04-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849231', 'tblTempVendorCDR_20' ) start [2025-04-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849231', 'tblTempVendorCDR_20' ) end [2025-04-06 18:03:20] Production.INFO: ProcessCDR(1,14849231,1,1,2) [2025-04-06 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849231', 'tblTempUsageDetail_20' ) start [2025-04-06 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849231', 'tblTempUsageDetail_20' ) end [2025-04-06 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:03:25] Production.INFO: ==19350== Releasing lock... [2025-04-06 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:03:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:04:05 [end_date_ymd] => 2025-04-06 18:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:04:05' and `end` < '2025-04-06 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-04-06 18:04:18] Production.INFO: count ==1848 [2025-04-06 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:04:05 - End Time 2025-04-06 18:04:05 [2025-04-06 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849236', 'tblTempUsageDetail_20' ) start [2025-04-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849236', 'tblTempUsageDetail_20' ) end [2025-04-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849236', 'tblTempVendorCDR_20' ) start [2025-04-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849236', 'tblTempVendorCDR_20' ) end [2025-04-06 18:04:19] Production.INFO: ProcessCDR(1,14849236,1,1,2) [2025-04-06 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849236', 'tblTempUsageDetail_20' ) start [2025-04-06 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849236', 'tblTempUsageDetail_20' ) end [2025-04-06 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:04:22] Production.INFO: ==19436== Releasing lock... [2025-04-06 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:04:22] Production.INFO: 42 MB #Memory Used# [2025-04-06 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:05:06 [end_date_ymd] => 2025-04-06 18:05:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:05:06' and `end` < '2025-04-06 18: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-04-06 18:05:19] Production.INFO: count ==1905 [2025-04-06 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:05:06 - End Time 2025-04-06 18:05:06 [2025-04-06 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849241', 'tblTempUsageDetail_20' ) start [2025-04-06 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849241', 'tblTempUsageDetail_20' ) end [2025-04-06 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849241', 'tblTempVendorCDR_20' ) start [2025-04-06 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849241', 'tblTempVendorCDR_20' ) end [2025-04-06 18:05:19] Production.INFO: ProcessCDR(1,14849241,1,1,2) [2025-04-06 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849241', 'tblTempUsageDetail_20' ) start [2025-04-06 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849241', 'tblTempUsageDetail_20' ) end [2025-04-06 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:05:23] Production.INFO: ==19516== Releasing lock... [2025-04-06 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:05:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-06 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:06:05 [end_date_ymd] => 2025-04-06 18:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:06:05' and `end` < '2025-04-06 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-04-06 18:06:18] Production.INFO: count ==1885 [2025-04-06 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:06:05 - End Time 2025-04-06 18:06:05 [2025-04-06 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849246', 'tblTempUsageDetail_20' ) start [2025-04-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849246', 'tblTempUsageDetail_20' ) end [2025-04-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849246', 'tblTempVendorCDR_20' ) start [2025-04-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849246', 'tblTempVendorCDR_20' ) end [2025-04-06 18:06:19] Production.INFO: ProcessCDR(1,14849246,1,1,2) [2025-04-06 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849246', 'tblTempUsageDetail_20' ) start [2025-04-06 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849246', 'tblTempUsageDetail_20' ) end [2025-04-06 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:06:24] Production.INFO: ==19605== Releasing lock... [2025-04-06 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:06:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-06 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:07:05 [end_date_ymd] => 2025-04-06 18:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:07:05' and `end` < '2025-04-06 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-04-06 18:07:18] Production.INFO: count ==1907 [2025-04-06 18:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:07:05 - End Time 2025-04-06 18:07:05 [2025-04-06 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849251', 'tblTempUsageDetail_20' ) start [2025-04-06 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849251', 'tblTempUsageDetail_20' ) end [2025-04-06 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849251', 'tblTempVendorCDR_20' ) start [2025-04-06 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849251', 'tblTempVendorCDR_20' ) end [2025-04-06 18:07:19] Production.INFO: ProcessCDR(1,14849251,1,1,2) [2025-04-06 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849251', 'tblTempUsageDetail_20' ) start [2025-04-06 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849251', 'tblTempUsageDetail_20' ) end [2025-04-06 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:07:24] Production.INFO: ==19691== Releasing lock... [2025-04-06 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:07:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-06 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:08:05 [end_date_ymd] => 2025-04-06 18:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:08:05' and `end` < '2025-04-06 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-04-06 18:08:18] Production.INFO: count ==1948 [2025-04-06 18:08:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:08:05 - End Time 2025-04-06 18:08:05 [2025-04-06 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849256', 'tblTempUsageDetail_20' ) start [2025-04-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849256', 'tblTempUsageDetail_20' ) end [2025-04-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849256', 'tblTempVendorCDR_20' ) start [2025-04-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849256', 'tblTempVendorCDR_20' ) end [2025-04-06 18:08:19] Production.INFO: ProcessCDR(1,14849256,1,1,2) [2025-04-06 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849256', 'tblTempUsageDetail_20' ) start [2025-04-06 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849256', 'tblTempUsageDetail_20' ) end [2025-04-06 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:08:22] Production.INFO: ==19776== Releasing lock... [2025-04-06 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:08:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-06 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:09:06 [end_date_ymd] => 2025-04-06 18:09:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:09:06' and `end` < '2025-04-06 18: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-04-06 18:09:19] Production.INFO: count ==1984 [2025-04-06 18:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:09:06 - End Time 2025-04-06 18:09:06 [2025-04-06 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849261', 'tblTempUsageDetail_20' ) start [2025-04-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849261', 'tblTempUsageDetail_20' ) end [2025-04-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849261', 'tblTempVendorCDR_20' ) start [2025-04-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849261', 'tblTempVendorCDR_20' ) end [2025-04-06 18:09:20] Production.INFO: ProcessCDR(1,14849261,1,1,2) [2025-04-06 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849261', 'tblTempUsageDetail_20' ) start [2025-04-06 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849261', 'tblTempUsageDetail_20' ) end [2025-04-06 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:09:23] Production.INFO: ==19860== Releasing lock... [2025-04-06 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:09:23] Production.INFO: 43 MB #Memory Used# [2025-04-06 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:10:06 [end_date_ymd] => 2025-04-06 18:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:10:06' and `end` < '2025-04-06 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-04-06 18:10:19] Production.INFO: count ==2020 [2025-04-06 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:10:06 - End Time 2025-04-06 18:10:06 [2025-04-06 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849267', 'tblTempUsageDetail_20' ) start [2025-04-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849267', 'tblTempUsageDetail_20' ) end [2025-04-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849267', 'tblTempVendorCDR_20' ) start [2025-04-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849267', 'tblTempVendorCDR_20' ) end [2025-04-06 18:10:20] Production.INFO: ProcessCDR(1,14849267,1,1,2) [2025-04-06 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849267', 'tblTempUsageDetail_20' ) start [2025-04-06 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849267', 'tblTempUsageDetail_20' ) end [2025-04-06 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:10:25] Production.INFO: ==19944== Releasing lock... [2025-04-06 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:10:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-06 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:11:05 [end_date_ymd] => 2025-04-06 18:11:05 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:11:05' and `end` < '2025-04-06 18: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-04-06 18:11:18] Production.INFO: count ==2106 [2025-04-06 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:11:05 - End Time 2025-04-06 18:11:05 [2025-04-06 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849272', 'tblTempUsageDetail_20' ) start [2025-04-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849272', 'tblTempUsageDetail_20' ) end [2025-04-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849272', 'tblTempVendorCDR_20' ) start [2025-04-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849272', 'tblTempVendorCDR_20' ) end [2025-04-06 18:11:19] Production.INFO: ProcessCDR(1,14849272,1,1,2) [2025-04-06 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849272', 'tblTempUsageDetail_20' ) start [2025-04-06 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849272', 'tblTempUsageDetail_20' ) end [2025-04-06 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:11:24] Production.INFO: ==20034== Releasing lock... [2025-04-06 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:11:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-06 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:12:06 [end_date_ymd] => 2025-04-06 18:12:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:12:06' and `end` < '2025-04-06 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-04-06 18:12:19] Production.INFO: count ==2175 [2025-04-06 18:12:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:12:06 - End Time 2025-04-06 18:12:06 [2025-04-06 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849277', 'tblTempUsageDetail_20' ) start [2025-04-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849277', 'tblTempUsageDetail_20' ) end [2025-04-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849277', 'tblTempVendorCDR_20' ) start [2025-04-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849277', 'tblTempVendorCDR_20' ) end [2025-04-06 18:12:20] Production.INFO: ProcessCDR(1,14849277,1,1,2) [2025-04-06 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849277', 'tblTempUsageDetail_20' ) start [2025-04-06 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849277', 'tblTempUsageDetail_20' ) end [2025-04-06 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:12:25] Production.INFO: ==20108== Releasing lock... [2025-04-06 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:12:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-06 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:13:06 [end_date_ymd] => 2025-04-06 18:13:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:13:06' and `end` < '2025-04-06 18: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-04-06 18:13:19] Production.INFO: count ==2305 [2025-04-06 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:13:06 - End Time 2025-04-06 18:13:06 [2025-04-06 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849282', 'tblTempUsageDetail_20' ) start [2025-04-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849282', 'tblTempUsageDetail_20' ) end [2025-04-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849282', 'tblTempVendorCDR_20' ) start [2025-04-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849282', 'tblTempVendorCDR_20' ) end [2025-04-06 18:13:20] Production.INFO: ProcessCDR(1,14849282,1,1,2) [2025-04-06 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849282', 'tblTempUsageDetail_20' ) start [2025-04-06 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849282', 'tblTempUsageDetail_20' ) end [2025-04-06 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:13:26] Production.INFO: ==20226== Releasing lock... [2025-04-06 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:13:26] Production.INFO: 45.25 MB #Memory Used# [2025-04-06 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:14:06 [end_date_ymd] => 2025-04-06 18:14:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:14:06' and `end` < '2025-04-06 18: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-04-06 18:14:19] Production.INFO: count ==2411 [2025-04-06 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:14:06 - End Time 2025-04-06 18:14:06 [2025-04-06 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849287', 'tblTempUsageDetail_20' ) start [2025-04-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849287', 'tblTempUsageDetail_20' ) end [2025-04-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849287', 'tblTempVendorCDR_20' ) start [2025-04-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849287', 'tblTempVendorCDR_20' ) end [2025-04-06 18:14:20] Production.INFO: ProcessCDR(1,14849287,1,1,2) [2025-04-06 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849287', 'tblTempUsageDetail_20' ) start [2025-04-06 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849287', 'tblTempUsageDetail_20' ) end [2025-04-06 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:14:25] Production.INFO: ==20298== Releasing lock... [2025-04-06 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:14:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-06 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:15:05 [end_date_ymd] => 2025-04-06 18:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:15:05' and `end` < '2025-04-06 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-04-06 18:15:18] Production.INFO: count ==2452 [2025-04-06 18:15:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:15:05 - End Time 2025-04-06 18:15:05 [2025-04-06 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849292', 'tblTempUsageDetail_20' ) start [2025-04-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849292', 'tblTempUsageDetail_20' ) end [2025-04-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849292', 'tblTempVendorCDR_20' ) start [2025-04-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849292', 'tblTempVendorCDR_20' ) end [2025-04-06 18:15:19] Production.INFO: ProcessCDR(1,14849292,1,1,2) [2025-04-06 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849292', 'tblTempUsageDetail_20' ) start [2025-04-06 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849292', 'tblTempUsageDetail_20' ) end [2025-04-06 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:15:24] Production.INFO: ==20373== Releasing lock... [2025-04-06 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:15:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-06 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:16:06 [end_date_ymd] => 2025-04-06 18:16:06 [RateCDR] => 1 ) [2025-04-06 18:16: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-04-06 15:16:06' and `end` < '2025-04-06 18:16: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-04-06 18:16:19] Production.INFO: count ==2490 [2025-04-06 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:16:06 - End Time 2025-04-06 18:16:06 [2025-04-06 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849297', 'tblTempUsageDetail_20' ) start [2025-04-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849297', 'tblTempUsageDetail_20' ) end [2025-04-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849297', 'tblTempVendorCDR_20' ) start [2025-04-06 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849297', 'tblTempVendorCDR_20' ) end [2025-04-06 18:16:20] Production.INFO: ProcessCDR(1,14849297,1,1,2) [2025-04-06 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849297', 'tblTempUsageDetail_20' ) start [2025-04-06 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849297', 'tblTempUsageDetail_20' ) end [2025-04-06 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:16:25] Production.INFO: ==20450== Releasing lock... [2025-04-06 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:16:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-06 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:17:05 [end_date_ymd] => 2025-04-06 18:17:05 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:17:05' and `end` < '2025-04-06 18: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-04-06 18:17:18] Production.INFO: count ==2944 [2025-04-06 18:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:17:05 - End Time 2025-04-06 18:17:05 [2025-04-06 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849302', 'tblTempUsageDetail_20' ) start [2025-04-06 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849302', 'tblTempUsageDetail_20' ) end [2025-04-06 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849302', 'tblTempVendorCDR_20' ) start [2025-04-06 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849302', 'tblTempVendorCDR_20' ) end [2025-04-06 18:17:19] Production.INFO: ProcessCDR(1,14849302,1,1,2) [2025-04-06 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849302', 'tblTempUsageDetail_20' ) start [2025-04-06 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849302', 'tblTempUsageDetail_20' ) end [2025-04-06 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:17:25] Production.INFO: ==20522== Releasing lock... [2025-04-06 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:17:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-06 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:18:06 [end_date_ymd] => 2025-04-06 18:18:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:18:06' and `end` < '2025-04-06 18: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-04-06 18:18:19] Production.INFO: count ==2942 [2025-04-06 18:18:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:18:06 - End Time 2025-04-06 18:18:06 [2025-04-06 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849307', 'tblTempUsageDetail_20' ) start [2025-04-06 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849307', 'tblTempUsageDetail_20' ) end [2025-04-06 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849307', 'tblTempVendorCDR_20' ) start [2025-04-06 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849307', 'tblTempVendorCDR_20' ) end [2025-04-06 18:18:20] Production.INFO: ProcessCDR(1,14849307,1,1,2) [2025-04-06 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849307', 'tblTempUsageDetail_20' ) start [2025-04-06 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849307', 'tblTempUsageDetail_20' ) end [2025-04-06 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:18:23] Production.INFO: ==20597== Releasing lock... [2025-04-06 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:18:23] Production.INFO: 50 MB #Memory Used# [2025-04-06 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:19:05 [end_date_ymd] => 2025-04-06 18:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:19:05' and `end` < '2025-04-06 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-04-06 18:19:18] Production.INFO: count ==2942 [2025-04-06 18:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:19:05 - End Time 2025-04-06 18:19:05 [2025-04-06 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849312', 'tblTempUsageDetail_20' ) start [2025-04-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849312', 'tblTempUsageDetail_20' ) end [2025-04-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849312', 'tblTempVendorCDR_20' ) start [2025-04-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849312', 'tblTempVendorCDR_20' ) end [2025-04-06 18:19:19] Production.INFO: ProcessCDR(1,14849312,1,1,2) [2025-04-06 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849312', 'tblTempUsageDetail_20' ) start [2025-04-06 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849312', 'tblTempUsageDetail_20' ) end [2025-04-06 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:19:25] Production.INFO: ==20670== Releasing lock... [2025-04-06 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:19:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-06 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:20:06 [end_date_ymd] => 2025-04-06 18:20:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:20:06' and `end` < '2025-04-06 18: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-04-06 18:20:19] Production.INFO: count ==2943 [2025-04-06 18:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:20:06 - End Time 2025-04-06 18:20:06 [2025-04-06 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849318', 'tblTempUsageDetail_20' ) start [2025-04-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849318', 'tblTempUsageDetail_20' ) end [2025-04-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849318', 'tblTempVendorCDR_20' ) start [2025-04-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849318', 'tblTempVendorCDR_20' ) end [2025-04-06 18:20:20] Production.INFO: ProcessCDR(1,14849318,1,1,2) [2025-04-06 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849318', 'tblTempUsageDetail_20' ) start [2025-04-06 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849318', 'tblTempUsageDetail_20' ) end [2025-04-06 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:20:24] Production.INFO: ==20748== Releasing lock... [2025-04-06 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:20:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-06 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:21:05 [end_date_ymd] => 2025-04-06 18:21:05 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:21:05' and `end` < '2025-04-06 18: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-04-06 18:21:17] Production.INFO: count ==2934 [2025-04-06 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 15:21:05 - End Time 2025-04-06 18:21:05 [2025-04-06 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849323', 'tblTempUsageDetail_20' ) start [2025-04-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849323', 'tblTempUsageDetail_20' ) end [2025-04-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849323', 'tblTempVendorCDR_20' ) start [2025-04-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849323', 'tblTempVendorCDR_20' ) end [2025-04-06 18:21:19] Production.INFO: ProcessCDR(1,14849323,1,1,2) [2025-04-06 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849323', 'tblTempUsageDetail_20' ) start [2025-04-06 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849323', 'tblTempUsageDetail_20' ) end [2025-04-06 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:21:22] Production.INFO: ==20824== Releasing lock... [2025-04-06 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:21:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-06 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:22:05 [end_date_ymd] => 2025-04-06 18:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:22:05' and `end` < '2025-04-06 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-04-06 18:22:18] Production.INFO: count ==2933 [2025-04-06 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:22:05 - End Time 2025-04-06 18:22:05 [2025-04-06 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849328', 'tblTempUsageDetail_20' ) start [2025-04-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849328', 'tblTempUsageDetail_20' ) end [2025-04-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849328', 'tblTempVendorCDR_20' ) start [2025-04-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849328', 'tblTempVendorCDR_20' ) end [2025-04-06 18:22:20] Production.INFO: ProcessCDR(1,14849328,1,1,2) [2025-04-06 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849328', 'tblTempUsageDetail_20' ) start [2025-04-06 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849328', 'tblTempUsageDetail_20' ) end [2025-04-06 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:22:25] Production.INFO: ==20897== Releasing lock... [2025-04-06 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:22:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-06 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:23:06 [end_date_ymd] => 2025-04-06 18:23:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:23:06' and `end` < '2025-04-06 18: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-04-06 18:23:19] Production.INFO: count ==2940 [2025-04-06 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:23:06 - End Time 2025-04-06 18:23:06 [2025-04-06 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849333', 'tblTempUsageDetail_20' ) start [2025-04-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849333', 'tblTempUsageDetail_20' ) end [2025-04-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849333', 'tblTempVendorCDR_20' ) start [2025-04-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849333', 'tblTempVendorCDR_20' ) end [2025-04-06 18:23:20] Production.INFO: ProcessCDR(1,14849333,1,1,2) [2025-04-06 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849333', 'tblTempUsageDetail_20' ) start [2025-04-06 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849333', 'tblTempUsageDetail_20' ) end [2025-04-06 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:23:24] Production.INFO: ==20971== Releasing lock... [2025-04-06 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:23:24] Production.INFO: 50 MB #Memory Used# [2025-04-06 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:24:06 [end_date_ymd] => 2025-04-06 18:24:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:24:06' and `end` < '2025-04-06 18: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-04-06 18:24:19] Production.INFO: count ==2982 [2025-04-06 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:24:06 - End Time 2025-04-06 18:24:06 [2025-04-06 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849338', 'tblTempUsageDetail_20' ) start [2025-04-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849338', 'tblTempUsageDetail_20' ) end [2025-04-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849338', 'tblTempVendorCDR_20' ) start [2025-04-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849338', 'tblTempVendorCDR_20' ) end [2025-04-06 18:24:20] Production.INFO: ProcessCDR(1,14849338,1,1,2) [2025-04-06 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849338', 'tblTempUsageDetail_20' ) start [2025-04-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849338', 'tblTempUsageDetail_20' ) end [2025-04-06 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:24:25] Production.INFO: ==21046== Releasing lock... [2025-04-06 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:24:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-06 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:25:06 [end_date_ymd] => 2025-04-06 18:25:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:25:06' and `end` < '2025-04-06 18: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-04-06 18:25:19] Production.INFO: count ==3026 [2025-04-06 18:25:27] Production.ERROR: pbx CDR StartTime 2025-04-06 15:25:06 - End Time 2025-04-06 18:25:06 [2025-04-06 18:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849343', 'tblTempUsageDetail_20' ) start [2025-04-06 18:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849343', 'tblTempUsageDetail_20' ) end [2025-04-06 18:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849343', 'tblTempVendorCDR_20' ) start [2025-04-06 18:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849343', 'tblTempVendorCDR_20' ) end [2025-04-06 18:25:33] Production.INFO: ProcessCDR(1,14849343,1,1,2) [2025-04-06 18:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849343', 'tblTempUsageDetail_20' ) start [2025-04-06 18:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849343', 'tblTempUsageDetail_20' ) end [2025-04-06 18:25:40] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:25:40] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:25:44] Production.INFO: ==21121== Releasing lock... [2025-04-06 18:25:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:25:44] Production.INFO: 50.75 MB #Memory Used# [2025-04-06 18:26:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:26:18 [end_date_ymd] => 2025-04-06 18:26:18 [RateCDR] => 1 ) [2025-04-06 18:26: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-04-06 15:26:18' and `end` < '2025-04-06 18:26: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-04-06 18:26:31] Production.INFO: count ==3064 [2025-04-06 18:26:53] Production.ERROR: pbx CDR StartTime 2025-04-06 15:26:18 - End Time 2025-04-06 18:26:18 [2025-04-06 18:26:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849348', 'tblTempUsageDetail_20' ) start [2025-04-06 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849348', 'tblTempUsageDetail_20' ) end [2025-04-06 18:27:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849348', 'tblTempVendorCDR_20' ) start [2025-04-06 18:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849348', 'tblTempVendorCDR_20' ) end [2025-04-06 18:27:16] Production.INFO: ProcessCDR(1,14849348,1,1,2) [2025-04-06 18:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849348', 'tblTempUsageDetail_20' ) start [2025-04-06 18:27:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849348', 'tblTempUsageDetail_20' ) end [2025-04-06 18:27:55] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:27:55] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:28:00] Production.INFO: ==21194== Releasing lock... [2025-04-06 18:28:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:28:00] Production.INFO: 51.25 MB #Memory Used# [2025-04-06 18:28:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:28:18 [end_date_ymd] => 2025-04-06 18:28:18 [RateCDR] => 1 ) [2025-04-06 18:28: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-04-06 15:28:18' and `end` < '2025-04-06 18:28: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-04-06 18:28:31] Production.INFO: count ==3159 [2025-04-06 18:29:03] Production.ERROR: pbx CDR StartTime 2025-04-06 15:28:18 - End Time 2025-04-06 18:28:18 [2025-04-06 18:29:03] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849355', 'tblTempUsageDetail_20' ) start [2025-04-06 18:29:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849355', 'tblTempUsageDetail_20' ) end [2025-04-06 18:29:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849355', 'tblTempVendorCDR_20' ) start [2025-04-06 18:29:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849355', 'tblTempVendorCDR_20' ) end [2025-04-06 18:29:07] Production.INFO: ProcessCDR(1,14849355,1,1,2) [2025-04-06 18:29:07] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:29:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:29:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849355', 'tblTempUsageDetail_20' ) start [2025-04-06 18:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849355', 'tblTempUsageDetail_20' ) end [2025-04-06 18:29:38] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:29:39] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:29:43] Production.INFO: ==21332== Releasing lock... [2025-04-06 18:29:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:29:43] Production.INFO: 52.5 MB #Memory Used# [2025-04-06 18:30:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:30:18 [end_date_ymd] => 2025-04-06 18:30:18 [RateCDR] => 1 ) [2025-04-06 18:30: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-04-06 15:30:18' and `end` < '2025-04-06 18:30: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-04-06 18:30:31] Production.INFO: count ==3473 [2025-04-06 18:31:02] Production.ERROR: pbx CDR StartTime 2025-04-06 15:30:18 - End Time 2025-04-06 18:30:18 [2025-04-06 18:31:02] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:31:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849364', 'tblTempUsageDetail_20' ) start [2025-04-06 18:31:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849364', 'tblTempUsageDetail_20' ) end [2025-04-06 18:31:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849364', 'tblTempVendorCDR_20' ) start [2025-04-06 18:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849364', 'tblTempVendorCDR_20' ) end [2025-04-06 18:31:16] Production.INFO: ProcessCDR(1,14849364,1,1,2) [2025-04-06 18:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:31:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:31:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849364', 'tblTempUsageDetail_20' ) start [2025-04-06 18:31:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849364', 'tblTempUsageDetail_20' ) end [2025-04-06 18:31:56] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:31:56] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:31:56] Production.INFO: ==21522== Releasing lock... [2025-04-06 18:31:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:31:56] Production.INFO: 54 MB #Memory Used# [2025-04-06 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:32:05 [end_date_ymd] => 2025-04-06 18:32:05 [RateCDR] => 1 ) [2025-04-06 18:32:09] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-06 15:32:05' and `end` < '2025-04-06 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-04-06 18:32:22] Production.INFO: count ==3667 [2025-04-06 18:32:24] Production.ERROR: pbx CDR StartTime 2025-04-06 15:32:05 - End Time 2025-04-06 18:32:05 [2025-04-06 18:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849372', 'tblTempUsageDetail_20' ) start [2025-04-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849372', 'tblTempUsageDetail_20' ) end [2025-04-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849372', 'tblTempVendorCDR_20' ) start [2025-04-06 18:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849372', 'tblTempVendorCDR_20' ) end [2025-04-06 18:32:24] Production.INFO: ProcessCDR(1,14849372,1,1,2) [2025-04-06 18:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849372', 'tblTempUsageDetail_20' ) start [2025-04-06 18:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849372', 'tblTempUsageDetail_20' ) end [2025-04-06 18:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:32:29] Production.INFO: ==21665== Releasing lock... [2025-04-06 18:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:32:29] Production.INFO: 55.25 MB #Memory Used# [2025-04-06 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:33:05 [end_date_ymd] => 2025-04-06 18:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:33:05' and `end` < '2025-04-06 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-04-06 18:33:18] Production.INFO: count ==3667 [2025-04-06 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:33:05 - End Time 2025-04-06 18:33:05 [2025-04-06 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849377', 'tblTempUsageDetail_20' ) start [2025-04-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849377', 'tblTempUsageDetail_20' ) end [2025-04-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849377', 'tblTempVendorCDR_20' ) start [2025-04-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849377', 'tblTempVendorCDR_20' ) end [2025-04-06 18:33:20] Production.INFO: ProcessCDR(1,14849377,1,1,2) [2025-04-06 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849377', 'tblTempUsageDetail_20' ) start [2025-04-06 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849377', 'tblTempUsageDetail_20' ) end [2025-04-06 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:33:24] Production.INFO: ==21745== Releasing lock... [2025-04-06 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:33:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-06 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:34:05 [end_date_ymd] => 2025-04-06 18:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:34:05' and `end` < '2025-04-06 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-04-06 18:34:19] Production.INFO: count ==3665 [2025-04-06 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:34:05 - End Time 2025-04-06 18:34:05 [2025-04-06 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849382', 'tblTempUsageDetail_20' ) start [2025-04-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849382', 'tblTempUsageDetail_20' ) end [2025-04-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849382', 'tblTempVendorCDR_20' ) start [2025-04-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849382', 'tblTempVendorCDR_20' ) end [2025-04-06 18:34:20] Production.INFO: ProcessCDR(1,14849382,1,1,2) [2025-04-06 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849382', 'tblTempUsageDetail_20' ) start [2025-04-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849382', 'tblTempUsageDetail_20' ) end [2025-04-06 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:34:24] Production.INFO: ==21828== Releasing lock... [2025-04-06 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:34:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-06 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:35:05 [end_date_ymd] => 2025-04-06 18:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:35:05' and `end` < '2025-04-06 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-04-06 18:35:19] Production.INFO: count ==3697 [2025-04-06 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:35:05 - End Time 2025-04-06 18:35:05 [2025-04-06 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849387', 'tblTempUsageDetail_20' ) start [2025-04-06 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849387', 'tblTempUsageDetail_20' ) end [2025-04-06 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849387', 'tblTempVendorCDR_20' ) start [2025-04-06 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849387', 'tblTempVendorCDR_20' ) end [2025-04-06 18:35:20] Production.INFO: ProcessCDR(1,14849387,1,1,2) [2025-04-06 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849387', 'tblTempUsageDetail_20' ) start [2025-04-06 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849387', 'tblTempUsageDetail_20' ) end [2025-04-06 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:35:26] Production.INFO: ==21907== Releasing lock... [2025-04-06 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:35:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-06 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:36:05 [end_date_ymd] => 2025-04-06 18:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:36:05' and `end` < '2025-04-06 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-04-06 18:36:19] Production.INFO: count ==3737 [2025-04-06 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:36:05 - End Time 2025-04-06 18:36:05 [2025-04-06 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849392', 'tblTempUsageDetail_20' ) start [2025-04-06 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849392', 'tblTempUsageDetail_20' ) end [2025-04-06 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849392', 'tblTempVendorCDR_20' ) start [2025-04-06 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849392', 'tblTempVendorCDR_20' ) end [2025-04-06 18:36:21] Production.INFO: ProcessCDR(1,14849392,1,1,2) [2025-04-06 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849392', 'tblTempUsageDetail_20' ) start [2025-04-06 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849392', 'tblTempUsageDetail_20' ) end [2025-04-06 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:36:24] Production.INFO: ==21986== Releasing lock... [2025-04-06 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:36:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-06 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:37:05 [end_date_ymd] => 2025-04-06 18:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:37:05' and `end` < '2025-04-06 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-04-06 18:37:18] Production.INFO: count ==3776 [2025-04-06 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:37:05 - End Time 2025-04-06 18:37:05 [2025-04-06 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849397', 'tblTempUsageDetail_20' ) start [2025-04-06 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849397', 'tblTempUsageDetail_20' ) end [2025-04-06 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849397', 'tblTempVendorCDR_20' ) start [2025-04-06 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849397', 'tblTempVendorCDR_20' ) end [2025-04-06 18:37:20] Production.INFO: ProcessCDR(1,14849397,1,1,2) [2025-04-06 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849397', 'tblTempUsageDetail_20' ) start [2025-04-06 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849397', 'tblTempUsageDetail_20' ) end [2025-04-06 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:37:24] Production.INFO: ==22061== Releasing lock... [2025-04-06 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:37:24] Production.INFO: 56 MB #Memory Used# [2025-04-06 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:38:05 [end_date_ymd] => 2025-04-06 18:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:38:05' and `end` < '2025-04-06 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-04-06 18:38:18] Production.INFO: count ==3815 [2025-04-06 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:38:05 - End Time 2025-04-06 18:38:05 [2025-04-06 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849402', 'tblTempUsageDetail_20' ) start [2025-04-06 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849402', 'tblTempUsageDetail_20' ) end [2025-04-06 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849402', 'tblTempVendorCDR_20' ) start [2025-04-06 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849402', 'tblTempVendorCDR_20' ) end [2025-04-06 18:38:20] Production.INFO: ProcessCDR(1,14849402,1,1,2) [2025-04-06 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849402', 'tblTempUsageDetail_20' ) start [2025-04-06 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849402', 'tblTempUsageDetail_20' ) end [2025-04-06 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:38:26] Production.INFO: ==22146== Releasing lock... [2025-04-06 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:38:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-06 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:39:06 [end_date_ymd] => 2025-04-06 18:39:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:39:06' and `end` < '2025-04-06 18: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-04-06 18:39:19] Production.INFO: count ==3856 [2025-04-06 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:39:06 - End Time 2025-04-06 18:39:06 [2025-04-06 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849407', 'tblTempUsageDetail_20' ) start [2025-04-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849407', 'tblTempUsageDetail_20' ) end [2025-04-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849407', 'tblTempVendorCDR_20' ) start [2025-04-06 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849407', 'tblTempVendorCDR_20' ) end [2025-04-06 18:39:21] Production.INFO: ProcessCDR(1,14849407,1,1,2) [2025-04-06 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849407', 'tblTempUsageDetail_20' ) start [2025-04-06 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849407', 'tblTempUsageDetail_20' ) end [2025-04-06 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:39:25] Production.INFO: ==22225== Releasing lock... [2025-04-06 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:39:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-06 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:40:06 [end_date_ymd] => 2025-04-06 18:40:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:40:06' and `end` < '2025-04-06 18: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-04-06 18:40:19] Production.INFO: count ==3893 [2025-04-06 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:40:06 - End Time 2025-04-06 18:40:06 [2025-04-06 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849412', 'tblTempUsageDetail_20' ) start [2025-04-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849412', 'tblTempUsageDetail_20' ) end [2025-04-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849412', 'tblTempVendorCDR_20' ) start [2025-04-06 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849412', 'tblTempVendorCDR_20' ) end [2025-04-06 18:40:21] Production.INFO: ProcessCDR(1,14849412,1,1,2) [2025-04-06 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849412', 'tblTempUsageDetail_20' ) start [2025-04-06 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849412', 'tblTempUsageDetail_20' ) end [2025-04-06 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:40:26] Production.INFO: ==22306== Releasing lock... [2025-04-06 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:40:26] Production.INFO: 57 MB #Memory Used# [2025-04-06 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:41:06 [end_date_ymd] => 2025-04-06 18:41:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:41:06' and `end` < '2025-04-06 18: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-04-06 18:41:19] Production.INFO: count ==4236 [2025-04-06 18:41:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:41:06 - End Time 2025-04-06 18:41:06 [2025-04-06 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849418', 'tblTempUsageDetail_20' ) start [2025-04-06 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849418', 'tblTempUsageDetail_20' ) end [2025-04-06 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849418', 'tblTempVendorCDR_20' ) start [2025-04-06 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849418', 'tblTempVendorCDR_20' ) end [2025-04-06 18:41:21] Production.INFO: ProcessCDR(1,14849418,1,1,2) [2025-04-06 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849418', 'tblTempUsageDetail_20' ) start [2025-04-06 18:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849418', 'tblTempUsageDetail_20' ) end [2025-04-06 18:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:41:27] Production.INFO: ==22390== Releasing lock... [2025-04-06 18:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:41:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:42:06 [end_date_ymd] => 2025-04-06 18:42:06 [RateCDR] => 1 ) [2025-04-06 18:42: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-04-06 15:42:06' and `end` < '2025-04-06 18:42: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-04-06 18:42:19] Production.INFO: count ==4235 [2025-04-06 18:42:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:42:06 - End Time 2025-04-06 18:42:06 [2025-04-06 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849423', 'tblTempUsageDetail_20' ) start [2025-04-06 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849423', 'tblTempUsageDetail_20' ) end [2025-04-06 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849423', 'tblTempVendorCDR_20' ) start [2025-04-06 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849423', 'tblTempVendorCDR_20' ) end [2025-04-06 18:42:21] Production.INFO: ProcessCDR(1,14849423,1,1,2) [2025-04-06 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849423', 'tblTempUsageDetail_20' ) start [2025-04-06 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849423', 'tblTempUsageDetail_20' ) end [2025-04-06 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:42:26] Production.INFO: ==22464== Releasing lock... [2025-04-06 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:42:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:43:06 [end_date_ymd] => 2025-04-06 18:43:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:43:06' and `end` < '2025-04-06 18: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-04-06 18:43:19] Production.INFO: count ==4233 [2025-04-06 18:43:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:43:06 - End Time 2025-04-06 18:43:06 [2025-04-06 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849428', 'tblTempUsageDetail_20' ) start [2025-04-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849428', 'tblTempUsageDetail_20' ) end [2025-04-06 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849428', 'tblTempVendorCDR_20' ) start [2025-04-06 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849428', 'tblTempVendorCDR_20' ) end [2025-04-06 18:43:22] Production.INFO: ProcessCDR(1,14849428,1,1,2) [2025-04-06 18:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849428', 'tblTempUsageDetail_20' ) start [2025-04-06 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849428', 'tblTempUsageDetail_20' ) end [2025-04-06 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:43:25] Production.INFO: ==22545== Releasing lock... [2025-04-06 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:43:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:44:05 [end_date_ymd] => 2025-04-06 18:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:44:05' and `end` < '2025-04-06 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-04-06 18:44:18] Production.INFO: count ==4232 [2025-04-06 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:44:05 - End Time 2025-04-06 18:44:05 [2025-04-06 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849433', 'tblTempUsageDetail_20' ) start [2025-04-06 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849433', 'tblTempUsageDetail_20' ) end [2025-04-06 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849433', 'tblTempVendorCDR_20' ) start [2025-04-06 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849433', 'tblTempVendorCDR_20' ) end [2025-04-06 18:44:20] Production.INFO: ProcessCDR(1,14849433,1,1,2) [2025-04-06 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849433', 'tblTempUsageDetail_20' ) start [2025-04-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849433', 'tblTempUsageDetail_20' ) end [2025-04-06 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:44:24] Production.INFO: ==22669== Releasing lock... [2025-04-06 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:44:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:45:05 [end_date_ymd] => 2025-04-06 18:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:45:05' and `end` < '2025-04-06 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-04-06 18:45:19] Production.INFO: count ==4231 [2025-04-06 18:45:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:45:05 - End Time 2025-04-06 18:45:05 [2025-04-06 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849438', 'tblTempUsageDetail_20' ) start [2025-04-06 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849438', 'tblTempUsageDetail_20' ) end [2025-04-06 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849438', 'tblTempVendorCDR_20' ) start [2025-04-06 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849438', 'tblTempVendorCDR_20' ) end [2025-04-06 18:45:21] Production.INFO: ProcessCDR(1,14849438,1,1,2) [2025-04-06 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849438', 'tblTempUsageDetail_20' ) start [2025-04-06 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849438', 'tblTempUsageDetail_20' ) end [2025-04-06 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:45:24] Production.INFO: ==22749== Releasing lock... [2025-04-06 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:45:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:46:06 [end_date_ymd] => 2025-04-06 18:46:06 [RateCDR] => 1 ) [2025-04-06 18:46: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-04-06 15:46:06' and `end` < '2025-04-06 18:46: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-04-06 18:46:19] Production.INFO: count ==4288 [2025-04-06 18:46:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:46:06 - End Time 2025-04-06 18:46:06 [2025-04-06 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849443', 'tblTempUsageDetail_20' ) start [2025-04-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849443', 'tblTempUsageDetail_20' ) end [2025-04-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849443', 'tblTempVendorCDR_20' ) start [2025-04-06 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849443', 'tblTempVendorCDR_20' ) end [2025-04-06 18:46:21] Production.INFO: ProcessCDR(1,14849443,1,1,2) [2025-04-06 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849443', 'tblTempUsageDetail_20' ) start [2025-04-06 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849443', 'tblTempUsageDetail_20' ) end [2025-04-06 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:46:26] Production.INFO: ==22829== Releasing lock... [2025-04-06 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:46:26] Production.INFO: 60 MB #Memory Used# [2025-04-06 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:47:05 [end_date_ymd] => 2025-04-06 18:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:47:05' and `end` < '2025-04-06 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-04-06 18:47:18] Production.INFO: count ==4384 [2025-04-06 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:47:05 - End Time 2025-04-06 18:47:05 [2025-04-06 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849448', 'tblTempUsageDetail_20' ) start [2025-04-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849448', 'tblTempUsageDetail_20' ) end [2025-04-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849448', 'tblTempVendorCDR_20' ) start [2025-04-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849448', 'tblTempVendorCDR_20' ) end [2025-04-06 18:47:20] Production.INFO: ProcessCDR(1,14849448,1,1,2) [2025-04-06 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849448', 'tblTempUsageDetail_20' ) start [2025-04-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849448', 'tblTempUsageDetail_20' ) end [2025-04-06 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:47:24] Production.INFO: ==22907== Releasing lock... [2025-04-06 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:47:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-06 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:48:05 [end_date_ymd] => 2025-04-06 18:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:48:05' and `end` < '2025-04-06 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-04-06 18:48:18] Production.INFO: count ==4389 [2025-04-06 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:48:05 - End Time 2025-04-06 18:48:05 [2025-04-06 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849453', 'tblTempUsageDetail_20' ) start [2025-04-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849453', 'tblTempUsageDetail_20' ) end [2025-04-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849453', 'tblTempVendorCDR_20' ) start [2025-04-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849453', 'tblTempVendorCDR_20' ) end [2025-04-06 18:48:21] Production.INFO: ProcessCDR(1,14849453,1,1,2) [2025-04-06 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849453', 'tblTempUsageDetail_20' ) start [2025-04-06 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849453', 'tblTempUsageDetail_20' ) end [2025-04-06 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:48:26] Production.INFO: ==22985== Releasing lock... [2025-04-06 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:48:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-06 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:49:05 [end_date_ymd] => 2025-04-06 18:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:49:05' and `end` < '2025-04-06 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-04-06 18:49:19] Production.INFO: count ==4390 [2025-04-06 18:49:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:49:05 - End Time 2025-04-06 18:49:05 [2025-04-06 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849458', 'tblTempUsageDetail_20' ) start [2025-04-06 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849458', 'tblTempUsageDetail_20' ) end [2025-04-06 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849458', 'tblTempVendorCDR_20' ) start [2025-04-06 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849458', 'tblTempVendorCDR_20' ) end [2025-04-06 18:49:21] Production.INFO: ProcessCDR(1,14849458,1,1,2) [2025-04-06 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849458', 'tblTempUsageDetail_20' ) start [2025-04-06 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849458', 'tblTempUsageDetail_20' ) end [2025-04-06 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:49:26] Production.INFO: ==23071== Releasing lock... [2025-04-06 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:49:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-06 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:50:06 [end_date_ymd] => 2025-04-06 18:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:50:06' and `end` < '2025-04-06 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-04-06 18:50:19] Production.INFO: count ==4420 [2025-04-06 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:50:06 - End Time 2025-04-06 18:50:06 [2025-04-06 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849464', 'tblTempUsageDetail_20' ) start [2025-04-06 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849464', 'tblTempUsageDetail_20' ) end [2025-04-06 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849464', 'tblTempVendorCDR_20' ) start [2025-04-06 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849464', 'tblTempVendorCDR_20' ) end [2025-04-06 18:50:22] Production.INFO: ProcessCDR(1,14849464,1,1,2) [2025-04-06 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849464', 'tblTempUsageDetail_20' ) start [2025-04-06 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849464', 'tblTempUsageDetail_20' ) end [2025-04-06 18:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:50:27] Production.INFO: ==23151== Releasing lock... [2025-04-06 18:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:50:27] Production.INFO: 61 MB #Memory Used# [2025-04-06 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:51:05 [end_date_ymd] => 2025-04-06 18:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:51:05' and `end` < '2025-04-06 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-04-06 18:51:18] Production.INFO: count ==4456 [2025-04-06 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:51:05 - End Time 2025-04-06 18:51:05 [2025-04-06 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849469', 'tblTempUsageDetail_20' ) start [2025-04-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849469', 'tblTempUsageDetail_20' ) end [2025-04-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849469', 'tblTempVendorCDR_20' ) start [2025-04-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849469', 'tblTempVendorCDR_20' ) end [2025-04-06 18:51:20] Production.INFO: ProcessCDR(1,14849469,1,1,2) [2025-04-06 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849469', 'tblTempUsageDetail_20' ) start [2025-04-06 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849469', 'tblTempUsageDetail_20' ) end [2025-04-06 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:51:26] Production.INFO: ==23251== Releasing lock... [2025-04-06 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:51:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-06 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:52:06 [end_date_ymd] => 2025-04-06 18:52:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:52:06' and `end` < '2025-04-06 18: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-04-06 18:52:19] Production.INFO: count ==4462 [2025-04-06 18:52:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:52:06 - End Time 2025-04-06 18:52:06 [2025-04-06 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849474', 'tblTempUsageDetail_20' ) start [2025-04-06 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849474', 'tblTempUsageDetail_20' ) end [2025-04-06 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849474', 'tblTempVendorCDR_20' ) start [2025-04-06 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849474', 'tblTempVendorCDR_20' ) end [2025-04-06 18:52:21] Production.INFO: ProcessCDR(1,14849474,1,1,2) [2025-04-06 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849474', 'tblTempUsageDetail_20' ) start [2025-04-06 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849474', 'tblTempUsageDetail_20' ) end [2025-04-06 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:52:26] Production.INFO: ==23374== Releasing lock... [2025-04-06 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:52:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-06 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:53:05 [end_date_ymd] => 2025-04-06 18:53:05 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:53:05' and `end` < '2025-04-06 18: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-04-06 18:53:18] Production.INFO: count ==4538 [2025-04-06 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:53:05 - End Time 2025-04-06 18:53:05 [2025-04-06 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849479', 'tblTempUsageDetail_20' ) start [2025-04-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849479', 'tblTempUsageDetail_20' ) end [2025-04-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849479', 'tblTempVendorCDR_20' ) start [2025-04-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849479', 'tblTempVendorCDR_20' ) end [2025-04-06 18:53:20] Production.INFO: ProcessCDR(1,14849479,1,1,2) [2025-04-06 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849479', 'tblTempUsageDetail_20' ) start [2025-04-06 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849479', 'tblTempUsageDetail_20' ) end [2025-04-06 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:53:25] Production.INFO: ==23477== Releasing lock... [2025-04-06 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:53:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:54:06 [end_date_ymd] => 2025-04-06 18:54:06 [RateCDR] => 1 ) [2025-04-06 18:54: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-04-06 15:54:06' and `end` < '2025-04-06 18:54: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-04-06 18:54:19] Production.INFO: count ==4545 [2025-04-06 18:54:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:54:06 - End Time 2025-04-06 18:54:06 [2025-04-06 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849484', 'tblTempUsageDetail_20' ) start [2025-04-06 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849484', 'tblTempUsageDetail_20' ) end [2025-04-06 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849484', 'tblTempVendorCDR_20' ) start [2025-04-06 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849484', 'tblTempVendorCDR_20' ) end [2025-04-06 18:54:21] Production.INFO: ProcessCDR(1,14849484,1,1,2) [2025-04-06 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849484', 'tblTempUsageDetail_20' ) start [2025-04-06 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849484', 'tblTempUsageDetail_20' ) end [2025-04-06 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:54:26] Production.INFO: ==23555== Releasing lock... [2025-04-06 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:54:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:55:05 [end_date_ymd] => 2025-04-06 18:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:55:05' and `end` < '2025-04-06 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-04-06 18:55:18] Production.INFO: count ==4543 [2025-04-06 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:55:05 - End Time 2025-04-06 18:55:05 [2025-04-06 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849489', 'tblTempUsageDetail_20' ) start [2025-04-06 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849489', 'tblTempUsageDetail_20' ) end [2025-04-06 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849489', 'tblTempVendorCDR_20' ) start [2025-04-06 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849489', 'tblTempVendorCDR_20' ) end [2025-04-06 18:55:21] Production.INFO: ProcessCDR(1,14849489,1,1,2) [2025-04-06 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849489', 'tblTempUsageDetail_20' ) start [2025-04-06 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849489', 'tblTempUsageDetail_20' ) end [2025-04-06 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:55:24] Production.INFO: ==23633== Releasing lock... [2025-04-06 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:55:24] Production.INFO: 62 MB #Memory Used# [2025-04-06 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:56:06 [end_date_ymd] => 2025-04-06 18:56:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:56:06' and `end` < '2025-04-06 18: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-04-06 18:56:19] Production.INFO: count ==4544 [2025-04-06 18:56:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:56:06 - End Time 2025-04-06 18:56:06 [2025-04-06 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849494', 'tblTempUsageDetail_20' ) start [2025-04-06 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849494', 'tblTempUsageDetail_20' ) end [2025-04-06 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849494', 'tblTempVendorCDR_20' ) start [2025-04-06 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849494', 'tblTempVendorCDR_20' ) end [2025-04-06 18:56:21] Production.INFO: ProcessCDR(1,14849494,1,1,2) [2025-04-06 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849494', 'tblTempUsageDetail_20' ) start [2025-04-06 18:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849494', 'tblTempUsageDetail_20' ) end [2025-04-06 18:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:56:27] Production.INFO: ==23715== Releasing lock... [2025-04-06 18:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:56:27] Production.INFO: 62 MB #Memory Used# [2025-04-06 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:57:06 [end_date_ymd] => 2025-04-06 18:57:06 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:57:06' and `end` < '2025-04-06 18: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-04-06 18:57:19] Production.INFO: count ==4541 [2025-04-06 18:57:22] Production.ERROR: pbx CDR StartTime 2025-04-06 15:57:06 - End Time 2025-04-06 18:57:06 [2025-04-06 18:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849499', 'tblTempUsageDetail_20' ) start [2025-04-06 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849499', 'tblTempUsageDetail_20' ) end [2025-04-06 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849499', 'tblTempVendorCDR_20' ) start [2025-04-06 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849499', 'tblTempVendorCDR_20' ) end [2025-04-06 18:57:22] Production.INFO: ProcessCDR(1,14849499,1,1,2) [2025-04-06 18:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849499', 'tblTempUsageDetail_20' ) start [2025-04-06 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849499', 'tblTempUsageDetail_20' ) end [2025-04-06 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:57:25] Production.INFO: ==23792== Releasing lock... [2025-04-06 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:57:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:58:05 [end_date_ymd] => 2025-04-06 18:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 15:58:05' and `end` < '2025-04-06 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-04-06 18:58:19] Production.INFO: count ==4539 [2025-04-06 18:58:21] Production.ERROR: pbx CDR StartTime 2025-04-06 15:58:05 - End Time 2025-04-06 18:58:05 [2025-04-06 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849504', 'tblTempUsageDetail_20' ) start [2025-04-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849504', 'tblTempUsageDetail_20' ) end [2025-04-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849504', 'tblTempVendorCDR_20' ) start [2025-04-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849504', 'tblTempVendorCDR_20' ) end [2025-04-06 18:58:21] Production.INFO: ProcessCDR(1,14849504,1,1,2) [2025-04-06 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849504', 'tblTempUsageDetail_20' ) start [2025-04-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849504', 'tblTempUsageDetail_20' ) end [2025-04-06 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:58:25] Production.INFO: ==23874== Releasing lock... [2025-04-06 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:58:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 15:59:05 [end_date_ymd] => 2025-04-06 18:59:05 [RateCDR] => 1 ) [2025-04-06 18: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-04-06 15:59:05' and `end` < '2025-04-06 18: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-04-06 18:59:18] Production.INFO: count ==4539 [2025-04-06 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-06 15:59:05 - End Time 2025-04-06 18:59:05 [2025-04-06 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849509', 'tblTempUsageDetail_20' ) start [2025-04-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849509', 'tblTempUsageDetail_20' ) end [2025-04-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849509', 'tblTempVendorCDR_20' ) start [2025-04-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849509', 'tblTempVendorCDR_20' ) end [2025-04-06 18:59:20] Production.INFO: ProcessCDR(1,14849509,1,1,2) [2025-04-06 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849509', 'tblTempUsageDetail_20' ) start [2025-04-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849509', 'tblTempUsageDetail_20' ) end [2025-04-06 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 18:59:24] Production.INFO: ==23991== Releasing lock... [2025-04-06 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 18:59:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:00:06 [end_date_ymd] => 2025-04-06 19:00:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:00:06' and `end` < '2025-04-06 19: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-04-06 19:00:19] Production.INFO: count ==4534 [2025-04-06 19:00:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:00:06 - End Time 2025-04-06 19:00:06 [2025-04-06 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849514', 'tblTempUsageDetail_20' ) start [2025-04-06 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849514', 'tblTempUsageDetail_20' ) end [2025-04-06 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849514', 'tblTempVendorCDR_20' ) start [2025-04-06 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849514', 'tblTempVendorCDR_20' ) end [2025-04-06 19:00:21] Production.INFO: ProcessCDR(1,14849514,1,1,2) [2025-04-06 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849514', 'tblTempUsageDetail_20' ) start [2025-04-06 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849514', 'tblTempUsageDetail_20' ) end [2025-04-06 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:00:25] Production.INFO: ==24072== Releasing lock... [2025-04-06 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:00:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:01:05 [end_date_ymd] => 2025-04-06 19:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:01:05' and `end` < '2025-04-06 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-04-06 19:01:19] Production.INFO: count ==4533 [2025-04-06 19:01:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:01:05 - End Time 2025-04-06 19:01:05 [2025-04-06 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849520', 'tblTempUsageDetail_20' ) start [2025-04-06 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849520', 'tblTempUsageDetail_20' ) end [2025-04-06 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849520', 'tblTempVendorCDR_20' ) start [2025-04-06 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849520', 'tblTempVendorCDR_20' ) end [2025-04-06 19:01:21] Production.INFO: ProcessCDR(1,14849520,1,1,2) [2025-04-06 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849520', 'tblTempUsageDetail_20' ) start [2025-04-06 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849520', 'tblTempUsageDetail_20' ) end [2025-04-06 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:01:25] Production.INFO: ==24163== Releasing lock... [2025-04-06 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:01:25] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:02:06 [end_date_ymd] => 2025-04-06 19:02:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:02:06' and `end` < '2025-04-06 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-04-06 19:02:19] Production.INFO: count ==4533 [2025-04-06 19:02:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:02:06 - End Time 2025-04-06 19:02:06 [2025-04-06 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849525', 'tblTempUsageDetail_20' ) start [2025-04-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849525', 'tblTempUsageDetail_20' ) end [2025-04-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849525', 'tblTempVendorCDR_20' ) start [2025-04-06 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849525', 'tblTempVendorCDR_20' ) end [2025-04-06 19:02:21] Production.INFO: ProcessCDR(1,14849525,1,1,2) [2025-04-06 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849525', 'tblTempUsageDetail_20' ) start [2025-04-06 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849525', 'tblTempUsageDetail_20' ) end [2025-04-06 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:02:25] Production.INFO: ==24320== Releasing lock... [2025-04-06 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:02:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:03:05 [end_date_ymd] => 2025-04-06 19:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:03:05' and `end` < '2025-04-06 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-04-06 19:03:19] Production.INFO: count ==4543 [2025-04-06 19:03:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:03:05 - End Time 2025-04-06 19:03:05 [2025-04-06 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849530', 'tblTempUsageDetail_20' ) start [2025-04-06 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849530', 'tblTempUsageDetail_20' ) end [2025-04-06 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849530', 'tblTempVendorCDR_20' ) start [2025-04-06 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849530', 'tblTempVendorCDR_20' ) end [2025-04-06 19:03:21] Production.INFO: ProcessCDR(1,14849530,1,1,2) [2025-04-06 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849530', 'tblTempUsageDetail_20' ) start [2025-04-06 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849530', 'tblTempUsageDetail_20' ) end [2025-04-06 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:03:26] Production.INFO: ==24398== Releasing lock... [2025-04-06 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:04:05 [end_date_ymd] => 2025-04-06 19:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:04:05' and `end` < '2025-04-06 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-04-06 19:04:18] Production.INFO: count ==4543 [2025-04-06 19:04:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:04:05 - End Time 2025-04-06 19:04:05 [2025-04-06 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849535', 'tblTempUsageDetail_20' ) start [2025-04-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849535', 'tblTempUsageDetail_20' ) end [2025-04-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849535', 'tblTempVendorCDR_20' ) start [2025-04-06 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849535', 'tblTempVendorCDR_20' ) end [2025-04-06 19:04:21] Production.INFO: ProcessCDR(1,14849535,1,1,2) [2025-04-06 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849535', 'tblTempUsageDetail_20' ) start [2025-04-06 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849535', 'tblTempUsageDetail_20' ) end [2025-04-06 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:04:26] Production.INFO: ==24480== Releasing lock... [2025-04-06 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:04:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:05:06 [end_date_ymd] => 2025-04-06 19:05:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:05:06' and `end` < '2025-04-06 19: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-04-06 19:05:19] Production.INFO: count ==4547 [2025-04-06 19:05:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:05:06 - End Time 2025-04-06 19:05:06 [2025-04-06 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849540', 'tblTempUsageDetail_20' ) start [2025-04-06 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849540', 'tblTempUsageDetail_20' ) end [2025-04-06 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849540', 'tblTempVendorCDR_20' ) start [2025-04-06 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849540', 'tblTempVendorCDR_20' ) end [2025-04-06 19:05:21] Production.INFO: ProcessCDR(1,14849540,1,1,2) [2025-04-06 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849540', 'tblTempUsageDetail_20' ) start [2025-04-06 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849540', 'tblTempUsageDetail_20' ) end [2025-04-06 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:05:26] Production.INFO: ==24637== Releasing lock... [2025-04-06 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:05:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:06:05 [end_date_ymd] => 2025-04-06 19:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:06:05' and `end` < '2025-04-06 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-04-06 19:06:18] Production.INFO: count ==4548 [2025-04-06 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:06:05 - End Time 2025-04-06 19:06:05 [2025-04-06 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849545', 'tblTempUsageDetail_20' ) start [2025-04-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849545', 'tblTempUsageDetail_20' ) end [2025-04-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849545', 'tblTempVendorCDR_20' ) start [2025-04-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849545', 'tblTempVendorCDR_20' ) end [2025-04-06 19:06:20] Production.INFO: ProcessCDR(1,14849545,1,1,2) [2025-04-06 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849545', 'tblTempUsageDetail_20' ) start [2025-04-06 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849545', 'tblTempUsageDetail_20' ) end [2025-04-06 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:06:25] Production.INFO: ==24714== Releasing lock... [2025-04-06 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:06:25] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:07:05 [end_date_ymd] => 2025-04-06 19:07:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:07:05' and `end` < '2025-04-06 19: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-04-06 19:07:19] Production.INFO: count ==4559 [2025-04-06 19:07:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:07:05 - End Time 2025-04-06 19:07:05 [2025-04-06 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849550', 'tblTempUsageDetail_20' ) start [2025-04-06 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849550', 'tblTempUsageDetail_20' ) end [2025-04-06 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849550', 'tblTempVendorCDR_20' ) start [2025-04-06 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849550', 'tblTempVendorCDR_20' ) end [2025-04-06 19:07:21] Production.INFO: ProcessCDR(1,14849550,1,1,2) [2025-04-06 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849550', 'tblTempUsageDetail_20' ) start [2025-04-06 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849550', 'tblTempUsageDetail_20' ) end [2025-04-06 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:07:26] Production.INFO: ==24816== Releasing lock... [2025-04-06 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:07:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:08:06 [end_date_ymd] => 2025-04-06 19:08:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:08:06' and `end` < '2025-04-06 19: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-04-06 19:08:19] Production.INFO: count ==4568 [2025-04-06 19:08:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:08:06 - End Time 2025-04-06 19:08:06 [2025-04-06 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849555', 'tblTempUsageDetail_20' ) start [2025-04-06 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849555', 'tblTempUsageDetail_20' ) end [2025-04-06 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849555', 'tblTempVendorCDR_20' ) start [2025-04-06 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849555', 'tblTempVendorCDR_20' ) end [2025-04-06 19:08:21] Production.INFO: ProcessCDR(1,14849555,1,1,2) [2025-04-06 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849555', 'tblTempUsageDetail_20' ) start [2025-04-06 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849555', 'tblTempUsageDetail_20' ) end [2025-04-06 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:08:25] Production.INFO: ==24940== Releasing lock... [2025-04-06 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:08:25] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:09:05 [end_date_ymd] => 2025-04-06 19:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:09:05' and `end` < '2025-04-06 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-04-06 19:09:19] Production.INFO: count ==4570 [2025-04-06 19:09:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:09:05 - End Time 2025-04-06 19:09:05 [2025-04-06 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849560', 'tblTempUsageDetail_20' ) start [2025-04-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849560', 'tblTempUsageDetail_20' ) end [2025-04-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849560', 'tblTempVendorCDR_20' ) start [2025-04-06 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849560', 'tblTempVendorCDR_20' ) end [2025-04-06 19:09:21] Production.INFO: ProcessCDR(1,14849560,1,1,2) [2025-04-06 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849560', 'tblTempUsageDetail_20' ) start [2025-04-06 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849560', 'tblTempUsageDetail_20' ) end [2025-04-06 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:09:26] Production.INFO: ==25057== Releasing lock... [2025-04-06 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:09:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:10:06 [end_date_ymd] => 2025-04-06 19:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:10:06' and `end` < '2025-04-06 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-04-06 19:10:19] Production.INFO: count ==4566 [2025-04-06 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:10:06 - End Time 2025-04-06 19:10:06 [2025-04-06 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849565', 'tblTempUsageDetail_20' ) start [2025-04-06 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849565', 'tblTempUsageDetail_20' ) end [2025-04-06 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849565', 'tblTempVendorCDR_20' ) start [2025-04-06 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849565', 'tblTempVendorCDR_20' ) end [2025-04-06 19:10:21] Production.INFO: ProcessCDR(1,14849565,1,1,2) [2025-04-06 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849565', 'tblTempUsageDetail_20' ) start [2025-04-06 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849565', 'tblTempUsageDetail_20' ) end [2025-04-06 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:10:25] Production.INFO: ==25136== Releasing lock... [2025-04-06 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:10:25] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:11:05 [end_date_ymd] => 2025-04-06 19:11:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:11:05' and `end` < '2025-04-06 19: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-04-06 19:11:18] Production.INFO: count ==4547 [2025-04-06 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:11:05 - End Time 2025-04-06 19:11:05 [2025-04-06 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849571', 'tblTempUsageDetail_20' ) start [2025-04-06 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849571', 'tblTempUsageDetail_20' ) end [2025-04-06 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849571', 'tblTempVendorCDR_20' ) start [2025-04-06 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849571', 'tblTempVendorCDR_20' ) end [2025-04-06 19:11:20] Production.INFO: ProcessCDR(1,14849571,1,1,2) [2025-04-06 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849571', 'tblTempUsageDetail_20' ) start [2025-04-06 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849571', 'tblTempUsageDetail_20' ) end [2025-04-06 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:11:26] Production.INFO: ==25220== Releasing lock... [2025-04-06 19:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:11:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:12:06 [end_date_ymd] => 2025-04-06 19:12:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:12:06' and `end` < '2025-04-06 19: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-04-06 19:12:19] Production.INFO: count ==4550 [2025-04-06 19:12:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:12:06 - End Time 2025-04-06 19:12:06 [2025-04-06 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849576', 'tblTempUsageDetail_20' ) start [2025-04-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849576', 'tblTempUsageDetail_20' ) end [2025-04-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849576', 'tblTempVendorCDR_20' ) start [2025-04-06 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849576', 'tblTempVendorCDR_20' ) end [2025-04-06 19:12:21] Production.INFO: ProcessCDR(1,14849576,1,1,2) [2025-04-06 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849576', 'tblTempUsageDetail_20' ) start [2025-04-06 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849576', 'tblTempUsageDetail_20' ) end [2025-04-06 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:12:26] Production.INFO: ==25382== Releasing lock... [2025-04-06 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:12:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:13:04 [end_date_ymd] => 2025-04-06 19:13:04 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:13:04' and `end` < '2025-04-06 19: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-04-06 19:13:18] Production.INFO: count ==4549 [2025-04-06 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:13:04 - End Time 2025-04-06 19:13:04 [2025-04-06 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849581', 'tblTempUsageDetail_20' ) start [2025-04-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849581', 'tblTempUsageDetail_20' ) end [2025-04-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849581', 'tblTempVendorCDR_20' ) start [2025-04-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849581', 'tblTempVendorCDR_20' ) end [2025-04-06 19:13:20] Production.INFO: ProcessCDR(1,14849581,1,1,2) [2025-04-06 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849581', 'tblTempUsageDetail_20' ) start [2025-04-06 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849581', 'tblTempUsageDetail_20' ) end [2025-04-06 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:13:23] Production.INFO: ==25460== Releasing lock... [2025-04-06 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:13:23] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:14:05 [end_date_ymd] => 2025-04-06 19:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:14:05' and `end` < '2025-04-06 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-04-06 19:14:18] Production.INFO: count ==4544 [2025-04-06 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:14:05 - End Time 2025-04-06 19:14:05 [2025-04-06 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849586', 'tblTempUsageDetail_20' ) start [2025-04-06 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849586', 'tblTempUsageDetail_20' ) end [2025-04-06 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849586', 'tblTempVendorCDR_20' ) start [2025-04-06 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849586', 'tblTempVendorCDR_20' ) end [2025-04-06 19:14:21] Production.INFO: ProcessCDR(1,14849586,1,1,2) [2025-04-06 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849586', 'tblTempUsageDetail_20' ) start [2025-04-06 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849586', 'tblTempUsageDetail_20' ) end [2025-04-06 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:14:26] Production.INFO: ==25538== Releasing lock... [2025-04-06 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:14:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:15:05 [end_date_ymd] => 2025-04-06 19:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:15:05' and `end` < '2025-04-06 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-04-06 19:15:19] Production.INFO: count ==4544 [2025-04-06 19:15:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:15:05 - End Time 2025-04-06 19:15:05 [2025-04-06 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849591', 'tblTempUsageDetail_20' ) start [2025-04-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849591', 'tblTempUsageDetail_20' ) end [2025-04-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849591', 'tblTempVendorCDR_20' ) start [2025-04-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849591', 'tblTempVendorCDR_20' ) end [2025-04-06 19:15:21] Production.INFO: ProcessCDR(1,14849591,1,1,2) [2025-04-06 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849591', 'tblTempUsageDetail_20' ) start [2025-04-06 19:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849591', 'tblTempUsageDetail_20' ) end [2025-04-06 19:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:15:27] Production.INFO: ==25730== Releasing lock... [2025-04-06 19:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:15:27] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:16:06 [end_date_ymd] => 2025-04-06 19:16:06 [RateCDR] => 1 ) [2025-04-06 19:16: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-04-06 16:16:06' and `end` < '2025-04-06 19:16: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-04-06 19:16:20] Production.INFO: count ==4544 [2025-04-06 19:16:22] Production.ERROR: pbx CDR StartTime 2025-04-06 16:16:06 - End Time 2025-04-06 19:16:06 [2025-04-06 19:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849596', 'tblTempUsageDetail_20' ) start [2025-04-06 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849596', 'tblTempUsageDetail_20' ) end [2025-04-06 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849596', 'tblTempVendorCDR_20' ) start [2025-04-06 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849596', 'tblTempVendorCDR_20' ) end [2025-04-06 19:16:22] Production.INFO: ProcessCDR(1,14849596,1,1,2) [2025-04-06 19:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849596', 'tblTempUsageDetail_20' ) start [2025-04-06 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849596', 'tblTempUsageDetail_20' ) end [2025-04-06 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:16:25] Production.INFO: ==25805== Releasing lock... [2025-04-06 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:16:25] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:17:05 [end_date_ymd] => 2025-04-06 19:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:17:05' and `end` < '2025-04-06 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-04-06 19:17:18] Production.INFO: count ==4544 [2025-04-06 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:17:05 - End Time 2025-04-06 19:17:05 [2025-04-06 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849601', 'tblTempUsageDetail_20' ) start [2025-04-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849601', 'tblTempUsageDetail_20' ) end [2025-04-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849601', 'tblTempVendorCDR_20' ) start [2025-04-06 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849601', 'tblTempVendorCDR_20' ) end [2025-04-06 19:17:20] Production.INFO: ProcessCDR(1,14849601,1,1,2) [2025-04-06 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849601', 'tblTempUsageDetail_20' ) start [2025-04-06 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849601', 'tblTempUsageDetail_20' ) end [2025-04-06 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:17:24] Production.INFO: ==25874== Releasing lock... [2025-04-06 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:17:24] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:18:05 [end_date_ymd] => 2025-04-06 19:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:18:05' and `end` < '2025-04-06 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-04-06 19:18:18] Production.INFO: count ==4534 [2025-04-06 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:18:05 - End Time 2025-04-06 19:18:05 [2025-04-06 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849606', 'tblTempUsageDetail_20' ) start [2025-04-06 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849606', 'tblTempUsageDetail_20' ) end [2025-04-06 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849606', 'tblTempVendorCDR_20' ) start [2025-04-06 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849606', 'tblTempVendorCDR_20' ) end [2025-04-06 19:18:20] Production.INFO: ProcessCDR(1,14849606,1,1,2) [2025-04-06 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849606', 'tblTempUsageDetail_20' ) start [2025-04-06 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849606', 'tblTempUsageDetail_20' ) end [2025-04-06 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:18:24] Production.INFO: ==25949== Releasing lock... [2025-04-06 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:18:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:19:05 [end_date_ymd] => 2025-04-06 19:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:19:05' and `end` < '2025-04-06 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-04-06 19:19:18] Production.INFO: count ==4535 [2025-04-06 19:19:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:19:05 - End Time 2025-04-06 19:19:05 [2025-04-06 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849611', 'tblTempUsageDetail_20' ) start [2025-04-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849611', 'tblTempUsageDetail_20' ) end [2025-04-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849611', 'tblTempVendorCDR_20' ) start [2025-04-06 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849611', 'tblTempVendorCDR_20' ) end [2025-04-06 19:19:21] Production.INFO: ProcessCDR(1,14849611,1,1,2) [2025-04-06 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849611', 'tblTempUsageDetail_20' ) start [2025-04-06 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849611', 'tblTempUsageDetail_20' ) end [2025-04-06 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:19:24] Production.INFO: ==26023== Releasing lock... [2025-04-06 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:19:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:20:06 [end_date_ymd] => 2025-04-06 19:20:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:20:06' and `end` < '2025-04-06 19: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-04-06 19:20:19] Production.INFO: count ==4523 [2025-04-06 19:20:22] Production.ERROR: pbx CDR StartTime 2025-04-06 16:20:06 - End Time 2025-04-06 19:20:06 [2025-04-06 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849617', 'tblTempUsageDetail_20' ) start [2025-04-06 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849617', 'tblTempUsageDetail_20' ) end [2025-04-06 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849617', 'tblTempVendorCDR_20' ) start [2025-04-06 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849617', 'tblTempVendorCDR_20' ) end [2025-04-06 19:20:22] Production.INFO: ProcessCDR(1,14849617,1,1,2) [2025-04-06 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849617', 'tblTempUsageDetail_20' ) start [2025-04-06 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849617', 'tblTempUsageDetail_20' ) end [2025-04-06 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:20:25] Production.INFO: ==26095== Releasing lock... [2025-04-06 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:20:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:21:05 [end_date_ymd] => 2025-04-06 19:21:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:21:05' and `end` < '2025-04-06 19: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-04-06 19:21:18] Production.INFO: count ==4523 [2025-04-06 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:21:05 - End Time 2025-04-06 19:21:05 [2025-04-06 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849622', 'tblTempUsageDetail_20' ) start [2025-04-06 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849622', 'tblTempUsageDetail_20' ) end [2025-04-06 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849622', 'tblTempVendorCDR_20' ) start [2025-04-06 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849622', 'tblTempVendorCDR_20' ) end [2025-04-06 19:21:20] Production.INFO: ProcessCDR(1,14849622,1,1,2) [2025-04-06 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849622', 'tblTempUsageDetail_20' ) start [2025-04-06 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849622', 'tblTempUsageDetail_20' ) end [2025-04-06 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:21:23] Production.INFO: ==26169== Releasing lock... [2025-04-06 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:21:23] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:22:06 [end_date_ymd] => 2025-04-06 19:22:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:22:06' and `end` < '2025-04-06 19: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-04-06 19:22:19] Production.INFO: count ==4525 [2025-04-06 19:22:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:22:06 - End Time 2025-04-06 19:22:06 [2025-04-06 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849627', 'tblTempUsageDetail_20' ) start [2025-04-06 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849627', 'tblTempUsageDetail_20' ) end [2025-04-06 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849627', 'tblTempVendorCDR_20' ) start [2025-04-06 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849627', 'tblTempVendorCDR_20' ) end [2025-04-06 19:22:21] Production.INFO: ProcessCDR(1,14849627,1,1,2) [2025-04-06 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849627', 'tblTempUsageDetail_20' ) start [2025-04-06 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849627', 'tblTempUsageDetail_20' ) end [2025-04-06 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:22:26] Production.INFO: ==26240== Releasing lock... [2025-04-06 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:22:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:23:05 [end_date_ymd] => 2025-04-06 19:23:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:23:05' and `end` < '2025-04-06 19: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-04-06 19:23:18] Production.INFO: count ==4528 [2025-04-06 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:23:05 - End Time 2025-04-06 19:23:05 [2025-04-06 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849632', 'tblTempUsageDetail_20' ) start [2025-04-06 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849632', 'tblTempUsageDetail_20' ) end [2025-04-06 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849632', 'tblTempVendorCDR_20' ) start [2025-04-06 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849632', 'tblTempVendorCDR_20' ) end [2025-04-06 19:23:21] Production.INFO: ProcessCDR(1,14849632,1,1,2) [2025-04-06 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849632', 'tblTempUsageDetail_20' ) start [2025-04-06 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849632', 'tblTempUsageDetail_20' ) end [2025-04-06 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:23:24] Production.INFO: ==26316== Releasing lock... [2025-04-06 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:23:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:24:05 [end_date_ymd] => 2025-04-06 19:24:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:24:05' and `end` < '2025-04-06 19: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-04-06 19:24:18] Production.INFO: count ==4528 [2025-04-06 19:24:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:24:05 - End Time 2025-04-06 19:24:05 [2025-04-06 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849637', 'tblTempUsageDetail_20' ) start [2025-04-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849637', 'tblTempUsageDetail_20' ) end [2025-04-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849637', 'tblTempVendorCDR_20' ) start [2025-04-06 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849637', 'tblTempVendorCDR_20' ) end [2025-04-06 19:24:21] Production.INFO: ProcessCDR(1,14849637,1,1,2) [2025-04-06 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849637', 'tblTempUsageDetail_20' ) start [2025-04-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849637', 'tblTempUsageDetail_20' ) end [2025-04-06 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:24:24] Production.INFO: ==26389== Releasing lock... [2025-04-06 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:24:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:25:05 [end_date_ymd] => 2025-04-06 19:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:25:05' and `end` < '2025-04-06 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-04-06 19:25:18] Production.INFO: count ==4529 [2025-04-06 19:25:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:25:05 - End Time 2025-04-06 19:25:05 [2025-04-06 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849642', 'tblTempUsageDetail_20' ) start [2025-04-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849642', 'tblTempUsageDetail_20' ) end [2025-04-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849642', 'tblTempVendorCDR_20' ) start [2025-04-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849642', 'tblTempVendorCDR_20' ) end [2025-04-06 19:25:21] Production.INFO: ProcessCDR(1,14849642,1,1,2) [2025-04-06 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849642', 'tblTempUsageDetail_20' ) start [2025-04-06 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849642', 'tblTempUsageDetail_20' ) end [2025-04-06 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:25:24] Production.INFO: ==26461== Releasing lock... [2025-04-06 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:25:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:26:06 [end_date_ymd] => 2025-04-06 19:26:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:26:06' and `end` < '2025-04-06 19: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-04-06 19:26:19] Production.INFO: count ==4544 [2025-04-06 19:26:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:26:06 - End Time 2025-04-06 19:26:06 [2025-04-06 19:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849647', 'tblTempUsageDetail_20' ) start [2025-04-06 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849647', 'tblTempUsageDetail_20' ) end [2025-04-06 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849647', 'tblTempVendorCDR_20' ) start [2025-04-06 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849647', 'tblTempVendorCDR_20' ) end [2025-04-06 19:26:21] Production.INFO: ProcessCDR(1,14849647,1,1,2) [2025-04-06 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849647', 'tblTempUsageDetail_20' ) start [2025-04-06 19:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849647', 'tblTempUsageDetail_20' ) end [2025-04-06 19:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:26:27] Production.INFO: ==26535== Releasing lock... [2025-04-06 19:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:26:27] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:27:05 [end_date_ymd] => 2025-04-06 19:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:27:05' and `end` < '2025-04-06 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-04-06 19:27:18] Production.INFO: count ==4544 [2025-04-06 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:27:05 - End Time 2025-04-06 19:27:05 [2025-04-06 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849652', 'tblTempUsageDetail_20' ) start [2025-04-06 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849652', 'tblTempUsageDetail_20' ) end [2025-04-06 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849652', 'tblTempVendorCDR_20' ) start [2025-04-06 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849652', 'tblTempVendorCDR_20' ) end [2025-04-06 19:27:20] Production.INFO: ProcessCDR(1,14849652,1,1,2) [2025-04-06 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849652', 'tblTempUsageDetail_20' ) start [2025-04-06 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849652', 'tblTempUsageDetail_20' ) end [2025-04-06 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:27:24] Production.INFO: ==26613== Releasing lock... [2025-04-06 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:27:24] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:28:05 [end_date_ymd] => 2025-04-06 19:28:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:28:05' and `end` < '2025-04-06 19: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-04-06 19:28:18] Production.INFO: count ==4543 [2025-04-06 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:28:05 - End Time 2025-04-06 19:28:05 [2025-04-06 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849657', 'tblTempUsageDetail_20' ) start [2025-04-06 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849657', 'tblTempUsageDetail_20' ) end [2025-04-06 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849657', 'tblTempVendorCDR_20' ) start [2025-04-06 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849657', 'tblTempVendorCDR_20' ) end [2025-04-06 19:28:20] Production.INFO: ProcessCDR(1,14849657,1,1,2) [2025-04-06 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849657', 'tblTempUsageDetail_20' ) start [2025-04-06 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849657', 'tblTempUsageDetail_20' ) end [2025-04-06 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:28:25] Production.INFO: ==26683== Releasing lock... [2025-04-06 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:28:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:29:05 [end_date_ymd] => 2025-04-06 19:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:29:05' and `end` < '2025-04-06 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-04-06 19:29:18] Production.INFO: count ==4539 [2025-04-06 19:29:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:29:05 - End Time 2025-04-06 19:29:05 [2025-04-06 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849662', 'tblTempUsageDetail_20' ) start [2025-04-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849662', 'tblTempUsageDetail_20' ) end [2025-04-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849662', 'tblTempVendorCDR_20' ) start [2025-04-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849662', 'tblTempVendorCDR_20' ) end [2025-04-06 19:29:20] Production.INFO: ProcessCDR(1,14849662,1,1,2) [2025-04-06 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849662', 'tblTempUsageDetail_20' ) start [2025-04-06 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849662', 'tblTempUsageDetail_20' ) end [2025-04-06 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:29:24] Production.INFO: ==26755== Releasing lock... [2025-04-06 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:29:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-06 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:30:06 [end_date_ymd] => 2025-04-06 19:30:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:30:06' and `end` < '2025-04-06 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-04-06 19:30:19] Production.INFO: count ==4544 [2025-04-06 19:30:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:30:06 - End Time 2025-04-06 19:30:06 [2025-04-06 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849668', 'tblTempUsageDetail_20' ) start [2025-04-06 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849668', 'tblTempUsageDetail_20' ) end [2025-04-06 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849668', 'tblTempVendorCDR_20' ) start [2025-04-06 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849668', 'tblTempVendorCDR_20' ) end [2025-04-06 19:30:21] Production.INFO: ProcessCDR(1,14849668,1,1,2) [2025-04-06 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849668', 'tblTempUsageDetail_20' ) start [2025-04-06 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849668', 'tblTempUsageDetail_20' ) end [2025-04-06 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:30:26] Production.INFO: ==26868== Releasing lock... [2025-04-06 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:30:26] Production.INFO: 62 MB #Memory Used# [2025-04-06 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:31:05 [end_date_ymd] => 2025-04-06 19:31:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:31:05' and `end` < '2025-04-06 19: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-04-06 19:31:18] Production.INFO: count ==4594 [2025-04-06 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:31:05 - End Time 2025-04-06 19:31:05 [2025-04-06 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849673', 'tblTempUsageDetail_20' ) start [2025-04-06 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849673', 'tblTempUsageDetail_20' ) end [2025-04-06 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849673', 'tblTempVendorCDR_20' ) start [2025-04-06 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849673', 'tblTempVendorCDR_20' ) end [2025-04-06 19:31:20] Production.INFO: ProcessCDR(1,14849673,1,1,2) [2025-04-06 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849673', 'tblTempUsageDetail_20' ) start [2025-04-06 19:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849673', 'tblTempUsageDetail_20' ) end [2025-04-06 19:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:31:26] Production.INFO: ==26942== Releasing lock... [2025-04-06 19:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:31:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:32:06 [end_date_ymd] => 2025-04-06 19:32:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:32:06' and `end` < '2025-04-06 19: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-04-06 19:32:19] Production.INFO: count ==4602 [2025-04-06 19:32:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:32:06 - End Time 2025-04-06 19:32:06 [2025-04-06 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849678', 'tblTempUsageDetail_20' ) start [2025-04-06 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849678', 'tblTempUsageDetail_20' ) end [2025-04-06 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849678', 'tblTempVendorCDR_20' ) start [2025-04-06 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849678', 'tblTempVendorCDR_20' ) end [2025-04-06 19:32:21] Production.INFO: ProcessCDR(1,14849678,1,1,2) [2025-04-06 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849678', 'tblTempUsageDetail_20' ) start [2025-04-06 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849678', 'tblTempUsageDetail_20' ) end [2025-04-06 19:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:32:26] Production.INFO: ==27011== Releasing lock... [2025-04-06 19:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:32:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:33:06 [end_date_ymd] => 2025-04-06 19:33:06 [RateCDR] => 1 ) [2025-04-06 19:33: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-04-06 16:33:06' and `end` < '2025-04-06 19:33: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-04-06 19:33:19] Production.INFO: count ==4607 [2025-04-06 19:33:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:33:06 - End Time 2025-04-06 19:33:06 [2025-04-06 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849683', 'tblTempUsageDetail_20' ) start [2025-04-06 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849683', 'tblTempUsageDetail_20' ) end [2025-04-06 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849683', 'tblTempVendorCDR_20' ) start [2025-04-06 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849683', 'tblTempVendorCDR_20' ) end [2025-04-06 19:33:21] Production.INFO: ProcessCDR(1,14849683,1,1,2) [2025-04-06 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849683', 'tblTempUsageDetail_20' ) start [2025-04-06 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849683', 'tblTempUsageDetail_20' ) end [2025-04-06 19:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:33:27] Production.INFO: ==27086== Releasing lock... [2025-04-06 19:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:33:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:34:05 [end_date_ymd] => 2025-04-06 19:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:34:05' and `end` < '2025-04-06 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-04-06 19:34:18] Production.INFO: count ==4616 [2025-04-06 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:34:05 - End Time 2025-04-06 19:34:05 [2025-04-06 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849688', 'tblTempUsageDetail_20' ) start [2025-04-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849688', 'tblTempUsageDetail_20' ) end [2025-04-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849688', 'tblTempVendorCDR_20' ) start [2025-04-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849688', 'tblTempVendorCDR_20' ) end [2025-04-06 19:34:20] Production.INFO: ProcessCDR(1,14849688,1,1,2) [2025-04-06 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849688', 'tblTempUsageDetail_20' ) start [2025-04-06 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849688', 'tblTempUsageDetail_20' ) end [2025-04-06 19:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:34:26] Production.INFO: ==27159== Releasing lock... [2025-04-06 19:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:34:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:35:05 [end_date_ymd] => 2025-04-06 19:35:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:35:05' and `end` < '2025-04-06 19: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-04-06 19:35:19] Production.INFO: count ==4615 [2025-04-06 19:35:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:35:05 - End Time 2025-04-06 19:35:05 [2025-04-06 19:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849693', 'tblTempUsageDetail_20' ) start [2025-04-06 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849693', 'tblTempUsageDetail_20' ) end [2025-04-06 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849693', 'tblTempVendorCDR_20' ) start [2025-04-06 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849693', 'tblTempVendorCDR_20' ) end [2025-04-06 19:35:21] Production.INFO: ProcessCDR(1,14849693,1,1,2) [2025-04-06 19:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849693', 'tblTempUsageDetail_20' ) start [2025-04-06 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849693', 'tblTempUsageDetail_20' ) end [2025-04-06 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:35:24] Production.INFO: ==27232== Releasing lock... [2025-04-06 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:35:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:36:05 [end_date_ymd] => 2025-04-06 19:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:36:05' and `end` < '2025-04-06 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-04-06 19:36:18] Production.INFO: count ==4615 [2025-04-06 19:36:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:36:05 - End Time 2025-04-06 19:36:05 [2025-04-06 19:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849698', 'tblTempUsageDetail_20' ) start [2025-04-06 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849698', 'tblTempUsageDetail_20' ) end [2025-04-06 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849698', 'tblTempVendorCDR_20' ) start [2025-04-06 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849698', 'tblTempVendorCDR_20' ) end [2025-04-06 19:36:21] Production.INFO: ProcessCDR(1,14849698,1,1,2) [2025-04-06 19:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849698', 'tblTempUsageDetail_20' ) start [2025-04-06 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849698', 'tblTempUsageDetail_20' ) end [2025-04-06 19:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:36:26] Production.INFO: ==27304== Releasing lock... [2025-04-06 19:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:36:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:37:05 [end_date_ymd] => 2025-04-06 19:37:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:37:05' and `end` < '2025-04-06 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-04-06 19:37:19] Production.INFO: count ==4616 [2025-04-06 19:37:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:37:05 - End Time 2025-04-06 19:37:05 [2025-04-06 19:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849703', 'tblTempUsageDetail_20' ) start [2025-04-06 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849703', 'tblTempUsageDetail_20' ) end [2025-04-06 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849703', 'tblTempVendorCDR_20' ) start [2025-04-06 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849703', 'tblTempVendorCDR_20' ) end [2025-04-06 19:37:21] Production.INFO: ProcessCDR(1,14849703,1,1,2) [2025-04-06 19:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849703', 'tblTempUsageDetail_20' ) start [2025-04-06 19:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849703', 'tblTempUsageDetail_20' ) end [2025-04-06 19:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:37:26] Production.INFO: ==27375== Releasing lock... [2025-04-06 19:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:37:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:38:05 [end_date_ymd] => 2025-04-06 19:38:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:38:05' and `end` < '2025-04-06 19: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-04-06 19:38:18] Production.INFO: count ==4615 [2025-04-06 19:38:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:38:05 - End Time 2025-04-06 19:38:05 [2025-04-06 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849708', 'tblTempUsageDetail_20' ) start [2025-04-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849708', 'tblTempUsageDetail_20' ) end [2025-04-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849708', 'tblTempVendorCDR_20' ) start [2025-04-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849708', 'tblTempVendorCDR_20' ) end [2025-04-06 19:38:20] Production.INFO: ProcessCDR(1,14849708,1,1,2) [2025-04-06 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849708', 'tblTempUsageDetail_20' ) start [2025-04-06 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849708', 'tblTempUsageDetail_20' ) end [2025-04-06 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:38:24] Production.INFO: ==27448== Releasing lock... [2025-04-06 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:38:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:39:06 [end_date_ymd] => 2025-04-06 19:39:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:39:06' and `end` < '2025-04-06 19: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-04-06 19:39:19] Production.INFO: count ==4616 [2025-04-06 19:39:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:39:06 - End Time 2025-04-06 19:39:06 [2025-04-06 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849713', 'tblTempUsageDetail_20' ) start [2025-04-06 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849713', 'tblTempUsageDetail_20' ) end [2025-04-06 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849713', 'tblTempVendorCDR_20' ) start [2025-04-06 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849713', 'tblTempVendorCDR_20' ) end [2025-04-06 19:39:21] Production.INFO: ProcessCDR(1,14849713,1,1,2) [2025-04-06 19:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849713', 'tblTempUsageDetail_20' ) start [2025-04-06 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849713', 'tblTempUsageDetail_20' ) end [2025-04-06 19:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:39:26] Production.INFO: ==27518== Releasing lock... [2025-04-06 19:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:39:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:40:06 [end_date_ymd] => 2025-04-06 19:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:40:06' and `end` < '2025-04-06 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-04-06 19:40:20] Production.INFO: count ==4617 [2025-04-06 19:40:22] Production.ERROR: pbx CDR StartTime 2025-04-06 16:40:06 - End Time 2025-04-06 19:40:06 [2025-04-06 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849718', 'tblTempUsageDetail_20' ) start [2025-04-06 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849718', 'tblTempUsageDetail_20' ) end [2025-04-06 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849718', 'tblTempVendorCDR_20' ) start [2025-04-06 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849718', 'tblTempVendorCDR_20' ) end [2025-04-06 19:40:22] Production.INFO: ProcessCDR(1,14849718,1,1,2) [2025-04-06 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849718', 'tblTempUsageDetail_20' ) start [2025-04-06 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849718', 'tblTempUsageDetail_20' ) end [2025-04-06 19:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:40:27] Production.INFO: ==27597== Releasing lock... [2025-04-06 19:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:40:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:41:06 [end_date_ymd] => 2025-04-06 19:41:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:41:06' and `end` < '2025-04-06 19: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-04-06 19:41:19] Production.INFO: count ==4613 [2025-04-06 19:41:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:41:06 - End Time 2025-04-06 19:41:06 [2025-04-06 19:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849724', 'tblTempUsageDetail_20' ) start [2025-04-06 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849724', 'tblTempUsageDetail_20' ) end [2025-04-06 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849724', 'tblTempVendorCDR_20' ) start [2025-04-06 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849724', 'tblTempVendorCDR_20' ) end [2025-04-06 19:41:21] Production.INFO: ProcessCDR(1,14849724,1,1,2) [2025-04-06 19:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849724', 'tblTempUsageDetail_20' ) start [2025-04-06 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849724', 'tblTempUsageDetail_20' ) end [2025-04-06 19:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:41:26] Production.INFO: ==27676== Releasing lock... [2025-04-06 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:41:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:42:05 [end_date_ymd] => 2025-04-06 19:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:42:05' and `end` < '2025-04-06 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-04-06 19:42:19] Production.INFO: count ==4633 [2025-04-06 19:42:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:42:05 - End Time 2025-04-06 19:42:05 [2025-04-06 19:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849729', 'tblTempUsageDetail_20' ) start [2025-04-06 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849729', 'tblTempUsageDetail_20' ) end [2025-04-06 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849729', 'tblTempVendorCDR_20' ) start [2025-04-06 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849729', 'tblTempVendorCDR_20' ) end [2025-04-06 19:42:21] Production.INFO: ProcessCDR(1,14849729,1,1,2) [2025-04-06 19:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849729', 'tblTempUsageDetail_20' ) start [2025-04-06 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849729', 'tblTempUsageDetail_20' ) end [2025-04-06 19:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:42:26] Production.INFO: ==27761== Releasing lock... [2025-04-06 19:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:42:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:43:05 [end_date_ymd] => 2025-04-06 19:43:05 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:43:05' and `end` < '2025-04-06 19: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-04-06 19:43:19] Production.INFO: count ==4634 [2025-04-06 19:43:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:43:05 - End Time 2025-04-06 19:43:05 [2025-04-06 19:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849734', 'tblTempUsageDetail_20' ) start [2025-04-06 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849734', 'tblTempUsageDetail_20' ) end [2025-04-06 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849734', 'tblTempVendorCDR_20' ) start [2025-04-06 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849734', 'tblTempVendorCDR_20' ) end [2025-04-06 19:43:21] Production.INFO: ProcessCDR(1,14849734,1,1,2) [2025-04-06 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849734', 'tblTempUsageDetail_20' ) start [2025-04-06 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849734', 'tblTempUsageDetail_20' ) end [2025-04-06 19:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:43:26] Production.INFO: ==27868== Releasing lock... [2025-04-06 19:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:43:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:44:05 [end_date_ymd] => 2025-04-06 19:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:44:05' and `end` < '2025-04-06 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-04-06 19:44:18] Production.INFO: count ==4638 [2025-04-06 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:44:05 - End Time 2025-04-06 19:44:05 [2025-04-06 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849739', 'tblTempUsageDetail_20' ) start [2025-04-06 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849739', 'tblTempUsageDetail_20' ) end [2025-04-06 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849739', 'tblTempVendorCDR_20' ) start [2025-04-06 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849739', 'tblTempVendorCDR_20' ) end [2025-04-06 19:44:21] Production.INFO: ProcessCDR(1,14849739,1,1,2) [2025-04-06 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849739', 'tblTempUsageDetail_20' ) start [2025-04-06 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849739', 'tblTempUsageDetail_20' ) end [2025-04-06 19:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:44:26] Production.INFO: ==27973== Releasing lock... [2025-04-06 19:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:44:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:45:05 [end_date_ymd] => 2025-04-06 19:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:45:05' and `end` < '2025-04-06 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-04-06 19:45:19] Production.INFO: count ==4650 [2025-04-06 19:45:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:45:05 - End Time 2025-04-06 19:45:05 [2025-04-06 19:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849744', 'tblTempUsageDetail_20' ) start [2025-04-06 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849744', 'tblTempUsageDetail_20' ) end [2025-04-06 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849744', 'tblTempVendorCDR_20' ) start [2025-04-06 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849744', 'tblTempVendorCDR_20' ) end [2025-04-06 19:45:21] Production.INFO: ProcessCDR(1,14849744,1,1,2) [2025-04-06 19:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849744', 'tblTempUsageDetail_20' ) start [2025-04-06 19:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849744', 'tblTempUsageDetail_20' ) end [2025-04-06 19:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:45:27] Production.INFO: ==28078== Releasing lock... [2025-04-06 19:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:45:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:46:05 [end_date_ymd] => 2025-04-06 19:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:46:05' and `end` < '2025-04-06 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-04-06 19:46:18] Production.INFO: count ==4662 [2025-04-06 19:46:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:46:05 - End Time 2025-04-06 19:46:05 [2025-04-06 19:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849749', 'tblTempUsageDetail_20' ) start [2025-04-06 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849749', 'tblTempUsageDetail_20' ) end [2025-04-06 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849749', 'tblTempVendorCDR_20' ) start [2025-04-06 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849749', 'tblTempVendorCDR_20' ) end [2025-04-06 19:46:21] Production.INFO: ProcessCDR(1,14849749,1,1,2) [2025-04-06 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849749', 'tblTempUsageDetail_20' ) start [2025-04-06 19:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849749', 'tblTempUsageDetail_20' ) end [2025-04-06 19:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:46:26] Production.INFO: ==28225== Releasing lock... [2025-04-06 19:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:46:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:47:06 [end_date_ymd] => 2025-04-06 19:47:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:47:06' and `end` < '2025-04-06 19: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-04-06 19:47:19] Production.INFO: count ==4659 [2025-04-06 19:47:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:47:06 - End Time 2025-04-06 19:47:06 [2025-04-06 19:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849754', 'tblTempUsageDetail_20' ) start [2025-04-06 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849754', 'tblTempUsageDetail_20' ) end [2025-04-06 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849754', 'tblTempVendorCDR_20' ) start [2025-04-06 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849754', 'tblTempVendorCDR_20' ) end [2025-04-06 19:47:21] Production.INFO: ProcessCDR(1,14849754,1,1,2) [2025-04-06 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849754', 'tblTempUsageDetail_20' ) start [2025-04-06 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849754', 'tblTempUsageDetail_20' ) end [2025-04-06 19:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:47:25] Production.INFO: ==28339== Releasing lock... [2025-04-06 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:47:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:48:05 [end_date_ymd] => 2025-04-06 19:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:48:05' and `end` < '2025-04-06 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-04-06 19:48:19] Production.INFO: count ==4664 [2025-04-06 19:48:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:48:05 - End Time 2025-04-06 19:48:05 [2025-04-06 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849759', 'tblTempUsageDetail_20' ) start [2025-04-06 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849759', 'tblTempUsageDetail_20' ) end [2025-04-06 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849759', 'tblTempVendorCDR_20' ) start [2025-04-06 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849759', 'tblTempVendorCDR_20' ) end [2025-04-06 19:48:21] Production.INFO: ProcessCDR(1,14849759,1,1,2) [2025-04-06 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849759', 'tblTempUsageDetail_20' ) start [2025-04-06 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849759', 'tblTempUsageDetail_20' ) end [2025-04-06 19:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:48:26] Production.INFO: ==28443== Releasing lock... [2025-04-06 19:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:48:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:49:05 [end_date_ymd] => 2025-04-06 19:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:49:05' and `end` < '2025-04-06 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-04-06 19:49:18] Production.INFO: count ==4665 [2025-04-06 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:49:05 - End Time 2025-04-06 19:49:05 [2025-04-06 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849764', 'tblTempUsageDetail_20' ) start [2025-04-06 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849764', 'tblTempUsageDetail_20' ) end [2025-04-06 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849764', 'tblTempVendorCDR_20' ) start [2025-04-06 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849764', 'tblTempVendorCDR_20' ) end [2025-04-06 19:49:21] Production.INFO: ProcessCDR(1,14849764,1,1,2) [2025-04-06 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849764', 'tblTempUsageDetail_20' ) start [2025-04-06 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849764', 'tblTempUsageDetail_20' ) end [2025-04-06 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:49:24] Production.INFO: ==28552== Releasing lock... [2025-04-06 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:49:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:50:07 [end_date_ymd] => 2025-04-06 19:50:07 [RateCDR] => 1 ) [2025-04-06 19:50: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-04-06 16:50:07' and `end` < '2025-04-06 19:50: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-04-06 19:50:21] Production.INFO: count ==4667 [2025-04-06 19:50:23] Production.ERROR: pbx CDR StartTime 2025-04-06 16:50:07 - End Time 2025-04-06 19:50:07 [2025-04-06 19:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849770', 'tblTempUsageDetail_20' ) start [2025-04-06 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849770', 'tblTempUsageDetail_20' ) end [2025-04-06 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849770', 'tblTempVendorCDR_20' ) start [2025-04-06 19:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849770', 'tblTempVendorCDR_20' ) end [2025-04-06 19:50:23] Production.INFO: ProcessCDR(1,14849770,1,1,2) [2025-04-06 19:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849770', 'tblTempUsageDetail_20' ) start [2025-04-06 19:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849770', 'tblTempUsageDetail_20' ) end [2025-04-06 19:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:50:28] Production.INFO: ==28661== Releasing lock... [2025-04-06 19:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:50:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:51:05 [end_date_ymd] => 2025-04-06 19:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:51:05' and `end` < '2025-04-06 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-04-06 19:51:19] Production.INFO: count ==4640 [2025-04-06 19:51:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:51:05 - End Time 2025-04-06 19:51:05 [2025-04-06 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849775', 'tblTempUsageDetail_20' ) start [2025-04-06 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849775', 'tblTempUsageDetail_20' ) end [2025-04-06 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849775', 'tblTempVendorCDR_20' ) start [2025-04-06 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849775', 'tblTempVendorCDR_20' ) end [2025-04-06 19:51:21] Production.INFO: ProcessCDR(1,14849775,1,1,2) [2025-04-06 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849775', 'tblTempUsageDetail_20' ) start [2025-04-06 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849775', 'tblTempUsageDetail_20' ) end [2025-04-06 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:51:24] Production.INFO: ==28769== Releasing lock... [2025-04-06 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:51:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:52:06 [end_date_ymd] => 2025-04-06 19:52:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:52:06' and `end` < '2025-04-06 19: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-04-06 19:52:19] Production.INFO: count ==4647 [2025-04-06 19:52:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:52:06 - End Time 2025-04-06 19:52:06 [2025-04-06 19:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849780', 'tblTempUsageDetail_20' ) start [2025-04-06 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849780', 'tblTempUsageDetail_20' ) end [2025-04-06 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849780', 'tblTempVendorCDR_20' ) start [2025-04-06 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849780', 'tblTempVendorCDR_20' ) end [2025-04-06 19:52:21] Production.INFO: ProcessCDR(1,14849780,1,1,2) [2025-04-06 19:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849780', 'tblTempUsageDetail_20' ) start [2025-04-06 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849780', 'tblTempUsageDetail_20' ) end [2025-04-06 19:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:52:27] Production.INFO: ==28879== Releasing lock... [2025-04-06 19:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:52:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:53:05 [end_date_ymd] => 2025-04-06 19:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:53:05' and `end` < '2025-04-06 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-04-06 19:53:18] Production.INFO: count ==4647 [2025-04-06 19:53:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:53:05 - End Time 2025-04-06 19:53:05 [2025-04-06 19:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849785', 'tblTempUsageDetail_20' ) start [2025-04-06 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849785', 'tblTempUsageDetail_20' ) end [2025-04-06 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849785', 'tblTempVendorCDR_20' ) start [2025-04-06 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849785', 'tblTempVendorCDR_20' ) end [2025-04-06 19:53:21] Production.INFO: ProcessCDR(1,14849785,1,1,2) [2025-04-06 19:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849785', 'tblTempUsageDetail_20' ) start [2025-04-06 19:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849785', 'tblTempUsageDetail_20' ) end [2025-04-06 19:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:53:26] Production.INFO: ==28985== Releasing lock... [2025-04-06 19:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:53:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:54:06 [end_date_ymd] => 2025-04-06 19:54:06 [RateCDR] => 1 ) [2025-04-06 19:54: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-04-06 16:54:06' and `end` < '2025-04-06 19:54: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-04-06 19:54:19] Production.INFO: count ==4651 [2025-04-06 19:54:22] Production.ERROR: pbx CDR StartTime 2025-04-06 16:54:06 - End Time 2025-04-06 19:54:06 [2025-04-06 19:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849790', 'tblTempUsageDetail_20' ) start [2025-04-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849790', 'tblTempUsageDetail_20' ) end [2025-04-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849790', 'tblTempVendorCDR_20' ) start [2025-04-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849790', 'tblTempVendorCDR_20' ) end [2025-04-06 19:54:22] Production.INFO: ProcessCDR(1,14849790,1,1,2) [2025-04-06 19:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849790', 'tblTempUsageDetail_20' ) start [2025-04-06 19:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849790', 'tblTempUsageDetail_20' ) end [2025-04-06 19:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:54:27] Production.INFO: ==29092== Releasing lock... [2025-04-06 19:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:54:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:55:05 [end_date_ymd] => 2025-04-06 19:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:55:05' and `end` < '2025-04-06 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-04-06 19:55:18] Production.INFO: count ==4654 [2025-04-06 19:55:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:55:05 - End Time 2025-04-06 19:55:05 [2025-04-06 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849795', 'tblTempUsageDetail_20' ) start [2025-04-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849795', 'tblTempUsageDetail_20' ) end [2025-04-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849795', 'tblTempVendorCDR_20' ) start [2025-04-06 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849795', 'tblTempVendorCDR_20' ) end [2025-04-06 19:55:21] Production.INFO: ProcessCDR(1,14849795,1,1,2) [2025-04-06 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849795', 'tblTempUsageDetail_20' ) start [2025-04-06 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849795', 'tblTempUsageDetail_20' ) end [2025-04-06 19:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:55:26] Production.INFO: ==29202== Releasing lock... [2025-04-06 19:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:55:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:56:06 [end_date_ymd] => 2025-04-06 19:56:06 [RateCDR] => 1 ) [2025-04-06 19: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-04-06 16:56:06' and `end` < '2025-04-06 19: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-04-06 19:56:19] Production.INFO: count ==4654 [2025-04-06 19:56:22] Production.ERROR: pbx CDR StartTime 2025-04-06 16:56:06 - End Time 2025-04-06 19:56:06 [2025-04-06 19:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849800', 'tblTempUsageDetail_20' ) start [2025-04-06 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849800', 'tblTempUsageDetail_20' ) end [2025-04-06 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849800', 'tblTempVendorCDR_20' ) start [2025-04-06 19:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849800', 'tblTempVendorCDR_20' ) end [2025-04-06 19:56:22] Production.INFO: ProcessCDR(1,14849800,1,1,2) [2025-04-06 19:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849800', 'tblTempUsageDetail_20' ) start [2025-04-06 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849800', 'tblTempUsageDetail_20' ) end [2025-04-06 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:56:25] Production.INFO: ==29305== Releasing lock... [2025-04-06 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:56:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:57:05 [end_date_ymd] => 2025-04-06 19:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:57:05' and `end` < '2025-04-06 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-04-06 19:57:18] Production.INFO: count ==4664 [2025-04-06 19:57:21] Production.ERROR: pbx CDR StartTime 2025-04-06 16:57:05 - End Time 2025-04-06 19:57:05 [2025-04-06 19:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849805', 'tblTempUsageDetail_20' ) start [2025-04-06 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849805', 'tblTempUsageDetail_20' ) end [2025-04-06 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849805', 'tblTempVendorCDR_20' ) start [2025-04-06 19:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849805', 'tblTempVendorCDR_20' ) end [2025-04-06 19:57:21] Production.INFO: ProcessCDR(1,14849805,1,1,2) [2025-04-06 19:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849805', 'tblTempUsageDetail_20' ) start [2025-04-06 19:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849805', 'tblTempUsageDetail_20' ) end [2025-04-06 19:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:57:26] Production.INFO: ==29379== Releasing lock... [2025-04-06 19:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:57:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:58:05 [end_date_ymd] => 2025-04-06 19:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:58:05' and `end` < '2025-04-06 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-04-06 19:58:18] Production.INFO: count ==4676 [2025-04-06 19:58:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:58:05 - End Time 2025-04-06 19:58:05 [2025-04-06 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849810', 'tblTempUsageDetail_20' ) start [2025-04-06 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849810', 'tblTempUsageDetail_20' ) end [2025-04-06 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849810', 'tblTempVendorCDR_20' ) start [2025-04-06 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849810', 'tblTempVendorCDR_20' ) end [2025-04-06 19:58:21] Production.INFO: ProcessCDR(1,14849810,1,1,2) [2025-04-06 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849810', 'tblTempUsageDetail_20' ) start [2025-04-06 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849810', 'tblTempUsageDetail_20' ) end [2025-04-06 19:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:58:26] Production.INFO: ==29450== Releasing lock... [2025-04-06 19:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:58:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 16:59:05 [end_date_ymd] => 2025-04-06 19:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 16:59:05' and `end` < '2025-04-06 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-04-06 19:59:18] Production.INFO: count ==4682 [2025-04-06 19:59:20] Production.ERROR: pbx CDR StartTime 2025-04-06 16:59:05 - End Time 2025-04-06 19:59:05 [2025-04-06 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849815', 'tblTempUsageDetail_20' ) start [2025-04-06 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849815', 'tblTempUsageDetail_20' ) end [2025-04-06 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849815', 'tblTempVendorCDR_20' ) start [2025-04-06 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849815', 'tblTempVendorCDR_20' ) end [2025-04-06 19:59:20] Production.INFO: ProcessCDR(1,14849815,1,1,2) [2025-04-06 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849815', 'tblTempUsageDetail_20' ) start [2025-04-06 19:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849815', 'tblTempUsageDetail_20' ) end [2025-04-06 19:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 19:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 19:59:26] Production.INFO: ==29519== Releasing lock... [2025-04-06 19:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 19:59:26] Production.INFO: 63 MB #Memory Used# [2025-04-06 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:00:06 [end_date_ymd] => 2025-04-06 20:00:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:00:06' and `end` < '2025-04-06 20: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-04-06 20:00:19] Production.INFO: count ==4670 [2025-04-06 20:00:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:00:06 - End Time 2025-04-06 20:00:06 [2025-04-06 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849821', 'tblTempUsageDetail_20' ) start [2025-04-06 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849821', 'tblTempUsageDetail_20' ) end [2025-04-06 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849821', 'tblTempVendorCDR_20' ) start [2025-04-06 20:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849821', 'tblTempVendorCDR_20' ) end [2025-04-06 20:00:22] Production.INFO: ProcessCDR(1,14849821,1,1,2) [2025-04-06 20:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849821', 'tblTempUsageDetail_20' ) start [2025-04-06 20:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849821', 'tblTempUsageDetail_20' ) end [2025-04-06 20:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:00:27] Production.INFO: ==29594== Releasing lock... [2025-04-06 20:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:00:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:01:05 [end_date_ymd] => 2025-04-06 20:01:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:01:05' and `end` < '2025-04-06 20: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-04-06 20:01:18] Production.INFO: count ==4646 [2025-04-06 20:01:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:01:05 - End Time 2025-04-06 20:01:05 [2025-04-06 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849826', 'tblTempUsageDetail_20' ) start [2025-04-06 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849826', 'tblTempUsageDetail_20' ) end [2025-04-06 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849826', 'tblTempVendorCDR_20' ) start [2025-04-06 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849826', 'tblTempVendorCDR_20' ) end [2025-04-06 20:01:21] Production.INFO: ProcessCDR(1,14849826,1,1,2) [2025-04-06 20:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849826', 'tblTempUsageDetail_20' ) start [2025-04-06 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849826', 'tblTempUsageDetail_20' ) end [2025-04-06 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:01:26] Production.INFO: ==29755== Releasing lock... [2025-04-06 20:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:01:26] Production.INFO: 63 MB #Memory Used# [2025-04-06 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:02:06 [end_date_ymd] => 2025-04-06 20:02:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:02:06' and `end` < '2025-04-06 20: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-04-06 20:02:19] Production.INFO: count ==4658 [2025-04-06 20:02:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:02:06 - End Time 2025-04-06 20:02:06 [2025-04-06 20:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849831', 'tblTempUsageDetail_20' ) start [2025-04-06 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849831', 'tblTempUsageDetail_20' ) end [2025-04-06 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849831', 'tblTempVendorCDR_20' ) start [2025-04-06 20:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849831', 'tblTempVendorCDR_20' ) end [2025-04-06 20:02:22] Production.INFO: ProcessCDR(1,14849831,1,1,2) [2025-04-06 20:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849831', 'tblTempUsageDetail_20' ) start [2025-04-06 20:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849831', 'tblTempUsageDetail_20' ) end [2025-04-06 20:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:02:27] Production.INFO: ==29828== Releasing lock... [2025-04-06 20:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:02:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:03:05 [end_date_ymd] => 2025-04-06 20:03:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:03:05' and `end` < '2025-04-06 20: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-04-06 20:03:18] Production.INFO: count ==4660 [2025-04-06 20:03:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:03:05 - End Time 2025-04-06 20:03:05 [2025-04-06 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849836', 'tblTempUsageDetail_20' ) start [2025-04-06 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849836', 'tblTempUsageDetail_20' ) end [2025-04-06 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849836', 'tblTempVendorCDR_20' ) start [2025-04-06 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849836', 'tblTempVendorCDR_20' ) end [2025-04-06 20:03:20] Production.INFO: ProcessCDR(1,14849836,1,1,2) [2025-04-06 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849836', 'tblTempUsageDetail_20' ) start [2025-04-06 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849836', 'tblTempUsageDetail_20' ) end [2025-04-06 20:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:03:25] Production.INFO: ==29899== Releasing lock... [2025-04-06 20:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:03:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:04:06 [end_date_ymd] => 2025-04-06 20:04:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:04:06' and `end` < '2025-04-06 20: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-04-06 20:04:19] Production.INFO: count ==4663 [2025-04-06 20:04:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:04:06 - End Time 2025-04-06 20:04:06 [2025-04-06 20:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849841', 'tblTempUsageDetail_20' ) start [2025-04-06 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849841', 'tblTempUsageDetail_20' ) end [2025-04-06 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849841', 'tblTempVendorCDR_20' ) start [2025-04-06 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849841', 'tblTempVendorCDR_20' ) end [2025-04-06 20:04:21] Production.INFO: ProcessCDR(1,14849841,1,1,2) [2025-04-06 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849841', 'tblTempUsageDetail_20' ) start [2025-04-06 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849841', 'tblTempUsageDetail_20' ) end [2025-04-06 20:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:04:26] Production.INFO: ==29971== Releasing lock... [2025-04-06 20:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:04:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:05:05 [end_date_ymd] => 2025-04-06 20:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:05:05' and `end` < '2025-04-06 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-04-06 20:05:18] Production.INFO: count ==4665 [2025-04-06 20:05:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:05:05 - End Time 2025-04-06 20:05:05 [2025-04-06 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849846', 'tblTempUsageDetail_20' ) start [2025-04-06 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849846', 'tblTempUsageDetail_20' ) end [2025-04-06 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849846', 'tblTempVendorCDR_20' ) start [2025-04-06 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849846', 'tblTempVendorCDR_20' ) end [2025-04-06 20:05:21] Production.INFO: ProcessCDR(1,14849846,1,1,2) [2025-04-06 20:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849846', 'tblTempUsageDetail_20' ) start [2025-04-06 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849846', 'tblTempUsageDetail_20' ) end [2025-04-06 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:05:24] Production.INFO: ==30040== Releasing lock... [2025-04-06 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:05:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:06:05 [end_date_ymd] => 2025-04-06 20:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:06:05' and `end` < '2025-04-06 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-04-06 20:06:19] Production.INFO: count ==4667 [2025-04-06 20:06:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:06:05 - End Time 2025-04-06 20:06:05 [2025-04-06 20:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849851', 'tblTempUsageDetail_20' ) start [2025-04-06 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849851', 'tblTempUsageDetail_20' ) end [2025-04-06 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849851', 'tblTempVendorCDR_20' ) start [2025-04-06 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849851', 'tblTempVendorCDR_20' ) end [2025-04-06 20:06:21] Production.INFO: ProcessCDR(1,14849851,1,1,2) [2025-04-06 20:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849851', 'tblTempUsageDetail_20' ) start [2025-04-06 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849851', 'tblTempUsageDetail_20' ) end [2025-04-06 20:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:06:26] Production.INFO: ==30117== Releasing lock... [2025-04-06 20:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:06:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:07:05 [end_date_ymd] => 2025-04-06 20:07:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:07:05' and `end` < '2025-04-06 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-04-06 20:07:18] Production.INFO: count ==4652 [2025-04-06 20:07:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:07:05 - End Time 2025-04-06 20:07:05 [2025-04-06 20:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849856', 'tblTempUsageDetail_20' ) start [2025-04-06 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849856', 'tblTempUsageDetail_20' ) end [2025-04-06 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849856', 'tblTempVendorCDR_20' ) start [2025-04-06 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849856', 'tblTempVendorCDR_20' ) end [2025-04-06 20:07:21] Production.INFO: ProcessCDR(1,14849856,1,1,2) [2025-04-06 20:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849856', 'tblTempUsageDetail_20' ) start [2025-04-06 20:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849856', 'tblTempUsageDetail_20' ) end [2025-04-06 20:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:07:26] Production.INFO: ==30193== Releasing lock... [2025-04-06 20:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:07:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:08:06 [end_date_ymd] => 2025-04-06 20:08:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:08:06' and `end` < '2025-04-06 20: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-04-06 20:08:19] Production.INFO: count ==4650 [2025-04-06 20:08:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:08:06 - End Time 2025-04-06 20:08:06 [2025-04-06 20:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849861', 'tblTempUsageDetail_20' ) start [2025-04-06 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849861', 'tblTempUsageDetail_20' ) end [2025-04-06 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849861', 'tblTempVendorCDR_20' ) start [2025-04-06 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849861', 'tblTempVendorCDR_20' ) end [2025-04-06 20:08:21] Production.INFO: ProcessCDR(1,14849861,1,1,2) [2025-04-06 20:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849861', 'tblTempUsageDetail_20' ) start [2025-04-06 20:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849861', 'tblTempUsageDetail_20' ) end [2025-04-06 20:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:08:27] Production.INFO: ==30264== Releasing lock... [2025-04-06 20:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:08:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:09:05 [end_date_ymd] => 2025-04-06 20:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:09:05' and `end` < '2025-04-06 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-04-06 20:09:18] Production.INFO: count ==4656 [2025-04-06 20:09:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:09:05 - End Time 2025-04-06 20:09:05 [2025-04-06 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849866', 'tblTempUsageDetail_20' ) start [2025-04-06 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849866', 'tblTempUsageDetail_20' ) end [2025-04-06 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849866', 'tblTempVendorCDR_20' ) start [2025-04-06 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849866', 'tblTempVendorCDR_20' ) end [2025-04-06 20:09:20] Production.INFO: ProcessCDR(1,14849866,1,1,2) [2025-04-06 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849866', 'tblTempUsageDetail_20' ) start [2025-04-06 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849866', 'tblTempUsageDetail_20' ) end [2025-04-06 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:09:26] Production.INFO: ==30338== Releasing lock... [2025-04-06 20:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:09:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:10:06 [end_date_ymd] => 2025-04-06 20:10:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:10:06' and `end` < '2025-04-06 20: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-04-06 20:10:19] Production.INFO: count ==4658 [2025-04-06 20:10:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:10:06 - End Time 2025-04-06 20:10:06 [2025-04-06 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849871', 'tblTempUsageDetail_20' ) start [2025-04-06 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849871', 'tblTempUsageDetail_20' ) end [2025-04-06 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849871', 'tblTempVendorCDR_20' ) start [2025-04-06 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849871', 'tblTempVendorCDR_20' ) end [2025-04-06 20:10:21] Production.INFO: ProcessCDR(1,14849871,1,1,2) [2025-04-06 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849871', 'tblTempUsageDetail_20' ) start [2025-04-06 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849871', 'tblTempUsageDetail_20' ) end [2025-04-06 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:10:25] Production.INFO: ==30412== Releasing lock... [2025-04-06 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:10:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:11:05 [end_date_ymd] => 2025-04-06 20:11:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:11:05' and `end` < '2025-04-06 20: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-04-06 20:11:18] Production.INFO: count ==4635 [2025-04-06 20:11:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:11:05 - End Time 2025-04-06 20:11:05 [2025-04-06 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849877', 'tblTempUsageDetail_20' ) start [2025-04-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849877', 'tblTempUsageDetail_20' ) end [2025-04-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849877', 'tblTempVendorCDR_20' ) start [2025-04-06 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849877', 'tblTempVendorCDR_20' ) end [2025-04-06 20:11:20] Production.INFO: ProcessCDR(1,14849877,1,1,2) [2025-04-06 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849877', 'tblTempUsageDetail_20' ) start [2025-04-06 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849877', 'tblTempUsageDetail_20' ) end [2025-04-06 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:11:24] Production.INFO: ==30489== Releasing lock... [2025-04-06 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:11:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:12:05 [end_date_ymd] => 2025-04-06 20:12:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:12:05' and `end` < '2025-04-06 20: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-04-06 20:12:19] Production.INFO: count ==4637 [2025-04-06 20:12:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:12:05 - End Time 2025-04-06 20:12:05 [2025-04-06 20:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849882', 'tblTempUsageDetail_20' ) start [2025-04-06 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849882', 'tblTempUsageDetail_20' ) end [2025-04-06 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849882', 'tblTempVendorCDR_20' ) start [2025-04-06 20:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849882', 'tblTempVendorCDR_20' ) end [2025-04-06 20:12:21] Production.INFO: ProcessCDR(1,14849882,1,1,2) [2025-04-06 20:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849882', 'tblTempUsageDetail_20' ) start [2025-04-06 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849882', 'tblTempUsageDetail_20' ) end [2025-04-06 20:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:12:26] Production.INFO: ==30563== Releasing lock... [2025-04-06 20:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:12:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:13:05 [end_date_ymd] => 2025-04-06 20:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:13:05' and `end` < '2025-04-06 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-04-06 20:13:18] Production.INFO: count ==4649 [2025-04-06 20:13:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:13:05 - End Time 2025-04-06 20:13:05 [2025-04-06 20:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849887', 'tblTempUsageDetail_20' ) start [2025-04-06 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849887', 'tblTempUsageDetail_20' ) end [2025-04-06 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849887', 'tblTempVendorCDR_20' ) start [2025-04-06 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849887', 'tblTempVendorCDR_20' ) end [2025-04-06 20:13:21] Production.INFO: ProcessCDR(1,14849887,1,1,2) [2025-04-06 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849887', 'tblTempUsageDetail_20' ) start [2025-04-06 20:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849887', 'tblTempUsageDetail_20' ) end [2025-04-06 20:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:13:26] Production.INFO: ==30633== Releasing lock... [2025-04-06 20:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:13:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:14:05 [end_date_ymd] => 2025-04-06 20:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:14:05' and `end` < '2025-04-06 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-04-06 20:14:19] Production.INFO: count ==4669 [2025-04-06 20:14:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:14:05 - End Time 2025-04-06 20:14:05 [2025-04-06 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849892', 'tblTempUsageDetail_20' ) start [2025-04-06 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849892', 'tblTempUsageDetail_20' ) end [2025-04-06 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849892', 'tblTempVendorCDR_20' ) start [2025-04-06 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849892', 'tblTempVendorCDR_20' ) end [2025-04-06 20:14:21] Production.INFO: ProcessCDR(1,14849892,1,1,2) [2025-04-06 20:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849892', 'tblTempUsageDetail_20' ) start [2025-04-06 20:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849892', 'tblTempUsageDetail_20' ) end [2025-04-06 20:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:14:27] Production.INFO: ==30705== Releasing lock... [2025-04-06 20:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:14:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:15:05 [end_date_ymd] => 2025-04-06 20:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:15:05' and `end` < '2025-04-06 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-04-06 20:15:19] Production.INFO: count ==4666 [2025-04-06 20:15:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:15:05 - End Time 2025-04-06 20:15:05 [2025-04-06 20:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849897', 'tblTempUsageDetail_20' ) start [2025-04-06 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849897', 'tblTempUsageDetail_20' ) end [2025-04-06 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849897', 'tblTempVendorCDR_20' ) start [2025-04-06 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849897', 'tblTempVendorCDR_20' ) end [2025-04-06 20:15:21] Production.INFO: ProcessCDR(1,14849897,1,1,2) [2025-04-06 20:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849897', 'tblTempUsageDetail_20' ) start [2025-04-06 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849897', 'tblTempUsageDetail_20' ) end [2025-04-06 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:15:25] Production.INFO: ==30775== Releasing lock... [2025-04-06 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:15:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:16:05 [end_date_ymd] => 2025-04-06 20:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:16:05' and `end` < '2025-04-06 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-04-06 20:16:19] Production.INFO: count ==4650 [2025-04-06 20:16:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:16:05 - End Time 2025-04-06 20:16:05 [2025-04-06 20:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849902', 'tblTempUsageDetail_20' ) start [2025-04-06 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849902', 'tblTempUsageDetail_20' ) end [2025-04-06 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849902', 'tblTempVendorCDR_20' ) start [2025-04-06 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849902', 'tblTempVendorCDR_20' ) end [2025-04-06 20:16:21] Production.INFO: ProcessCDR(1,14849902,1,1,2) [2025-04-06 20:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849902', 'tblTempUsageDetail_20' ) start [2025-04-06 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849902', 'tblTempUsageDetail_20' ) end [2025-04-06 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:16:24] Production.INFO: ==30846== Releasing lock... [2025-04-06 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:16:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:17:06 [end_date_ymd] => 2025-04-06 20:17:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:17:06' and `end` < '2025-04-06 20: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-04-06 20:17:19] Production.INFO: count ==4615 [2025-04-06 20:17:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:17:06 - End Time 2025-04-06 20:17:06 [2025-04-06 20:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849907', 'tblTempUsageDetail_20' ) start [2025-04-06 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849907', 'tblTempUsageDetail_20' ) end [2025-04-06 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849907', 'tblTempVendorCDR_20' ) start [2025-04-06 20:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849907', 'tblTempVendorCDR_20' ) end [2025-04-06 20:17:22] Production.INFO: ProcessCDR(1,14849907,1,1,2) [2025-04-06 20:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849907', 'tblTempUsageDetail_20' ) start [2025-04-06 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849907', 'tblTempUsageDetail_20' ) end [2025-04-06 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:17:25] Production.INFO: ==30957== Releasing lock... [2025-04-06 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:17:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:18:05 [end_date_ymd] => 2025-04-06 20:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:18:05' and `end` < '2025-04-06 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-04-06 20:18:18] Production.INFO: count ==4618 [2025-04-06 20:18:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:18:05 - End Time 2025-04-06 20:18:05 [2025-04-06 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849912', 'tblTempUsageDetail_20' ) start [2025-04-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849912', 'tblTempUsageDetail_20' ) end [2025-04-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849912', 'tblTempVendorCDR_20' ) start [2025-04-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849912', 'tblTempVendorCDR_20' ) end [2025-04-06 20:18:20] Production.INFO: ProcessCDR(1,14849912,1,1,2) [2025-04-06 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849912', 'tblTempUsageDetail_20' ) start [2025-04-06 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849912', 'tblTempUsageDetail_20' ) end [2025-04-06 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:18:24] Production.INFO: ==31028== Releasing lock... [2025-04-06 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:18:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:19:06 [end_date_ymd] => 2025-04-06 20:19:06 [RateCDR] => 1 ) [2025-04-06 20:19: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-04-06 17:19:06' and `end` < '2025-04-06 20:19: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-04-06 20:19:19] Production.INFO: count ==4618 [2025-04-06 20:19:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:19:06 - End Time 2025-04-06 20:19:06 [2025-04-06 20:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849917', 'tblTempUsageDetail_20' ) start [2025-04-06 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849917', 'tblTempUsageDetail_20' ) end [2025-04-06 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849917', 'tblTempVendorCDR_20' ) start [2025-04-06 20:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849917', 'tblTempVendorCDR_20' ) end [2025-04-06 20:19:21] Production.INFO: ProcessCDR(1,14849917,1,1,2) [2025-04-06 20:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849917', 'tblTempUsageDetail_20' ) start [2025-04-06 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849917', 'tblTempUsageDetail_20' ) end [2025-04-06 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:19:25] Production.INFO: ==31099== Releasing lock... [2025-04-06 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:19:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:20:05 [end_date_ymd] => 2025-04-06 20:20:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:20:05' and `end` < '2025-04-06 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-04-06 20:20:19] Production.INFO: count ==4625 [2025-04-06 20:20:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:20:05 - End Time 2025-04-06 20:20:05 [2025-04-06 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849923', 'tblTempUsageDetail_20' ) start [2025-04-06 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849923', 'tblTempUsageDetail_20' ) end [2025-04-06 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849923', 'tblTempVendorCDR_20' ) start [2025-04-06 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849923', 'tblTempVendorCDR_20' ) end [2025-04-06 20:20:21] Production.INFO: ProcessCDR(1,14849923,1,1,2) [2025-04-06 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849923', 'tblTempUsageDetail_20' ) start [2025-04-06 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849923', 'tblTempUsageDetail_20' ) end [2025-04-06 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:20:25] Production.INFO: ==31171== Releasing lock... [2025-04-06 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:20:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:21:05 [end_date_ymd] => 2025-04-06 20:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:21:05' and `end` < '2025-04-06 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-04-06 20:21:18] Production.INFO: count ==4633 [2025-04-06 20:21:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:21:05 - End Time 2025-04-06 20:21:05 [2025-04-06 20:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849928', 'tblTempUsageDetail_20' ) start [2025-04-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849928', 'tblTempUsageDetail_20' ) end [2025-04-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849928', 'tblTempVendorCDR_20' ) start [2025-04-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849928', 'tblTempVendorCDR_20' ) end [2025-04-06 20:21:21] Production.INFO: ProcessCDR(1,14849928,1,1,2) [2025-04-06 20:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849928', 'tblTempUsageDetail_20' ) start [2025-04-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849928', 'tblTempUsageDetail_20' ) end [2025-04-06 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:21:24] Production.INFO: ==31244== Releasing lock... [2025-04-06 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:21:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:22:04 [end_date_ymd] => 2025-04-06 20:22:04 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:22:04' and `end` < '2025-04-06 20: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-04-06 20:22:18] Production.INFO: count ==4628 [2025-04-06 20:22:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:22:04 - End Time 2025-04-06 20:22:04 [2025-04-06 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849933', 'tblTempUsageDetail_20' ) start [2025-04-06 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849933', 'tblTempUsageDetail_20' ) end [2025-04-06 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849933', 'tblTempVendorCDR_20' ) start [2025-04-06 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849933', 'tblTempVendorCDR_20' ) end [2025-04-06 20:22:20] Production.INFO: ProcessCDR(1,14849933,1,1,2) [2025-04-06 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849933', 'tblTempUsageDetail_20' ) start [2025-04-06 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849933', 'tblTempUsageDetail_20' ) end [2025-04-06 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:22:24] Production.INFO: ==31317== Releasing lock... [2025-04-06 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:22:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:23:05 [end_date_ymd] => 2025-04-06 20:23:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:23:05' and `end` < '2025-04-06 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-04-06 20:23:19] Production.INFO: count ==4625 [2025-04-06 20:23:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:23:05 - End Time 2025-04-06 20:23:05 [2025-04-06 20:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849938', 'tblTempUsageDetail_20' ) start [2025-04-06 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849938', 'tblTempUsageDetail_20' ) end [2025-04-06 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849938', 'tblTempVendorCDR_20' ) start [2025-04-06 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849938', 'tblTempVendorCDR_20' ) end [2025-04-06 20:23:21] Production.INFO: ProcessCDR(1,14849938,1,1,2) [2025-04-06 20:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849938', 'tblTempUsageDetail_20' ) start [2025-04-06 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849938', 'tblTempUsageDetail_20' ) end [2025-04-06 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:23:25] Production.INFO: ==31393== Releasing lock... [2025-04-06 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:23:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:24:05 [end_date_ymd] => 2025-04-06 20:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:24:05' and `end` < '2025-04-06 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-04-06 20:24:18] Production.INFO: count ==4628 [2025-04-06 20:24:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:24:05 - End Time 2025-04-06 20:24:05 [2025-04-06 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849943', 'tblTempUsageDetail_20' ) start [2025-04-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849943', 'tblTempUsageDetail_20' ) end [2025-04-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849943', 'tblTempVendorCDR_20' ) start [2025-04-06 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849943', 'tblTempVendorCDR_20' ) end [2025-04-06 20:24:20] Production.INFO: ProcessCDR(1,14849943,1,1,2) [2025-04-06 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849943', 'tblTempUsageDetail_20' ) start [2025-04-06 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849943', 'tblTempUsageDetail_20' ) end [2025-04-06 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:24:25] Production.INFO: ==31465== Releasing lock... [2025-04-06 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:24:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:25:05 [end_date_ymd] => 2025-04-06 20:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:25:05' and `end` < '2025-04-06 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-04-06 20:25:18] Production.INFO: count ==4638 [2025-04-06 20:25:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:25:05 - End Time 2025-04-06 20:25:05 [2025-04-06 20:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849948', 'tblTempUsageDetail_20' ) start [2025-04-06 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849948', 'tblTempUsageDetail_20' ) end [2025-04-06 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849948', 'tblTempVendorCDR_20' ) start [2025-04-06 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849948', 'tblTempVendorCDR_20' ) end [2025-04-06 20:25:21] Production.INFO: ProcessCDR(1,14849948,1,1,2) [2025-04-06 20:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849948', 'tblTempUsageDetail_20' ) start [2025-04-06 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849948', 'tblTempUsageDetail_20' ) end [2025-04-06 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:25:24] Production.INFO: ==31534== Releasing lock... [2025-04-06 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:25:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:26:05 [end_date_ymd] => 2025-04-06 20:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:26:05' and `end` < '2025-04-06 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-04-06 20:26:18] Production.INFO: count ==4643 [2025-04-06 20:26:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:26:05 - End Time 2025-04-06 20:26:05 [2025-04-06 20:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849953', 'tblTempUsageDetail_20' ) start [2025-04-06 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849953', 'tblTempUsageDetail_20' ) end [2025-04-06 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849953', 'tblTempVendorCDR_20' ) start [2025-04-06 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849953', 'tblTempVendorCDR_20' ) end [2025-04-06 20:26:21] Production.INFO: ProcessCDR(1,14849953,1,1,2) [2025-04-06 20:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849953', 'tblTempUsageDetail_20' ) start [2025-04-06 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849953', 'tblTempUsageDetail_20' ) end [2025-04-06 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:26:24] Production.INFO: ==31612== Releasing lock... [2025-04-06 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:26:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:27:05 [end_date_ymd] => 2025-04-06 20:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:27:05' and `end` < '2025-04-06 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-04-06 20:27:19] Production.INFO: count ==4642 [2025-04-06 20:27:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:27:05 - End Time 2025-04-06 20:27:05 [2025-04-06 20:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849958', 'tblTempUsageDetail_20' ) start [2025-04-06 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849958', 'tblTempUsageDetail_20' ) end [2025-04-06 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849958', 'tblTempVendorCDR_20' ) start [2025-04-06 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849958', 'tblTempVendorCDR_20' ) end [2025-04-06 20:27:21] Production.INFO: ProcessCDR(1,14849958,1,1,2) [2025-04-06 20:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849958', 'tblTempUsageDetail_20' ) start [2025-04-06 20:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849958', 'tblTempUsageDetail_20' ) end [2025-04-06 20:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:27:25] Production.INFO: ==31681== Releasing lock... [2025-04-06 20:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:27:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:28:05 [end_date_ymd] => 2025-04-06 20:28:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:28:05' and `end` < '2025-04-06 20: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-04-06 20:28:18] Production.INFO: count ==4642 [2025-04-06 20:28:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:28:05 - End Time 2025-04-06 20:28:05 [2025-04-06 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849963', 'tblTempUsageDetail_20' ) start [2025-04-06 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849963', 'tblTempUsageDetail_20' ) end [2025-04-06 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849963', 'tblTempVendorCDR_20' ) start [2025-04-06 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849963', 'tblTempVendorCDR_20' ) end [2025-04-06 20:28:21] Production.INFO: ProcessCDR(1,14849963,1,1,2) [2025-04-06 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849963', 'tblTempUsageDetail_20' ) start [2025-04-06 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849963', 'tblTempUsageDetail_20' ) end [2025-04-06 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:28:24] Production.INFO: ==31754== Releasing lock... [2025-04-06 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:28:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:29:05 [end_date_ymd] => 2025-04-06 20:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:29:05' and `end` < '2025-04-06 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-04-06 20:29:18] Production.INFO: count ==4641 [2025-04-06 20:29:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:29:05 - End Time 2025-04-06 20:29:05 [2025-04-06 20:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849968', 'tblTempUsageDetail_20' ) start [2025-04-06 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849968', 'tblTempUsageDetail_20' ) end [2025-04-06 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849968', 'tblTempVendorCDR_20' ) start [2025-04-06 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849968', 'tblTempVendorCDR_20' ) end [2025-04-06 20:29:21] Production.INFO: ProcessCDR(1,14849968,1,1,2) [2025-04-06 20:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849968', 'tblTempUsageDetail_20' ) start [2025-04-06 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849968', 'tblTempUsageDetail_20' ) end [2025-04-06 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:29:24] Production.INFO: ==31826== Releasing lock... [2025-04-06 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:29:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:30:06 [end_date_ymd] => 2025-04-06 20:30:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:30:06' and `end` < '2025-04-06 20: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-04-06 20:30:19] Production.INFO: count ==4641 [2025-04-06 20:30:22] Production.ERROR: pbx CDR StartTime 2025-04-06 17:30:06 - End Time 2025-04-06 20:30:06 [2025-04-06 20:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849974', 'tblTempUsageDetail_20' ) start [2025-04-06 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849974', 'tblTempUsageDetail_20' ) end [2025-04-06 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849974', 'tblTempVendorCDR_20' ) start [2025-04-06 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849974', 'tblTempVendorCDR_20' ) end [2025-04-06 20:30:22] Production.INFO: ProcessCDR(1,14849974,1,1,2) [2025-04-06 20:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849974', 'tblTempUsageDetail_20' ) start [2025-04-06 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849974', 'tblTempUsageDetail_20' ) end [2025-04-06 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:30:25] Production.INFO: ==31899== Releasing lock... [2025-04-06 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:30:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:31:05 [end_date_ymd] => 2025-04-06 20:31:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:31:05' and `end` < '2025-04-06 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-04-06 20:31:18] Production.INFO: count ==4609 [2025-04-06 20:31:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:31:05 - End Time 2025-04-06 20:31:05 [2025-04-06 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849979', 'tblTempUsageDetail_20' ) start [2025-04-06 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849979', 'tblTempUsageDetail_20' ) end [2025-04-06 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849979', 'tblTempVendorCDR_20' ) start [2025-04-06 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849979', 'tblTempVendorCDR_20' ) end [2025-04-06 20:31:20] Production.INFO: ProcessCDR(1,14849979,1,1,2) [2025-04-06 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849979', 'tblTempUsageDetail_20' ) start [2025-04-06 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849979', 'tblTempUsageDetail_20' ) end [2025-04-06 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:31:24] Production.INFO: ==31973== Releasing lock... [2025-04-06 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:31:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:32:05 [end_date_ymd] => 2025-04-06 20:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:32:05' and `end` < '2025-04-06 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-04-06 20:32:18] Production.INFO: count ==4605 [2025-04-06 20:32:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:32:05 - End Time 2025-04-06 20:32:05 [2025-04-06 20:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849984', 'tblTempUsageDetail_20' ) start [2025-04-06 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849984', 'tblTempUsageDetail_20' ) end [2025-04-06 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849984', 'tblTempVendorCDR_20' ) start [2025-04-06 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849984', 'tblTempVendorCDR_20' ) end [2025-04-06 20:32:21] Production.INFO: ProcessCDR(1,14849984,1,1,2) [2025-04-06 20:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849984', 'tblTempUsageDetail_20' ) start [2025-04-06 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849984', 'tblTempUsageDetail_20' ) end [2025-04-06 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:32:24] Production.INFO: ==32083== Releasing lock... [2025-04-06 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:32:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:33:05 [end_date_ymd] => 2025-04-06 20:33:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:33:05' and `end` < '2025-04-06 20: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-04-06 20:33:18] Production.INFO: count ==4608 [2025-04-06 20:33:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:33:05 - End Time 2025-04-06 20:33:05 [2025-04-06 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849989', 'tblTempUsageDetail_20' ) start [2025-04-06 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849989', 'tblTempUsageDetail_20' ) end [2025-04-06 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849989', 'tblTempVendorCDR_20' ) start [2025-04-06 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849989', 'tblTempVendorCDR_20' ) end [2025-04-06 20:33:20] Production.INFO: ProcessCDR(1,14849989,1,1,2) [2025-04-06 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849989', 'tblTempUsageDetail_20' ) start [2025-04-06 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849989', 'tblTempUsageDetail_20' ) end [2025-04-06 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:33:23] Production.INFO: ==32154== Releasing lock... [2025-04-06 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:33:23] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:34:05 [end_date_ymd] => 2025-04-06 20:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:34:05' and `end` < '2025-04-06 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-04-06 20:34:18] Production.INFO: count ==4607 [2025-04-06 20:34:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:34:05 - End Time 2025-04-06 20:34:05 [2025-04-06 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849994', 'tblTempUsageDetail_20' ) start [2025-04-06 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849994', 'tblTempUsageDetail_20' ) end [2025-04-06 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849994', 'tblTempVendorCDR_20' ) start [2025-04-06 20:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849994', 'tblTempVendorCDR_20' ) end [2025-04-06 20:34:21] Production.INFO: ProcessCDR(1,14849994,1,1,2) [2025-04-06 20:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849994', 'tblTempUsageDetail_20' ) start [2025-04-06 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849994', 'tblTempUsageDetail_20' ) end [2025-04-06 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:34:24] Production.INFO: ==32228== Releasing lock... [2025-04-06 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:34:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:35:05 [end_date_ymd] => 2025-04-06 20:35:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:35:05' and `end` < '2025-04-06 20: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-04-06 20:35:18] Production.INFO: count ==4594 [2025-04-06 20:35:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:35:05 - End Time 2025-04-06 20:35:05 [2025-04-06 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849999', 'tblTempUsageDetail_20' ) start [2025-04-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14849999', 'tblTempUsageDetail_20' ) end [2025-04-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849999', 'tblTempVendorCDR_20' ) start [2025-04-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14849999', 'tblTempVendorCDR_20' ) end [2025-04-06 20:35:20] Production.INFO: ProcessCDR(1,14849999,1,1,2) [2025-04-06 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14849999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14849999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14849999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14849999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849999', 'tblTempUsageDetail_20' ) start [2025-04-06 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14849999', 'tblTempUsageDetail_20' ) end [2025-04-06 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:35:24] Production.INFO: ==32298== Releasing lock... [2025-04-06 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:35:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:36:06 [end_date_ymd] => 2025-04-06 20:36:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:36:06' and `end` < '2025-04-06 20: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-04-06 20:36:19] Production.INFO: count ==4591 [2025-04-06 20:36:22] Production.ERROR: pbx CDR StartTime 2025-04-06 17:36:06 - End Time 2025-04-06 20:36:06 [2025-04-06 20:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850004', 'tblTempUsageDetail_20' ) start [2025-04-06 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850004', 'tblTempUsageDetail_20' ) end [2025-04-06 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850004', 'tblTempVendorCDR_20' ) start [2025-04-06 20:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850004', 'tblTempVendorCDR_20' ) end [2025-04-06 20:36:22] Production.INFO: ProcessCDR(1,14850004,1,1,2) [2025-04-06 20:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850004', 'tblTempUsageDetail_20' ) start [2025-04-06 20:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850004', 'tblTempUsageDetail_20' ) end [2025-04-06 20:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:36:26] Production.INFO: ==32369== Releasing lock... [2025-04-06 20:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:36:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:37:04 [end_date_ymd] => 2025-04-06 20:37:04 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:37:04' and `end` < '2025-04-06 20: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-04-06 20:37:18] Production.INFO: count ==4592 [2025-04-06 20:37:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:37:04 - End Time 2025-04-06 20:37:04 [2025-04-06 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850009', 'tblTempUsageDetail_20' ) start [2025-04-06 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850009', 'tblTempUsageDetail_20' ) end [2025-04-06 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850009', 'tblTempVendorCDR_20' ) start [2025-04-06 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850009', 'tblTempVendorCDR_20' ) end [2025-04-06 20:37:20] Production.INFO: ProcessCDR(1,14850009,1,1,2) [2025-04-06 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850009', 'tblTempUsageDetail_20' ) start [2025-04-06 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850009', 'tblTempUsageDetail_20' ) end [2025-04-06 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:37:25] Production.INFO: ==32441== Releasing lock... [2025-04-06 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:37:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:38:06 [end_date_ymd] => 2025-04-06 20:38:06 [RateCDR] => 1 ) [2025-04-06 20:38: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-04-06 17:38:06' and `end` < '2025-04-06 20:38: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-04-06 20:38:19] Production.INFO: count ==4590 [2025-04-06 20:38:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:38:06 - End Time 2025-04-06 20:38:06 [2025-04-06 20:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850014', 'tblTempUsageDetail_20' ) start [2025-04-06 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850014', 'tblTempUsageDetail_20' ) end [2025-04-06 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850014', 'tblTempVendorCDR_20' ) start [2025-04-06 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850014', 'tblTempVendorCDR_20' ) end [2025-04-06 20:38:21] Production.INFO: ProcessCDR(1,14850014,1,1,2) [2025-04-06 20:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850014', 'tblTempUsageDetail_20' ) start [2025-04-06 20:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850014', 'tblTempUsageDetail_20' ) end [2025-04-06 20:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:38:26] Production.INFO: ==32517== Releasing lock... [2025-04-06 20:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:38:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:39:05 [end_date_ymd] => 2025-04-06 20:39:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:39:05' and `end` < '2025-04-06 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-04-06 20:39:18] Production.INFO: count ==4592 [2025-04-06 20:39:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:39:05 - End Time 2025-04-06 20:39:05 [2025-04-06 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850019', 'tblTempUsageDetail_20' ) start [2025-04-06 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850019', 'tblTempUsageDetail_20' ) end [2025-04-06 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850019', 'tblTempVendorCDR_20' ) start [2025-04-06 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850019', 'tblTempVendorCDR_20' ) end [2025-04-06 20:39:21] Production.INFO: ProcessCDR(1,14850019,1,1,2) [2025-04-06 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850019', 'tblTempUsageDetail_20' ) start [2025-04-06 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850019', 'tblTempUsageDetail_20' ) end [2025-04-06 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:39:24] Production.INFO: ==32588== Releasing lock... [2025-04-06 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:39:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:40:06 [end_date_ymd] => 2025-04-06 20:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:40:06' and `end` < '2025-04-06 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-04-06 20:40:19] Production.INFO: count ==4592 [2025-04-06 20:40:22] Production.ERROR: pbx CDR StartTime 2025-04-06 17:40:06 - End Time 2025-04-06 20:40:06 [2025-04-06 20:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850025', 'tblTempUsageDetail_20' ) start [2025-04-06 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850025', 'tblTempUsageDetail_20' ) end [2025-04-06 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850025', 'tblTempVendorCDR_20' ) start [2025-04-06 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850025', 'tblTempVendorCDR_20' ) end [2025-04-06 20:40:22] Production.INFO: ProcessCDR(1,14850025,1,1,2) [2025-04-06 20:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850025', 'tblTempUsageDetail_20' ) start [2025-04-06 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850025', 'tblTempUsageDetail_20' ) end [2025-04-06 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:40:25] Production.INFO: ==32663== Releasing lock... [2025-04-06 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:40:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:41:05 [end_date_ymd] => 2025-04-06 20:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:41:05' and `end` < '2025-04-06 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-04-06 20:41:18] Production.INFO: count ==4619 [2025-04-06 20:41:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:41:05 - End Time 2025-04-06 20:41:05 [2025-04-06 20:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850030', 'tblTempUsageDetail_20' ) start [2025-04-06 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850030', 'tblTempUsageDetail_20' ) end [2025-04-06 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850030', 'tblTempVendorCDR_20' ) start [2025-04-06 20:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850030', 'tblTempVendorCDR_20' ) end [2025-04-06 20:41:21] Production.INFO: ProcessCDR(1,14850030,1,1,2) [2025-04-06 20:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850030', 'tblTempUsageDetail_20' ) start [2025-04-06 20:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850030', 'tblTempUsageDetail_20' ) end [2025-04-06 20:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:41:26] Production.INFO: ==32738== Releasing lock... [2025-04-06 20:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:41:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:42:05 [end_date_ymd] => 2025-04-06 20:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:42:05' and `end` < '2025-04-06 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-04-06 20:42:19] Production.INFO: count ==4625 [2025-04-06 20:42:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:42:05 - End Time 2025-04-06 20:42:05 [2025-04-06 20:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850035', 'tblTempUsageDetail_20' ) start [2025-04-06 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850035', 'tblTempUsageDetail_20' ) end [2025-04-06 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850035', 'tblTempVendorCDR_20' ) start [2025-04-06 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850035', 'tblTempVendorCDR_20' ) end [2025-04-06 20:42:21] Production.INFO: ProcessCDR(1,14850035,1,1,2) [2025-04-06 20:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850035', 'tblTempUsageDetail_20' ) start [2025-04-06 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850035', 'tblTempUsageDetail_20' ) end [2025-04-06 20:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:42:25] Production.INFO: ==361== Releasing lock... [2025-04-06 20:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:42:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:43:06 [end_date_ymd] => 2025-04-06 20:43:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:43:06' and `end` < '2025-04-06 20: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-04-06 20:43:19] Production.INFO: count ==4626 [2025-04-06 20:43:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:43:06 - End Time 2025-04-06 20:43:06 [2025-04-06 20:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850040', 'tblTempUsageDetail_20' ) start [2025-04-06 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850040', 'tblTempUsageDetail_20' ) end [2025-04-06 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850040', 'tblTempVendorCDR_20' ) start [2025-04-06 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850040', 'tblTempVendorCDR_20' ) end [2025-04-06 20:43:21] Production.INFO: ProcessCDR(1,14850040,1,1,2) [2025-04-06 20:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850040', 'tblTempUsageDetail_20' ) start [2025-04-06 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850040', 'tblTempUsageDetail_20' ) end [2025-04-06 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:43:25] Production.INFO: ==433== Releasing lock... [2025-04-06 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:43:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:44:05 [end_date_ymd] => 2025-04-06 20:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:44:05' and `end` < '2025-04-06 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-04-06 20:44:18] Production.INFO: count ==4626 [2025-04-06 20:44:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:44:05 - End Time 2025-04-06 20:44:05 [2025-04-06 20:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850045', 'tblTempUsageDetail_20' ) start [2025-04-06 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850045', 'tblTempUsageDetail_20' ) end [2025-04-06 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850045', 'tblTempVendorCDR_20' ) start [2025-04-06 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850045', 'tblTempVendorCDR_20' ) end [2025-04-06 20:44:21] Production.INFO: ProcessCDR(1,14850045,1,1,2) [2025-04-06 20:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850045', 'tblTempUsageDetail_20' ) start [2025-04-06 20:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850045', 'tblTempUsageDetail_20' ) end [2025-04-06 20:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:44:26] Production.INFO: ==505== Releasing lock... [2025-04-06 20:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:44:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:45:04 [end_date_ymd] => 2025-04-06 20:45:04 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:45:04' and `end` < '2025-04-06 20: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-04-06 20:45:18] Production.INFO: count ==4628 [2025-04-06 20:45:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:45:04 - End Time 2025-04-06 20:45:04 [2025-04-06 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850050', 'tblTempUsageDetail_20' ) start [2025-04-06 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850050', 'tblTempUsageDetail_20' ) end [2025-04-06 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850050', 'tblTempVendorCDR_20' ) start [2025-04-06 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850050', 'tblTempVendorCDR_20' ) end [2025-04-06 20:45:20] Production.INFO: ProcessCDR(1,14850050,1,1,2) [2025-04-06 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850050', 'tblTempUsageDetail_20' ) start [2025-04-06 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850050', 'tblTempUsageDetail_20' ) end [2025-04-06 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:45:23] Production.INFO: ==587== Releasing lock... [2025-04-06 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:45:23] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:46:05 [end_date_ymd] => 2025-04-06 20:46:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:46:05' and `end` < '2025-04-06 20: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-04-06 20:46:19] Production.INFO: count ==4631 [2025-04-06 20:46:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:46:05 - End Time 2025-04-06 20:46:05 [2025-04-06 20:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850055', 'tblTempUsageDetail_20' ) start [2025-04-06 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850055', 'tblTempUsageDetail_20' ) end [2025-04-06 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850055', 'tblTempVendorCDR_20' ) start [2025-04-06 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850055', 'tblTempVendorCDR_20' ) end [2025-04-06 20:46:21] Production.INFO: ProcessCDR(1,14850055,1,1,2) [2025-04-06 20:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850055', 'tblTempUsageDetail_20' ) start [2025-04-06 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850055', 'tblTempUsageDetail_20' ) end [2025-04-06 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:46:26] Production.INFO: ==677== Releasing lock... [2025-04-06 20:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:46:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:47:05 [end_date_ymd] => 2025-04-06 20:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:47:05' and `end` < '2025-04-06 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-04-06 20:47:18] Production.INFO: count ==4640 [2025-04-06 20:47:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:47:05 - End Time 2025-04-06 20:47:05 [2025-04-06 20:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850060', 'tblTempUsageDetail_20' ) start [2025-04-06 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850060', 'tblTempUsageDetail_20' ) end [2025-04-06 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850060', 'tblTempVendorCDR_20' ) start [2025-04-06 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850060', 'tblTempVendorCDR_20' ) end [2025-04-06 20:47:21] Production.INFO: ProcessCDR(1,14850060,1,1,2) [2025-04-06 20:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850060', 'tblTempUsageDetail_20' ) start [2025-04-06 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850060', 'tblTempUsageDetail_20' ) end [2025-04-06 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:47:24] Production.INFO: ==805== Releasing lock... [2025-04-06 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:47:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:48:05 [end_date_ymd] => 2025-04-06 20:48:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:48:05' and `end` < '2025-04-06 20: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-04-06 20:48:19] Production.INFO: count ==4642 [2025-04-06 20:48:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:48:05 - End Time 2025-04-06 20:48:05 [2025-04-06 20:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850065', 'tblTempUsageDetail_20' ) start [2025-04-06 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850065', 'tblTempUsageDetail_20' ) end [2025-04-06 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850065', 'tblTempVendorCDR_20' ) start [2025-04-06 20:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850065', 'tblTempVendorCDR_20' ) end [2025-04-06 20:48:21] Production.INFO: ProcessCDR(1,14850065,1,1,2) [2025-04-06 20:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850065', 'tblTempUsageDetail_20' ) start [2025-04-06 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850065', 'tblTempUsageDetail_20' ) end [2025-04-06 20:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:48:25] Production.INFO: ==881== Releasing lock... [2025-04-06 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:48:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:49:05 [end_date_ymd] => 2025-04-06 20:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:49:05' and `end` < '2025-04-06 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-04-06 20:49:19] Production.INFO: count ==4642 [2025-04-06 20:49:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:49:05 - End Time 2025-04-06 20:49:05 [2025-04-06 20:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850070', 'tblTempUsageDetail_20' ) start [2025-04-06 20:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850070', 'tblTempUsageDetail_20' ) end [2025-04-06 20:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850070', 'tblTempVendorCDR_20' ) start [2025-04-06 20:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850070', 'tblTempVendorCDR_20' ) end [2025-04-06 20:49:21] Production.INFO: ProcessCDR(1,14850070,1,1,2) [2025-04-06 20:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850070', 'tblTempUsageDetail_20' ) start [2025-04-06 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850070', 'tblTempUsageDetail_20' ) end [2025-04-06 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:49:24] Production.INFO: ==954== Releasing lock... [2025-04-06 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:49:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:50:06 [end_date_ymd] => 2025-04-06 20:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:50:06' and `end` < '2025-04-06 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-04-06 20:50:19] Production.INFO: count ==4638 [2025-04-06 20:50:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:50:06 - End Time 2025-04-06 20:50:06 [2025-04-06 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850076', 'tblTempUsageDetail_20' ) start [2025-04-06 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850076', 'tblTempUsageDetail_20' ) end [2025-04-06 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850076', 'tblTempVendorCDR_20' ) start [2025-04-06 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850076', 'tblTempVendorCDR_20' ) end [2025-04-06 20:50:21] Production.INFO: ProcessCDR(1,14850076,1,1,2) [2025-04-06 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850076', 'tblTempUsageDetail_20' ) start [2025-04-06 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850076', 'tblTempUsageDetail_20' ) end [2025-04-06 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:50:25] Production.INFO: ==1031== Releasing lock... [2025-04-06 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:50:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:51:05 [end_date_ymd] => 2025-04-06 20:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:51:05' and `end` < '2025-04-06 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-04-06 20:51:18] Production.INFO: count ==4648 [2025-04-06 20:51:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:51:05 - End Time 2025-04-06 20:51:05 [2025-04-06 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850081', 'tblTempUsageDetail_20' ) start [2025-04-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850081', 'tblTempUsageDetail_20' ) end [2025-04-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850081', 'tblTempVendorCDR_20' ) start [2025-04-06 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850081', 'tblTempVendorCDR_20' ) end [2025-04-06 20:51:20] Production.INFO: ProcessCDR(1,14850081,1,1,2) [2025-04-06 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850081', 'tblTempUsageDetail_20' ) start [2025-04-06 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850081', 'tblTempUsageDetail_20' ) end [2025-04-06 20:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:51:25] Production.INFO: ==1111== Releasing lock... [2025-04-06 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:51:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:52:05 [end_date_ymd] => 2025-04-06 20:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:52:05' and `end` < '2025-04-06 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-04-06 20:52:19] Production.INFO: count ==4651 [2025-04-06 20:52:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:52:05 - End Time 2025-04-06 20:52:05 [2025-04-06 20:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850086', 'tblTempUsageDetail_20' ) start [2025-04-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850086', 'tblTempUsageDetail_20' ) end [2025-04-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850086', 'tblTempVendorCDR_20' ) start [2025-04-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850086', 'tblTempVendorCDR_20' ) end [2025-04-06 20:52:21] Production.INFO: ProcessCDR(1,14850086,1,1,2) [2025-04-06 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850086', 'tblTempUsageDetail_20' ) start [2025-04-06 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850086', 'tblTempUsageDetail_20' ) end [2025-04-06 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:52:24] Production.INFO: ==1196== Releasing lock... [2025-04-06 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:52:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:53:06 [end_date_ymd] => 2025-04-06 20:53:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:53:06' and `end` < '2025-04-06 20: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-04-06 20:53:19] Production.INFO: count ==4647 [2025-04-06 20:53:22] Production.ERROR: pbx CDR StartTime 2025-04-06 17:53:06 - End Time 2025-04-06 20:53:06 [2025-04-06 20:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850091', 'tblTempUsageDetail_20' ) start [2025-04-06 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850091', 'tblTempUsageDetail_20' ) end [2025-04-06 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850091', 'tblTempVendorCDR_20' ) start [2025-04-06 20:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850091', 'tblTempVendorCDR_20' ) end [2025-04-06 20:53:22] Production.INFO: ProcessCDR(1,14850091,1,1,2) [2025-04-06 20:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850091', 'tblTempUsageDetail_20' ) start [2025-04-06 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850091', 'tblTempUsageDetail_20' ) end [2025-04-06 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:53:25] Production.INFO: ==1283== Releasing lock... [2025-04-06 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:53:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:54:05 [end_date_ymd] => 2025-04-06 20:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:54:05' and `end` < '2025-04-06 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-04-06 20:54:18] Production.INFO: count ==4644 [2025-04-06 20:54:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:54:05 - End Time 2025-04-06 20:54:05 [2025-04-06 20:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850096', 'tblTempUsageDetail_20' ) start [2025-04-06 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850096', 'tblTempUsageDetail_20' ) end [2025-04-06 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850096', 'tblTempVendorCDR_20' ) start [2025-04-06 20:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850096', 'tblTempVendorCDR_20' ) end [2025-04-06 20:54:21] Production.INFO: ProcessCDR(1,14850096,1,1,2) [2025-04-06 20:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850096', 'tblTempUsageDetail_20' ) start [2025-04-06 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850096', 'tblTempUsageDetail_20' ) end [2025-04-06 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:54:24] Production.INFO: ==1358== Releasing lock... [2025-04-06 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:54:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-06 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:55:06 [end_date_ymd] => 2025-04-06 20:55:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:55:06' and `end` < '2025-04-06 20: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-04-06 20:55:19] Production.INFO: count ==4632 [2025-04-06 20:55:22] Production.ERROR: pbx CDR StartTime 2025-04-06 17:55:06 - End Time 2025-04-06 20:55:06 [2025-04-06 20:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850101', 'tblTempUsageDetail_20' ) start [2025-04-06 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850101', 'tblTempUsageDetail_20' ) end [2025-04-06 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850101', 'tblTempVendorCDR_20' ) start [2025-04-06 20:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850101', 'tblTempVendorCDR_20' ) end [2025-04-06 20:55:22] Production.INFO: ProcessCDR(1,14850101,1,1,2) [2025-04-06 20:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850101', 'tblTempUsageDetail_20' ) start [2025-04-06 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850101', 'tblTempUsageDetail_20' ) end [2025-04-06 20:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:55:25] Production.INFO: ==1430== Releasing lock... [2025-04-06 20:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:55:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:56:05 [end_date_ymd] => 2025-04-06 20:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:56:05' and `end` < '2025-04-06 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-04-06 20:56:18] Production.INFO: count ==4639 [2025-04-06 20:56:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:56:05 - End Time 2025-04-06 20:56:05 [2025-04-06 20:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850106', 'tblTempUsageDetail_20' ) start [2025-04-06 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850106', 'tblTempUsageDetail_20' ) end [2025-04-06 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850106', 'tblTempVendorCDR_20' ) start [2025-04-06 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850106', 'tblTempVendorCDR_20' ) end [2025-04-06 20:56:21] Production.INFO: ProcessCDR(1,14850106,1,1,2) [2025-04-06 20:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850106', 'tblTempUsageDetail_20' ) start [2025-04-06 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850106', 'tblTempUsageDetail_20' ) end [2025-04-06 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:56:24] Production.INFO: ==1537== Releasing lock... [2025-04-06 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:56:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:57:05 [end_date_ymd] => 2025-04-06 20:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 17:57:05' and `end` < '2025-04-06 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-04-06 20:57:19] Production.INFO: count ==4641 [2025-04-06 20:57:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:57:05 - End Time 2025-04-06 20:57:05 [2025-04-06 20:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850111', 'tblTempUsageDetail_20' ) start [2025-04-06 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850111', 'tblTempUsageDetail_20' ) end [2025-04-06 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850111', 'tblTempVendorCDR_20' ) start [2025-04-06 20:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850111', 'tblTempVendorCDR_20' ) end [2025-04-06 20:57:21] Production.INFO: ProcessCDR(1,14850111,1,1,2) [2025-04-06 20:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850111', 'tblTempUsageDetail_20' ) start [2025-04-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850111', 'tblTempUsageDetail_20' ) end [2025-04-06 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:57:24] Production.INFO: ==1617== Releasing lock... [2025-04-06 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:57:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-06 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:58:05 [end_date_ymd] => 2025-04-06 20:58:05 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:58:05' and `end` < '2025-04-06 20: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-04-06 20:58:18] Production.INFO: count ==4579 [2025-04-06 20:58:20] Production.ERROR: pbx CDR StartTime 2025-04-06 17:58:05 - End Time 2025-04-06 20:58:05 [2025-04-06 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850116', 'tblTempUsageDetail_20' ) start [2025-04-06 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850116', 'tblTempUsageDetail_20' ) end [2025-04-06 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850116', 'tblTempVendorCDR_20' ) start [2025-04-06 20:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850116', 'tblTempVendorCDR_20' ) end [2025-04-06 20:58:21] Production.INFO: ProcessCDR(1,14850116,1,1,2) [2025-04-06 20:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850116', 'tblTempUsageDetail_20' ) start [2025-04-06 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850116', 'tblTempUsageDetail_20' ) end [2025-04-06 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:58:24] Production.INFO: ==1690== Releasing lock... [2025-04-06 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:58:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-06 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 17:59:06 [end_date_ymd] => 2025-04-06 20:59:06 [RateCDR] => 1 ) [2025-04-06 20: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-04-06 17:59:06' and `end` < '2025-04-06 20: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-04-06 20:59:19] Production.INFO: count ==4496 [2025-04-06 20:59:21] Production.ERROR: pbx CDR StartTime 2025-04-06 17:59:06 - End Time 2025-04-06 20:59:06 [2025-04-06 20:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850121', 'tblTempUsageDetail_20' ) start [2025-04-06 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850121', 'tblTempUsageDetail_20' ) end [2025-04-06 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850121', 'tblTempVendorCDR_20' ) start [2025-04-06 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850121', 'tblTempVendorCDR_20' ) end [2025-04-06 20:59:21] Production.INFO: ProcessCDR(1,14850121,1,1,2) [2025-04-06 20:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850121', 'tblTempUsageDetail_20' ) start [2025-04-06 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850121', 'tblTempUsageDetail_20' ) end [2025-04-06 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 20:59:24] Production.INFO: ==1766== Releasing lock... [2025-04-06 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 20:59:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:00:06 [end_date_ymd] => 2025-04-06 21:00:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:00:06' and `end` < '2025-04-06 21: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-04-06 21:00:19] Production.INFO: count ==4404 [2025-04-06 21:00:21] Production.ERROR: pbx CDR StartTime 2025-04-06 18:00:06 - End Time 2025-04-06 21:00:06 [2025-04-06 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850127', 'tblTempUsageDetail_20' ) start [2025-04-06 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850127', 'tblTempUsageDetail_20' ) end [2025-04-06 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850127', 'tblTempVendorCDR_20' ) start [2025-04-06 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850127', 'tblTempVendorCDR_20' ) end [2025-04-06 21:00:21] Production.INFO: ProcessCDR(1,14850127,1,1,2) [2025-04-06 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850127', 'tblTempUsageDetail_20' ) start [2025-04-06 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850127', 'tblTempUsageDetail_20' ) end [2025-04-06 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:00:25] Production.INFO: ==1844== Releasing lock... [2025-04-06 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:00:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-06 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:01:05 [end_date_ymd] => 2025-04-06 21:01:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:01:05' and `end` < '2025-04-06 21: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-04-06 21:01:18] Production.INFO: count ==4321 [2025-04-06 21:01:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:01:05 - End Time 2025-04-06 21:01:05 [2025-04-06 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850132', 'tblTempUsageDetail_20' ) start [2025-04-06 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850132', 'tblTempUsageDetail_20' ) end [2025-04-06 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850132', 'tblTempVendorCDR_20' ) start [2025-04-06 21:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850132', 'tblTempVendorCDR_20' ) end [2025-04-06 21:01:21] Production.INFO: ProcessCDR(1,14850132,1,1,2) [2025-04-06 21:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850132', 'tblTempUsageDetail_20' ) start [2025-04-06 21:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850132', 'tblTempUsageDetail_20' ) end [2025-04-06 21:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:01:26] Production.INFO: ==1936== Releasing lock... [2025-04-06 21:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:01:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-06 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:02:04 [end_date_ymd] => 2025-04-06 21:02:04 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:02:04' and `end` < '2025-04-06 21: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-04-06 21:02:18] Production.INFO: count ==4227 [2025-04-06 21:02:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:02:04 - End Time 2025-04-06 21:02:04 [2025-04-06 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850137', 'tblTempUsageDetail_20' ) start [2025-04-06 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850137', 'tblTempUsageDetail_20' ) end [2025-04-06 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850137', 'tblTempVendorCDR_20' ) start [2025-04-06 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850137', 'tblTempVendorCDR_20' ) end [2025-04-06 21:02:20] Production.INFO: ProcessCDR(1,14850137,1,1,2) [2025-04-06 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850137', 'tblTempUsageDetail_20' ) start [2025-04-06 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850137', 'tblTempUsageDetail_20' ) end [2025-04-06 21:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:02:25] Production.INFO: ==2011== Releasing lock... [2025-04-06 21:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:02:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:03:05 [end_date_ymd] => 2025-04-06 21:03:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:03:05' and `end` < '2025-04-06 21: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-04-06 21:03:18] Production.INFO: count ==4223 [2025-04-06 21:03:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:03:05 - End Time 2025-04-06 21:03:05 [2025-04-06 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850142', 'tblTempUsageDetail_20' ) start [2025-04-06 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850142', 'tblTempUsageDetail_20' ) end [2025-04-06 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850142', 'tblTempVendorCDR_20' ) start [2025-04-06 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850142', 'tblTempVendorCDR_20' ) end [2025-04-06 21:03:20] Production.INFO: ProcessCDR(1,14850142,1,1,2) [2025-04-06 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850142', 'tblTempUsageDetail_20' ) start [2025-04-06 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850142', 'tblTempUsageDetail_20' ) end [2025-04-06 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:03:24] Production.INFO: ==2125== Releasing lock... [2025-04-06 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:03:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-06 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:04:05 [end_date_ymd] => 2025-04-06 21:04:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:04:05' and `end` < '2025-04-06 21: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-04-06 21:04:18] Production.INFO: count ==4162 [2025-04-06 21:04:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:04:05 - End Time 2025-04-06 21:04:05 [2025-04-06 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850147', 'tblTempUsageDetail_20' ) start [2025-04-06 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850147', 'tblTempUsageDetail_20' ) end [2025-04-06 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850147', 'tblTempVendorCDR_20' ) start [2025-04-06 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850147', 'tblTempVendorCDR_20' ) end [2025-04-06 21:04:20] Production.INFO: ProcessCDR(1,14850147,1,1,2) [2025-04-06 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850147', 'tblTempUsageDetail_20' ) start [2025-04-06 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850147', 'tblTempUsageDetail_20' ) end [2025-04-06 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:04:24] Production.INFO: ==2205== Releasing lock... [2025-04-06 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:04:24] Production.INFO: 59 MB #Memory Used# [2025-04-06 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:05:05 [end_date_ymd] => 2025-04-06 21:05:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:05:05' and `end` < '2025-04-06 21: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-04-06 21:05:18] Production.INFO: count ==4141 [2025-04-06 21:05:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:05:05 - End Time 2025-04-06 21:05:05 [2025-04-06 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850152', 'tblTempUsageDetail_20' ) start [2025-04-06 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850152', 'tblTempUsageDetail_20' ) end [2025-04-06 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850152', 'tblTempVendorCDR_20' ) start [2025-04-06 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850152', 'tblTempVendorCDR_20' ) end [2025-04-06 21:05:20] Production.INFO: ProcessCDR(1,14850152,1,1,2) [2025-04-06 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850152', 'tblTempUsageDetail_20' ) start [2025-04-06 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850152', 'tblTempUsageDetail_20' ) end [2025-04-06 21:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:05:24] Production.INFO: ==2279== Releasing lock... [2025-04-06 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:05:24] Production.INFO: 59 MB #Memory Used# [2025-04-06 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:06:06 [end_date_ymd] => 2025-04-06 21:06:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:06:06' and `end` < '2025-04-06 21: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-04-06 21:06:19] Production.INFO: count ==4148 [2025-04-06 21:06:21] Production.ERROR: pbx CDR StartTime 2025-04-06 18:06:06 - End Time 2025-04-06 21:06:06 [2025-04-06 21:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850157', 'tblTempUsageDetail_20' ) start [2025-04-06 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850157', 'tblTempUsageDetail_20' ) end [2025-04-06 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850157', 'tblTempVendorCDR_20' ) start [2025-04-06 21:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850157', 'tblTempVendorCDR_20' ) end [2025-04-06 21:06:21] Production.INFO: ProcessCDR(1,14850157,1,1,2) [2025-04-06 21:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850157', 'tblTempUsageDetail_20' ) start [2025-04-06 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850157', 'tblTempUsageDetail_20' ) end [2025-04-06 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:06:24] Production.INFO: ==2360== Releasing lock... [2025-04-06 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:06:24] Production.INFO: 59 MB #Memory Used# [2025-04-06 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:07:05 [end_date_ymd] => 2025-04-06 21:07:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:07:05' and `end` < '2025-04-06 21: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-04-06 21:07:18] Production.INFO: count ==4087 [2025-04-06 21:07:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:07:05 - End Time 2025-04-06 21:07:05 [2025-04-06 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850162', 'tblTempUsageDetail_20' ) start [2025-04-06 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850162', 'tblTempUsageDetail_20' ) end [2025-04-06 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850162', 'tblTempVendorCDR_20' ) start [2025-04-06 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850162', 'tblTempVendorCDR_20' ) end [2025-04-06 21:07:20] Production.INFO: ProcessCDR(1,14850162,1,1,2) [2025-04-06 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850162', 'tblTempUsageDetail_20' ) start [2025-04-06 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850162', 'tblTempUsageDetail_20' ) end [2025-04-06 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:07:24] Production.INFO: ==2438== Releasing lock... [2025-04-06 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:07:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-06 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:08:05 [end_date_ymd] => 2025-04-06 21:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:08:05' and `end` < '2025-04-06 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-04-06 21:08:18] Production.INFO: count ==4008 [2025-04-06 21:08:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:08:05 - End Time 2025-04-06 21:08:05 [2025-04-06 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850167', 'tblTempUsageDetail_20' ) start [2025-04-06 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850167', 'tblTempUsageDetail_20' ) end [2025-04-06 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850167', 'tblTempVendorCDR_20' ) start [2025-04-06 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850167', 'tblTempVendorCDR_20' ) end [2025-04-06 21:08:20] Production.INFO: ProcessCDR(1,14850167,1,1,2) [2025-04-06 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850167', 'tblTempUsageDetail_20' ) start [2025-04-06 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850167', 'tblTempUsageDetail_20' ) end [2025-04-06 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:08:24] Production.INFO: ==2513== Releasing lock... [2025-04-06 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:08:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-06 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:09:05 [end_date_ymd] => 2025-04-06 21:09:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:09:05' and `end` < '2025-04-06 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-04-06 21:09:19] Production.INFO: count ==3924 [2025-04-06 21:09:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:09:05 - End Time 2025-04-06 21:09:05 [2025-04-06 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850172', 'tblTempUsageDetail_20' ) start [2025-04-06 21:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850172', 'tblTempUsageDetail_20' ) end [2025-04-06 21:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850172', 'tblTempVendorCDR_20' ) start [2025-04-06 21:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850172', 'tblTempVendorCDR_20' ) end [2025-04-06 21:09:21] Production.INFO: ProcessCDR(1,14850172,1,1,2) [2025-04-06 21:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850172', 'tblTempUsageDetail_20' ) start [2025-04-06 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850172', 'tblTempUsageDetail_20' ) end [2025-04-06 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:09:24] Production.INFO: ==2588== Releasing lock... [2025-04-06 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:09:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-06 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:10:05 [end_date_ymd] => 2025-04-06 21:10:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:10:05' and `end` < '2025-04-06 21: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-04-06 21:10:18] Production.INFO: count ==3845 [2025-04-06 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:10:05 - End Time 2025-04-06 21:10:05 [2025-04-06 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850178', 'tblTempUsageDetail_20' ) start [2025-04-06 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850178', 'tblTempUsageDetail_20' ) end [2025-04-06 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850178', 'tblTempVendorCDR_20' ) start [2025-04-06 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850178', 'tblTempVendorCDR_20' ) end [2025-04-06 21:10:20] Production.INFO: ProcessCDR(1,14850178,1,1,2) [2025-04-06 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850178', 'tblTempUsageDetail_20' ) start [2025-04-06 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850178', 'tblTempUsageDetail_20' ) end [2025-04-06 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:10:24] Production.INFO: ==2661== Releasing lock... [2025-04-06 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:10:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-06 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:11:05 [end_date_ymd] => 2025-04-06 21:11:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:11:05' and `end` < '2025-04-06 21: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-04-06 21:11:19] Production.INFO: count ==3675 [2025-04-06 21:11:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:11:05 - End Time 2025-04-06 21:11:05 [2025-04-06 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850183', 'tblTempUsageDetail_20' ) start [2025-04-06 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850183', 'tblTempUsageDetail_20' ) end [2025-04-06 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850183', 'tblTempVendorCDR_20' ) start [2025-04-06 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850183', 'tblTempVendorCDR_20' ) end [2025-04-06 21:11:21] Production.INFO: ProcessCDR(1,14850183,1,1,2) [2025-04-06 21:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850183', 'tblTempUsageDetail_20' ) start [2025-04-06 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850183', 'tblTempUsageDetail_20' ) end [2025-04-06 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:11:24] Production.INFO: ==2739== Releasing lock... [2025-04-06 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:11:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-06 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:12:05 [end_date_ymd] => 2025-04-06 21:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:12:05' and `end` < '2025-04-06 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-04-06 21:12:19] Production.INFO: count ==3539 [2025-04-06 21:12:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:12:05 - End Time 2025-04-06 21:12:05 [2025-04-06 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850188', 'tblTempUsageDetail_20' ) start [2025-04-06 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850188', 'tblTempUsageDetail_20' ) end [2025-04-06 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850188', 'tblTempVendorCDR_20' ) start [2025-04-06 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850188', 'tblTempVendorCDR_20' ) end [2025-04-06 21:12:20] Production.INFO: ProcessCDR(1,14850188,1,1,2) [2025-04-06 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850188', 'tblTempUsageDetail_20' ) start [2025-04-06 21:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850188', 'tblTempUsageDetail_20' ) end [2025-04-06 21:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:12:26] Production.INFO: ==2813== Releasing lock... [2025-04-06 21:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:12:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-06 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:13:05 [end_date_ymd] => 2025-04-06 21:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:13:05' and `end` < '2025-04-06 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-04-06 21:13:18] Production.INFO: count ==3391 [2025-04-06 21:13:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:13:05 - End Time 2025-04-06 21:13:05 [2025-04-06 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850193', 'tblTempUsageDetail_20' ) start [2025-04-06 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850193', 'tblTempUsageDetail_20' ) end [2025-04-06 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850193', 'tblTempVendorCDR_20' ) start [2025-04-06 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850193', 'tblTempVendorCDR_20' ) end [2025-04-06 21:13:20] Production.INFO: ProcessCDR(1,14850193,1,1,2) [2025-04-06 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850193', 'tblTempUsageDetail_20' ) start [2025-04-06 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850193', 'tblTempUsageDetail_20' ) end [2025-04-06 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:13:23] Production.INFO: ==2883== Releasing lock... [2025-04-06 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:13:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-06 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:14:06 [end_date_ymd] => 2025-04-06 21:14:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:14:06' and `end` < '2025-04-06 21: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-04-06 21:14:19] Production.INFO: count ==3267 [2025-04-06 21:14:21] Production.ERROR: pbx CDR StartTime 2025-04-06 18:14:06 - End Time 2025-04-06 21:14:06 [2025-04-06 21:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850198', 'tblTempUsageDetail_20' ) start [2025-04-06 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850198', 'tblTempUsageDetail_20' ) end [2025-04-06 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850198', 'tblTempVendorCDR_20' ) start [2025-04-06 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850198', 'tblTempVendorCDR_20' ) end [2025-04-06 21:14:21] Production.INFO: ProcessCDR(1,14850198,1,1,2) [2025-04-06 21:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850198', 'tblTempUsageDetail_20' ) start [2025-04-06 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850198', 'tblTempUsageDetail_20' ) end [2025-04-06 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:14:24] Production.INFO: ==2963== Releasing lock... [2025-04-06 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:14:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-06 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:15:05 [end_date_ymd] => 2025-04-06 21:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:15:05' and `end` < '2025-04-06 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-04-06 21:15:18] Production.INFO: count ==3176 [2025-04-06 21:15:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:15:05 - End Time 2025-04-06 21:15:05 [2025-04-06 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850203', 'tblTempUsageDetail_20' ) start [2025-04-06 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850203', 'tblTempUsageDetail_20' ) end [2025-04-06 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850203', 'tblTempVendorCDR_20' ) start [2025-04-06 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850203', 'tblTempVendorCDR_20' ) end [2025-04-06 21:15:20] Production.INFO: ProcessCDR(1,14850203,1,1,2) [2025-04-06 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850203', 'tblTempUsageDetail_20' ) start [2025-04-06 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850203', 'tblTempUsageDetail_20' ) end [2025-04-06 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:15:23] Production.INFO: ==3038== Releasing lock... [2025-04-06 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:15:23] Production.INFO: 52 MB #Memory Used# [2025-04-06 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:16:06 [end_date_ymd] => 2025-04-06 21:16:06 [RateCDR] => 1 ) [2025-04-06 21:16: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-04-06 18:16:06' and `end` < '2025-04-06 21:16: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-04-06 21:16:19] Production.INFO: count ==3089 [2025-04-06 21:16:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:16:06 - End Time 2025-04-06 21:16:06 [2025-04-06 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850208', 'tblTempUsageDetail_20' ) start [2025-04-06 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850208', 'tblTempUsageDetail_20' ) end [2025-04-06 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850208', 'tblTempVendorCDR_20' ) start [2025-04-06 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850208', 'tblTempVendorCDR_20' ) end [2025-04-06 21:16:20] Production.INFO: ProcessCDR(1,14850208,1,1,2) [2025-04-06 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850208', 'tblTempUsageDetail_20' ) start [2025-04-06 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850208', 'tblTempUsageDetail_20' ) end [2025-04-06 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:16:24] Production.INFO: ==3113== Releasing lock... [2025-04-06 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:16:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-06 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:17:05 [end_date_ymd] => 2025-04-06 21:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:17:05' and `end` < '2025-04-06 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-04-06 21:17:18] Production.INFO: count ==3043 [2025-04-06 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:17:05 - End Time 2025-04-06 21:17:05 [2025-04-06 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850213', 'tblTempUsageDetail_20' ) start [2025-04-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850213', 'tblTempUsageDetail_20' ) end [2025-04-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850213', 'tblTempVendorCDR_20' ) start [2025-04-06 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850213', 'tblTempVendorCDR_20' ) end [2025-04-06 21:17:19] Production.INFO: ProcessCDR(1,14850213,1,1,2) [2025-04-06 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850213', 'tblTempUsageDetail_20' ) start [2025-04-06 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850213', 'tblTempUsageDetail_20' ) end [2025-04-06 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:17:23] Production.INFO: ==3184== Releasing lock... [2025-04-06 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:17:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-06 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:18:06 [end_date_ymd] => 2025-04-06 21:18:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:18:06' and `end` < '2025-04-06 21: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-04-06 21:18:18] Production.INFO: count ==3045 [2025-04-06 21:18:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:18:06 - End Time 2025-04-06 21:18:06 [2025-04-06 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850218', 'tblTempUsageDetail_20' ) start [2025-04-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850218', 'tblTempUsageDetail_20' ) end [2025-04-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850218', 'tblTempVendorCDR_20' ) start [2025-04-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850218', 'tblTempVendorCDR_20' ) end [2025-04-06 21:18:20] Production.INFO: ProcessCDR(1,14850218,1,1,2) [2025-04-06 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850218', 'tblTempUsageDetail_20' ) start [2025-04-06 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850218', 'tblTempUsageDetail_20' ) end [2025-04-06 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:18:23] Production.INFO: ==3309== Releasing lock... [2025-04-06 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:18:23] Production.INFO: 52 MB #Memory Used# [2025-04-06 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:19:05 [end_date_ymd] => 2025-04-06 21:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:19:05' and `end` < '2025-04-06 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-04-06 21:19:18] Production.INFO: count ==3053 [2025-04-06 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:19:05 - End Time 2025-04-06 21:19:05 [2025-04-06 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850223', 'tblTempUsageDetail_20' ) start [2025-04-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850223', 'tblTempUsageDetail_20' ) end [2025-04-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850223', 'tblTempVendorCDR_20' ) start [2025-04-06 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850223', 'tblTempVendorCDR_20' ) end [2025-04-06 21:19:19] Production.INFO: ProcessCDR(1,14850223,1,1,2) [2025-04-06 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850223', 'tblTempUsageDetail_20' ) start [2025-04-06 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850223', 'tblTempUsageDetail_20' ) end [2025-04-06 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:19:23] Production.INFO: ==3385== Releasing lock... [2025-04-06 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:19:23] Production.INFO: 51 MB #Memory Used# [2025-04-06 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:20:06 [end_date_ymd] => 2025-04-06 21:20:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:20:06' and `end` < '2025-04-06 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-04-06 21:20:19] Production.INFO: count ==3052 [2025-04-06 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:20:06 - End Time 2025-04-06 21:20:06 [2025-04-06 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850229', 'tblTempUsageDetail_20' ) start [2025-04-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850229', 'tblTempUsageDetail_20' ) end [2025-04-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850229', 'tblTempVendorCDR_20' ) start [2025-04-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850229', 'tblTempVendorCDR_20' ) end [2025-04-06 21:20:20] Production.INFO: ProcessCDR(1,14850229,1,1,2) [2025-04-06 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850229', 'tblTempUsageDetail_20' ) start [2025-04-06 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850229', 'tblTempUsageDetail_20' ) end [2025-04-06 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:20:24] Production.INFO: ==3467== Releasing lock... [2025-04-06 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:20:24] Production.INFO: 51 MB #Memory Used# [2025-04-06 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:21:05 [end_date_ymd] => 2025-04-06 21:21:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:21:05' and `end` < '2025-04-06 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-04-06 21:21:18] Production.INFO: count ==3078 [2025-04-06 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:21:05 - End Time 2025-04-06 21:21:05 [2025-04-06 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850234', 'tblTempUsageDetail_20' ) start [2025-04-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850234', 'tblTempUsageDetail_20' ) end [2025-04-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850234', 'tblTempVendorCDR_20' ) start [2025-04-06 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850234', 'tblTempVendorCDR_20' ) end [2025-04-06 21:21:19] Production.INFO: ProcessCDR(1,14850234,1,1,2) [2025-04-06 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850234', 'tblTempUsageDetail_20' ) start [2025-04-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850234', 'tblTempUsageDetail_20' ) end [2025-04-06 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:21:22] Production.INFO: ==3545== Releasing lock... [2025-04-06 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:21:22] Production.INFO: 51 MB #Memory Used# [2025-04-06 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:22:05 [end_date_ymd] => 2025-04-06 21:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:22:05' and `end` < '2025-04-06 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-04-06 21:22:18] Production.INFO: count ==3078 [2025-04-06 21:22:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:22:05 - End Time 2025-04-06 21:22:05 [2025-04-06 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850239', 'tblTempUsageDetail_20' ) start [2025-04-06 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850239', 'tblTempUsageDetail_20' ) end [2025-04-06 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850239', 'tblTempVendorCDR_20' ) start [2025-04-06 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850239', 'tblTempVendorCDR_20' ) end [2025-04-06 21:22:20] Production.INFO: ProcessCDR(1,14850239,1,1,2) [2025-04-06 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850239', 'tblTempUsageDetail_20' ) start [2025-04-06 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850239', 'tblTempUsageDetail_20' ) end [2025-04-06 21:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:22:25] Production.INFO: ==3621== Releasing lock... [2025-04-06 21:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:22:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-06 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:23:06 [end_date_ymd] => 2025-04-06 21:23:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:23:06' and `end` < '2025-04-06 21: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-04-06 21:23:19] Production.INFO: count ==3060 [2025-04-06 21:23:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:23:06 - End Time 2025-04-06 21:23:06 [2025-04-06 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850244', 'tblTempUsageDetail_20' ) start [2025-04-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850244', 'tblTempUsageDetail_20' ) end [2025-04-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850244', 'tblTempVendorCDR_20' ) start [2025-04-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850244', 'tblTempVendorCDR_20' ) end [2025-04-06 21:23:21] Production.INFO: ProcessCDR(1,14850244,1,1,2) [2025-04-06 21:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850244', 'tblTempUsageDetail_20' ) start [2025-04-06 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850244', 'tblTempUsageDetail_20' ) end [2025-04-06 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:23:24] Production.INFO: ==3696== Releasing lock... [2025-04-06 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:23:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-06 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:24:05 [end_date_ymd] => 2025-04-06 21:24:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:24:05' and `end` < '2025-04-06 21: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-04-06 21:24:18] Production.INFO: count ==2976 [2025-04-06 21:24:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:24:05 - End Time 2025-04-06 21:24:05 [2025-04-06 21:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850249', 'tblTempUsageDetail_20' ) start [2025-04-06 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850249', 'tblTempUsageDetail_20' ) end [2025-04-06 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850249', 'tblTempVendorCDR_20' ) start [2025-04-06 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850249', 'tblTempVendorCDR_20' ) end [2025-04-06 21:24:20] Production.INFO: ProcessCDR(1,14850249,1,1,2) [2025-04-06 21:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850249', 'tblTempUsageDetail_20' ) start [2025-04-06 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850249', 'tblTempUsageDetail_20' ) end [2025-04-06 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:24:24] Production.INFO: ==3773== Releasing lock... [2025-04-06 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:24:24] Production.INFO: 50 MB #Memory Used# [2025-04-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:25:05 [end_date_ymd] => 2025-04-06 21:25:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:25:05' and `end` < '2025-04-06 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-04-06 21:25:18] Production.INFO: count ==2895 [2025-04-06 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:25:05 - End Time 2025-04-06 21:25:05 [2025-04-06 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850254', 'tblTempUsageDetail_20' ) start [2025-04-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850254', 'tblTempUsageDetail_20' ) end [2025-04-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850254', 'tblTempVendorCDR_20' ) start [2025-04-06 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850254', 'tblTempVendorCDR_20' ) end [2025-04-06 21:25:19] Production.INFO: ProcessCDR(1,14850254,1,1,2) [2025-04-06 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850254', 'tblTempUsageDetail_20' ) start [2025-04-06 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850254', 'tblTempUsageDetail_20' ) end [2025-04-06 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:25:24] Production.INFO: ==3850== Releasing lock... [2025-04-06 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:25:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-06 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:26:05 [end_date_ymd] => 2025-04-06 21:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:26:05' and `end` < '2025-04-06 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-04-06 21:26:18] Production.INFO: count ==2810 [2025-04-06 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:26:05 - End Time 2025-04-06 21:26:05 [2025-04-06 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850259', 'tblTempUsageDetail_20' ) start [2025-04-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850259', 'tblTempUsageDetail_20' ) end [2025-04-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850259', 'tblTempVendorCDR_20' ) start [2025-04-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850259', 'tblTempVendorCDR_20' ) end [2025-04-06 21:26:19] Production.INFO: ProcessCDR(1,14850259,1,1,2) [2025-04-06 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850259', 'tblTempUsageDetail_20' ) start [2025-04-06 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850259', 'tblTempUsageDetail_20' ) end [2025-04-06 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:26:23] Production.INFO: ==3924== Releasing lock... [2025-04-06 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:26:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-06 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:27:05 [end_date_ymd] => 2025-04-06 21:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:27:05' and `end` < '2025-04-06 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-04-06 21:27:19] Production.INFO: count ==2724 [2025-04-06 21:27:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:27:05 - End Time 2025-04-06 21:27:05 [2025-04-06 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850264', 'tblTempUsageDetail_20' ) start [2025-04-06 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850264', 'tblTempUsageDetail_20' ) end [2025-04-06 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850264', 'tblTempVendorCDR_20' ) start [2025-04-06 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850264', 'tblTempVendorCDR_20' ) end [2025-04-06 21:27:20] Production.INFO: ProcessCDR(1,14850264,1,1,2) [2025-04-06 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850264', 'tblTempUsageDetail_20' ) start [2025-04-06 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850264', 'tblTempUsageDetail_20' ) end [2025-04-06 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:27:23] Production.INFO: ==4001== Releasing lock... [2025-04-06 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:27:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-06 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:28:05 [end_date_ymd] => 2025-04-06 21:28:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:28:05' and `end` < '2025-04-06 21: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-04-06 21:28:18] Production.INFO: count ==2617 [2025-04-06 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:28:05 - End Time 2025-04-06 21:28:05 [2025-04-06 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850269', 'tblTempUsageDetail_20' ) start [2025-04-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850269', 'tblTempUsageDetail_20' ) end [2025-04-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850269', 'tblTempVendorCDR_20' ) start [2025-04-06 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850269', 'tblTempVendorCDR_20' ) end [2025-04-06 21:28:19] Production.INFO: ProcessCDR(1,14850269,1,1,2) [2025-04-06 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850269', 'tblTempUsageDetail_20' ) start [2025-04-06 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850269', 'tblTempUsageDetail_20' ) end [2025-04-06 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:28:23] Production.INFO: ==4071== Releasing lock... [2025-04-06 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:28:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-06 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:29:06 [end_date_ymd] => 2025-04-06 21:29:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:29:06' and `end` < '2025-04-06 21: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-04-06 21:29:19] Production.INFO: count ==2503 [2025-04-06 21:29:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:29:06 - End Time 2025-04-06 21:29:06 [2025-04-06 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850274', 'tblTempUsageDetail_20' ) start [2025-04-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850274', 'tblTempUsageDetail_20' ) end [2025-04-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850274', 'tblTempVendorCDR_20' ) start [2025-04-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850274', 'tblTempVendorCDR_20' ) end [2025-04-06 21:29:20] Production.INFO: ProcessCDR(1,14850274,1,1,2) [2025-04-06 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850274', 'tblTempUsageDetail_20' ) start [2025-04-06 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850274', 'tblTempUsageDetail_20' ) end [2025-04-06 21:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:29:25] Production.INFO: ==4149== Releasing lock... [2025-04-06 21:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:29:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-06 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:30:06 [end_date_ymd] => 2025-04-06 21:30:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:30:06' and `end` < '2025-04-06 21: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-04-06 21:30:19] Production.INFO: count ==2417 [2025-04-06 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:30:06 - End Time 2025-04-06 21:30:06 [2025-04-06 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850280', 'tblTempUsageDetail_20' ) start [2025-04-06 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850280', 'tblTempUsageDetail_20' ) end [2025-04-06 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850280', 'tblTempVendorCDR_20' ) start [2025-04-06 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850280', 'tblTempVendorCDR_20' ) end [2025-04-06 21:30:20] Production.INFO: ProcessCDR(1,14850280,1,1,2) [2025-04-06 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850280', 'tblTempUsageDetail_20' ) start [2025-04-06 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850280', 'tblTempUsageDetail_20' ) end [2025-04-06 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:30:23] Production.INFO: ==4226== Releasing lock... [2025-04-06 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:30:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-06 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:31:05 [end_date_ymd] => 2025-04-06 21:31:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:31:05' and `end` < '2025-04-06 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-04-06 21:31:18] Production.INFO: count ==2283 [2025-04-06 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:31:05 - End Time 2025-04-06 21:31:05 [2025-04-06 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850285', 'tblTempUsageDetail_20' ) start [2025-04-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850285', 'tblTempUsageDetail_20' ) end [2025-04-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850285', 'tblTempVendorCDR_20' ) start [2025-04-06 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850285', 'tblTempVendorCDR_20' ) end [2025-04-06 21:31:19] Production.INFO: ProcessCDR(1,14850285,1,1,2) [2025-04-06 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850285', 'tblTempUsageDetail_20' ) start [2025-04-06 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850285', 'tblTempUsageDetail_20' ) end [2025-04-06 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:31:23] Production.INFO: ==4301== Releasing lock... [2025-04-06 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-06 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:32:05 [end_date_ymd] => 2025-04-06 21:32:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:32:05' and `end` < '2025-04-06 21: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-04-06 21:32:18] Production.INFO: count ==2256 [2025-04-06 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:32:05 - End Time 2025-04-06 21:32:05 [2025-04-06 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850290', 'tblTempUsageDetail_20' ) start [2025-04-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850290', 'tblTempUsageDetail_20' ) end [2025-04-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850290', 'tblTempVendorCDR_20' ) start [2025-04-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850290', 'tblTempVendorCDR_20' ) end [2025-04-06 21:32:19] Production.INFO: ProcessCDR(1,14850290,1,1,2) [2025-04-06 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850290', 'tblTempUsageDetail_20' ) start [2025-04-06 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850290', 'tblTempUsageDetail_20' ) end [2025-04-06 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:32:22] Production.INFO: ==4372== Releasing lock... [2025-04-06 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:32:22] Production.INFO: 45 MB #Memory Used# [2025-04-06 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:33:05 [end_date_ymd] => 2025-04-06 21:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:33:05' and `end` < '2025-04-06 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-04-06 21:33:18] Production.INFO: count ==2256 [2025-04-06 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:33:05 - End Time 2025-04-06 21:33:05 [2025-04-06 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850295', 'tblTempUsageDetail_20' ) start [2025-04-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850295', 'tblTempUsageDetail_20' ) end [2025-04-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850295', 'tblTempVendorCDR_20' ) start [2025-04-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850295', 'tblTempVendorCDR_20' ) end [2025-04-06 21:33:19] Production.INFO: ProcessCDR(1,14850295,1,1,2) [2025-04-06 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850295', 'tblTempUsageDetail_20' ) start [2025-04-06 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850295', 'tblTempUsageDetail_20' ) end [2025-04-06 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:33:24] Production.INFO: ==4445== Releasing lock... [2025-04-06 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:33:24] Production.INFO: 45 MB #Memory Used# [2025-04-06 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:34:05 [end_date_ymd] => 2025-04-06 21:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:34:05' and `end` < '2025-04-06 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-04-06 21:34:18] Production.INFO: count ==2253 [2025-04-06 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:34:05 - End Time 2025-04-06 21:34:05 [2025-04-06 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850300', 'tblTempUsageDetail_20' ) start [2025-04-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850300', 'tblTempUsageDetail_20' ) end [2025-04-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850300', 'tblTempVendorCDR_20' ) start [2025-04-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850300', 'tblTempVendorCDR_20' ) end [2025-04-06 21:34:19] Production.INFO: ProcessCDR(1,14850300,1,1,2) [2025-04-06 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850300', 'tblTempUsageDetail_20' ) start [2025-04-06 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850300', 'tblTempUsageDetail_20' ) end [2025-04-06 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:34:24] Production.INFO: ==4571== Releasing lock... [2025-04-06 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:34:24] Production.INFO: 45 MB #Memory Used# [2025-04-06 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:35:06 [end_date_ymd] => 2025-04-06 21:35:06 [RateCDR] => 1 ) [2025-04-06 21:35: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-04-06 18:35:06' and `end` < '2025-04-06 21:35: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-04-06 21:35:19] Production.INFO: count ==2168 [2025-04-06 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:35:06 - End Time 2025-04-06 21:35:06 [2025-04-06 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850305', 'tblTempUsageDetail_20' ) start [2025-04-06 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850305', 'tblTempUsageDetail_20' ) end [2025-04-06 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850305', 'tblTempVendorCDR_20' ) start [2025-04-06 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850305', 'tblTempVendorCDR_20' ) end [2025-04-06 21:35:19] Production.INFO: ProcessCDR(1,14850305,1,1,2) [2025-04-06 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850305', 'tblTempUsageDetail_20' ) start [2025-04-06 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850305', 'tblTempUsageDetail_20' ) end [2025-04-06 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:35:23] Production.INFO: ==4650== Releasing lock... [2025-04-06 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:35:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-06 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:36:05 [end_date_ymd] => 2025-04-06 21:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:36:05' and `end` < '2025-04-06 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-04-06 21:36:18] Production.INFO: count ==2087 [2025-04-06 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:36:05 - End Time 2025-04-06 21:36:05 [2025-04-06 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850310', 'tblTempUsageDetail_20' ) start [2025-04-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850310', 'tblTempUsageDetail_20' ) end [2025-04-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850310', 'tblTempVendorCDR_20' ) start [2025-04-06 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850310', 'tblTempVendorCDR_20' ) end [2025-04-06 21:36:19] Production.INFO: ProcessCDR(1,14850310,1,1,2) [2025-04-06 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850310', 'tblTempUsageDetail_20' ) start [2025-04-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850310', 'tblTempUsageDetail_20' ) end [2025-04-06 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:36:23] Production.INFO: ==4724== Releasing lock... [2025-04-06 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:36:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-06 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:37:06 [end_date_ymd] => 2025-04-06 21:37:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:37:06' and `end` < '2025-04-06 21: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-04-06 21:37:19] Production.INFO: count ==2003 [2025-04-06 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:37:06 - End Time 2025-04-06 21:37:06 [2025-04-06 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850315', 'tblTempUsageDetail_20' ) start [2025-04-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850315', 'tblTempUsageDetail_20' ) end [2025-04-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850315', 'tblTempVendorCDR_20' ) start [2025-04-06 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850315', 'tblTempVendorCDR_20' ) end [2025-04-06 21:37:19] Production.INFO: ProcessCDR(1,14850315,1,1,2) [2025-04-06 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850315', 'tblTempUsageDetail_20' ) start [2025-04-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850315', 'tblTempUsageDetail_20' ) end [2025-04-06 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:37:23] Production.INFO: ==4803== Releasing lock... [2025-04-06 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:37:23] Production.INFO: 43 MB #Memory Used# [2025-04-06 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:38:06 [end_date_ymd] => 2025-04-06 21:38:06 [RateCDR] => 1 ) [2025-04-06 21:38: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-04-06 18:38:06' and `end` < '2025-04-06 21:38: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-04-06 21:38:19] Production.INFO: count ==1918 [2025-04-06 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:38:06 - End Time 2025-04-06 21:38:06 [2025-04-06 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850320', 'tblTempUsageDetail_20' ) start [2025-04-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850320', 'tblTempUsageDetail_20' ) end [2025-04-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850320', 'tblTempVendorCDR_20' ) start [2025-04-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850320', 'tblTempVendorCDR_20' ) end [2025-04-06 21:38:19] Production.INFO: ProcessCDR(1,14850320,1,1,2) [2025-04-06 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850320', 'tblTempUsageDetail_20' ) start [2025-04-06 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850320', 'tblTempUsageDetail_20' ) end [2025-04-06 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:38:23] Production.INFO: ==4886== Releasing lock... [2025-04-06 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:38:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-06 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:39:05 [end_date_ymd] => 2025-04-06 21:39:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:39:05' and `end` < '2025-04-06 21: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-04-06 21:39:18] Production.INFO: count ==1837 [2025-04-06 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:39:05 - End Time 2025-04-06 21:39:05 [2025-04-06 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850325', 'tblTempUsageDetail_20' ) start [2025-04-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850325', 'tblTempUsageDetail_20' ) end [2025-04-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850325', 'tblTempVendorCDR_20' ) start [2025-04-06 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850325', 'tblTempVendorCDR_20' ) end [2025-04-06 21:39:19] Production.INFO: ProcessCDR(1,14850325,1,1,2) [2025-04-06 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850325', 'tblTempUsageDetail_20' ) start [2025-04-06 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850325', 'tblTempUsageDetail_20' ) end [2025-04-06 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:39:24] Production.INFO: ==4964== Releasing lock... [2025-04-06 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:39:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-06 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:40:07 [end_date_ymd] => 2025-04-06 21:40:07 [RateCDR] => 1 ) [2025-04-06 21:40: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-04-06 18:40:07' and `end` < '2025-04-06 21:40: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-04-06 21:40:20] Production.INFO: count ==1748 [2025-04-06 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:40:07 - End Time 2025-04-06 21:40:07 [2025-04-06 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850331', 'tblTempUsageDetail_20' ) start [2025-04-06 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850331', 'tblTempUsageDetail_20' ) end [2025-04-06 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850331', 'tblTempVendorCDR_20' ) start [2025-04-06 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850331', 'tblTempVendorCDR_20' ) end [2025-04-06 21:40:20] Production.INFO: ProcessCDR(1,14850331,1,1,2) [2025-04-06 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850331', 'tblTempUsageDetail_20' ) start [2025-04-06 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850331', 'tblTempUsageDetail_20' ) end [2025-04-06 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:40:24] Production.INFO: ==5052== Releasing lock... [2025-04-06 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:40:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-06 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:41:05 [end_date_ymd] => 2025-04-06 21:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:41:05' and `end` < '2025-04-06 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-04-06 21:41:18] Production.INFO: count ==1635 [2025-04-06 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 18:41:05 - End Time 2025-04-06 21:41:05 [2025-04-06 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850336', 'tblTempUsageDetail_20' ) start [2025-04-06 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850336', 'tblTempUsageDetail_20' ) end [2025-04-06 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850336', 'tblTempVendorCDR_20' ) start [2025-04-06 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850336', 'tblTempVendorCDR_20' ) end [2025-04-06 21:41:18] Production.INFO: ProcessCDR(1,14850336,1,1,2) [2025-04-06 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850336', 'tblTempUsageDetail_20' ) start [2025-04-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850336', 'tblTempUsageDetail_20' ) end [2025-04-06 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:41:22] Production.INFO: ==5137== Releasing lock... [2025-04-06 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:41:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:42:05 [end_date_ymd] => 2025-04-06 21:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:42:05' and `end` < '2025-04-06 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-04-06 21:42:18] Production.INFO: count ==1633 [2025-04-06 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:42:05 - End Time 2025-04-06 21:42:05 [2025-04-06 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850341', 'tblTempUsageDetail_20' ) start [2025-04-06 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850341', 'tblTempUsageDetail_20' ) end [2025-04-06 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850341', 'tblTempVendorCDR_20' ) start [2025-04-06 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850341', 'tblTempVendorCDR_20' ) end [2025-04-06 21:42:19] Production.INFO: ProcessCDR(1,14850341,1,1,2) [2025-04-06 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850341', 'tblTempUsageDetail_20' ) start [2025-04-06 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850341', 'tblTempUsageDetail_20' ) end [2025-04-06 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:42:23] Production.INFO: ==5231== Releasing lock... [2025-04-06 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-06 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:43:05 [end_date_ymd] => 2025-04-06 21:43:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:43:05' and `end` < '2025-04-06 21: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-04-06 21:43:18] Production.INFO: count ==1629 [2025-04-06 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 18:43:05 - End Time 2025-04-06 21:43:05 [2025-04-06 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850346', 'tblTempUsageDetail_20' ) start [2025-04-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850346', 'tblTempUsageDetail_20' ) end [2025-04-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850346', 'tblTempVendorCDR_20' ) start [2025-04-06 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850346', 'tblTempVendorCDR_20' ) end [2025-04-06 21:43:18] Production.INFO: ProcessCDR(1,14850346,1,1,2) [2025-04-06 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850346', 'tblTempUsageDetail_20' ) start [2025-04-06 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850346', 'tblTempUsageDetail_20' ) end [2025-04-06 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:43:22] Production.INFO: ==5387== Releasing lock... [2025-04-06 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:43:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:44:06 [end_date_ymd] => 2025-04-06 21:44:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:44:06' and `end` < '2025-04-06 21: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-04-06 21:44:19] Production.INFO: count ==1629 [2025-04-06 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:44:06 - End Time 2025-04-06 21:44:06 [2025-04-06 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850351', 'tblTempUsageDetail_20' ) start [2025-04-06 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850351', 'tblTempUsageDetail_20' ) end [2025-04-06 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850351', 'tblTempVendorCDR_20' ) start [2025-04-06 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850351', 'tblTempVendorCDR_20' ) end [2025-04-06 21:44:19] Production.INFO: ProcessCDR(1,14850351,1,1,2) [2025-04-06 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850351', 'tblTempUsageDetail_20' ) start [2025-04-06 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850351', 'tblTempUsageDetail_20' ) end [2025-04-06 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:44:23] Production.INFO: ==5534== Releasing lock... [2025-04-06 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:45:05 [end_date_ymd] => 2025-04-06 21:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:45:05' and `end` < '2025-04-06 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-04-06 21:45:18] Production.INFO: count ==1627 [2025-04-06 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:45:05 - End Time 2025-04-06 21:45:05 [2025-04-06 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850356', 'tblTempUsageDetail_20' ) start [2025-04-06 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850356', 'tblTempUsageDetail_20' ) end [2025-04-06 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850356', 'tblTempVendorCDR_20' ) start [2025-04-06 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850356', 'tblTempVendorCDR_20' ) end [2025-04-06 21:45:19] Production.INFO: ProcessCDR(1,14850356,1,1,2) [2025-04-06 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850356', 'tblTempUsageDetail_20' ) start [2025-04-06 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850356', 'tblTempUsageDetail_20' ) end [2025-04-06 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:45:22] Production.INFO: ==5624== Releasing lock... [2025-04-06 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:45:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-06 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:46:06 [end_date_ymd] => 2025-04-06 21:46:06 [RateCDR] => 1 ) [2025-04-06 21:46: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-04-06 18:46:06' and `end` < '2025-04-06 21:46: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-04-06 21:46:19] Production.INFO: count ==1527 [2025-04-06 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:46:06 - End Time 2025-04-06 21:46:06 [2025-04-06 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850361', 'tblTempUsageDetail_20' ) start [2025-04-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850361', 'tblTempUsageDetail_20' ) end [2025-04-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850361', 'tblTempVendorCDR_20' ) start [2025-04-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850361', 'tblTempVendorCDR_20' ) end [2025-04-06 21:46:19] Production.INFO: ProcessCDR(1,14850361,1,1,2) [2025-04-06 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850361', 'tblTempUsageDetail_20' ) start [2025-04-06 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850361', 'tblTempUsageDetail_20' ) end [2025-04-06 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:46:24] Production.INFO: ==5709== Releasing lock... [2025-04-06 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:46:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-06 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:47:05 [end_date_ymd] => 2025-04-06 21:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:47:05' and `end` < '2025-04-06 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-04-06 21:47:18] Production.INFO: count ==1467 [2025-04-06 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-06 18:47:05 - End Time 2025-04-06 21:47:05 [2025-04-06 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850366', 'tblTempUsageDetail_20' ) start [2025-04-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850366', 'tblTempUsageDetail_20' ) end [2025-04-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850366', 'tblTempVendorCDR_20' ) start [2025-04-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850366', 'tblTempVendorCDR_20' ) end [2025-04-06 21:47:18] Production.INFO: ProcessCDR(1,14850366,1,1,2) [2025-04-06 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850366', 'tblTempUsageDetail_20' ) start [2025-04-06 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850366', 'tblTempUsageDetail_20' ) end [2025-04-06 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:47:23] Production.INFO: ==5788== Releasing lock... [2025-04-06 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:47:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:48:05 [end_date_ymd] => 2025-04-06 21:48:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:48:05' and `end` < '2025-04-06 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-04-06 21:48:18] Production.INFO: count ==1475 [2025-04-06 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:48:05 - End Time 2025-04-06 21:48:05 [2025-04-06 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850371', 'tblTempUsageDetail_20' ) start [2025-04-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850371', 'tblTempUsageDetail_20' ) end [2025-04-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850371', 'tblTempVendorCDR_20' ) start [2025-04-06 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850371', 'tblTempVendorCDR_20' ) end [2025-04-06 21:48:19] Production.INFO: ProcessCDR(1,14850371,1,1,2) [2025-04-06 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850371', 'tblTempUsageDetail_20' ) start [2025-04-06 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850371', 'tblTempUsageDetail_20' ) end [2025-04-06 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:48:24] Production.INFO: ==5881== Releasing lock... [2025-04-06 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:48:24] Production.INFO: 39 MB #Memory Used# [2025-04-06 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:49:06 [end_date_ymd] => 2025-04-06 21:49:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:49:06' and `end` < '2025-04-06 21: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-04-06 21:49:18] Production.INFO: count ==1479 [2025-04-06 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:49:06 - End Time 2025-04-06 21:49:06 [2025-04-06 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850376', 'tblTempUsageDetail_20' ) start [2025-04-06 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850376', 'tblTempUsageDetail_20' ) end [2025-04-06 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850376', 'tblTempVendorCDR_20' ) start [2025-04-06 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850376', 'tblTempVendorCDR_20' ) end [2025-04-06 21:49:19] Production.INFO: ProcessCDR(1,14850376,1,1,2) [2025-04-06 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850376', 'tblTempUsageDetail_20' ) start [2025-04-06 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850376', 'tblTempUsageDetail_20' ) end [2025-04-06 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:49:22] Production.INFO: ==5997== Releasing lock... [2025-04-06 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:49:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-06 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:50:06 [end_date_ymd] => 2025-04-06 21:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:50:06' and `end` < '2025-04-06 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-04-06 21:50:19] Production.INFO: count ==1411 [2025-04-06 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 18:50:06 - End Time 2025-04-06 21:50:06 [2025-04-06 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850382', 'tblTempUsageDetail_20' ) start [2025-04-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850382', 'tblTempUsageDetail_20' ) end [2025-04-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850382', 'tblTempVendorCDR_20' ) start [2025-04-06 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850382', 'tblTempVendorCDR_20' ) end [2025-04-06 21:50:20] Production.INFO: ProcessCDR(1,14850382,1,1,2) [2025-04-06 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850382', 'tblTempUsageDetail_20' ) start [2025-04-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850382', 'tblTempUsageDetail_20' ) end [2025-04-06 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:50:23] Production.INFO: ==6083== Releasing lock... [2025-04-06 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:50:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:51:06 [end_date_ymd] => 2025-04-06 21:51:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:51:06' and `end` < '2025-04-06 21: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-04-06 21:51:19] Production.INFO: count ==1341 [2025-04-06 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:51:06 - End Time 2025-04-06 21:51:06 [2025-04-06 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850387', 'tblTempUsageDetail_20' ) start [2025-04-06 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850387', 'tblTempUsageDetail_20' ) end [2025-04-06 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850387', 'tblTempVendorCDR_20' ) start [2025-04-06 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850387', 'tblTempVendorCDR_20' ) end [2025-04-06 21:51:19] Production.INFO: ProcessCDR(1,14850387,1,1,2) [2025-04-06 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850387', 'tblTempUsageDetail_20' ) start [2025-04-06 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850387', 'tblTempUsageDetail_20' ) end [2025-04-06 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:51:23] Production.INFO: ==6162== Releasing lock... [2025-04-06 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:51:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:52:06 [end_date_ymd] => 2025-04-06 21:52:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:52:06' and `end` < '2025-04-06 21: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-04-06 21:52:19] Production.INFO: count ==1341 [2025-04-06 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:52:06 - End Time 2025-04-06 21:52:06 [2025-04-06 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850392', 'tblTempUsageDetail_20' ) start [2025-04-06 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850392', 'tblTempUsageDetail_20' ) end [2025-04-06 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850392', 'tblTempVendorCDR_20' ) start [2025-04-06 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850392', 'tblTempVendorCDR_20' ) end [2025-04-06 21:52:19] Production.INFO: ProcessCDR(1,14850392,1,1,2) [2025-04-06 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850392', 'tblTempUsageDetail_20' ) start [2025-04-06 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850392', 'tblTempUsageDetail_20' ) end [2025-04-06 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:52:24] Production.INFO: ==6245== Releasing lock... [2025-04-06 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:52:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:53:06 [end_date_ymd] => 2025-04-06 21:53:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:53:06' and `end` < '2025-04-06 21: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-04-06 21:53:19] Production.INFO: count ==1342 [2025-04-06 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:53:06 - End Time 2025-04-06 21:53:06 [2025-04-06 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850397', 'tblTempUsageDetail_20' ) start [2025-04-06 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850397', 'tblTempUsageDetail_20' ) end [2025-04-06 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850397', 'tblTempVendorCDR_20' ) start [2025-04-06 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850397', 'tblTempVendorCDR_20' ) end [2025-04-06 21:53:19] Production.INFO: ProcessCDR(1,14850397,1,1,2) [2025-04-06 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850397', 'tblTempUsageDetail_20' ) start [2025-04-06 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850397', 'tblTempUsageDetail_20' ) end [2025-04-06 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:53:23] Production.INFO: ==6335== Releasing lock... [2025-04-06 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:53:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:54:06 [end_date_ymd] => 2025-04-06 21:54:06 [RateCDR] => 1 ) [2025-04-06 21:54: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-04-06 18:54:06' and `end` < '2025-04-06 21:54: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-04-06 21:54:19] Production.INFO: count ==1342 [2025-04-06 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:54:06 - End Time 2025-04-06 21:54:06 [2025-04-06 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850402', 'tblTempUsageDetail_20' ) start [2025-04-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850402', 'tblTempUsageDetail_20' ) end [2025-04-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850402', 'tblTempVendorCDR_20' ) start [2025-04-06 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850402', 'tblTempVendorCDR_20' ) end [2025-04-06 21:54:19] Production.INFO: ProcessCDR(1,14850402,1,1,2) [2025-04-06 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850402', 'tblTempUsageDetail_20' ) start [2025-04-06 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850402', 'tblTempUsageDetail_20' ) end [2025-04-06 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:54:23] Production.INFO: ==6419== Releasing lock... [2025-04-06 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:54:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:55:06 [end_date_ymd] => 2025-04-06 21:55:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:55:06' and `end` < '2025-04-06 21: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-04-06 21:55:19] Production.INFO: count ==1346 [2025-04-06 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:55:06 - End Time 2025-04-06 21:55:06 [2025-04-06 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850407', 'tblTempUsageDetail_20' ) start [2025-04-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850407', 'tblTempUsageDetail_20' ) end [2025-04-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850407', 'tblTempVendorCDR_20' ) start [2025-04-06 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850407', 'tblTempVendorCDR_20' ) end [2025-04-06 21:55:19] Production.INFO: ProcessCDR(1,14850407,1,1,2) [2025-04-06 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850407', 'tblTempUsageDetail_20' ) start [2025-04-06 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850407', 'tblTempUsageDetail_20' ) end [2025-04-06 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:55:23] Production.INFO: ==6505== Releasing lock... [2025-04-06 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:55:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:56:05 [end_date_ymd] => 2025-04-06 21:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 18:56:05' and `end` < '2025-04-06 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-04-06 21:56:18] Production.INFO: count ==1359 [2025-04-06 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:56:05 - End Time 2025-04-06 21:56:05 [2025-04-06 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850412', 'tblTempUsageDetail_20' ) start [2025-04-06 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850412', 'tblTempUsageDetail_20' ) end [2025-04-06 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850412', 'tblTempVendorCDR_20' ) start [2025-04-06 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850412', 'tblTempVendorCDR_20' ) end [2025-04-06 21:56:19] Production.INFO: ProcessCDR(1,14850412,1,1,2) [2025-04-06 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850412', 'tblTempUsageDetail_20' ) start [2025-04-06 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850412', 'tblTempUsageDetail_20' ) end [2025-04-06 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:56:22] Production.INFO: ==6588== Releasing lock... [2025-04-06 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:57:05 [end_date_ymd] => 2025-04-06 21:57:05 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:57:05' and `end` < '2025-04-06 21: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-04-06 21:57:18] Production.INFO: count ==1370 [2025-04-06 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:57:05 - End Time 2025-04-06 21:57:05 [2025-04-06 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850417', 'tblTempUsageDetail_20' ) start [2025-04-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850417', 'tblTempUsageDetail_20' ) end [2025-04-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850417', 'tblTempVendorCDR_20' ) start [2025-04-06 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850417', 'tblTempVendorCDR_20' ) end [2025-04-06 21:57:19] Production.INFO: ProcessCDR(1,14850417,1,1,2) [2025-04-06 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850417', 'tblTempUsageDetail_20' ) start [2025-04-06 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850417', 'tblTempUsageDetail_20' ) end [2025-04-06 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:57:24] Production.INFO: ==6673== Releasing lock... [2025-04-06 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:57:24] Production.INFO: 38 MB #Memory Used# [2025-04-06 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:58:06 [end_date_ymd] => 2025-04-06 21:58:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:58:06' and `end` < '2025-04-06 21: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-04-06 21:58:19] Production.INFO: count ==1374 [2025-04-06 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:58:06 - End Time 2025-04-06 21:58:06 [2025-04-06 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850422', 'tblTempUsageDetail_20' ) start [2025-04-06 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850422', 'tblTempUsageDetail_20' ) end [2025-04-06 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850422', 'tblTempVendorCDR_20' ) start [2025-04-06 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850422', 'tblTempVendorCDR_20' ) end [2025-04-06 21:58:19] Production.INFO: ProcessCDR(1,14850422,1,1,2) [2025-04-06 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850422', 'tblTempUsageDetail_20' ) start [2025-04-06 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850422', 'tblTempUsageDetail_20' ) end [2025-04-06 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:58:23] Production.INFO: ==6757== Releasing lock... [2025-04-06 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:58:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 18:59:06 [end_date_ymd] => 2025-04-06 21:59:06 [RateCDR] => 1 ) [2025-04-06 21: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-04-06 18:59:06' and `end` < '2025-04-06 21: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-04-06 21:59:18] Production.INFO: count ==1383 [2025-04-06 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 18:59:06 - End Time 2025-04-06 21:59:06 [2025-04-06 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850427', 'tblTempUsageDetail_20' ) start [2025-04-06 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850427', 'tblTempUsageDetail_20' ) end [2025-04-06 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850427', 'tblTempVendorCDR_20' ) start [2025-04-06 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850427', 'tblTempVendorCDR_20' ) end [2025-04-06 21:59:19] Production.INFO: ProcessCDR(1,14850427,1,1,2) [2025-04-06 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850427', 'tblTempUsageDetail_20' ) start [2025-04-06 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850427', 'tblTempUsageDetail_20' ) end [2025-04-06 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 21:59:22] Production.INFO: ==6841== Releasing lock... [2025-04-06 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 21:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:00:06 [end_date_ymd] => 2025-04-06 22:00:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:00:06' and `end` < '2025-04-06 22: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-04-06 22:00:19] Production.INFO: count ==1392 [2025-04-06 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:00:06 - End Time 2025-04-06 22:00:06 [2025-04-06 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850432', 'tblTempUsageDetail_20' ) start [2025-04-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850432', 'tblTempUsageDetail_20' ) end [2025-04-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850432', 'tblTempVendorCDR_20' ) start [2025-04-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850432', 'tblTempVendorCDR_20' ) end [2025-04-06 22:00:19] Production.INFO: ProcessCDR(1,14850432,1,1,2) [2025-04-06 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850432', 'tblTempUsageDetail_20' ) start [2025-04-06 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850432', 'tblTempUsageDetail_20' ) end [2025-04-06 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:00:23] Production.INFO: ==6936== Releasing lock... [2025-04-06 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:01:05 [end_date_ymd] => 2025-04-06 22:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:01:05' and `end` < '2025-04-06 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-04-06 22:01:18] Production.INFO: count ==1393 [2025-04-06 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:01:05 - End Time 2025-04-06 22:01:05 [2025-04-06 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850438', 'tblTempUsageDetail_20' ) start [2025-04-06 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850438', 'tblTempUsageDetail_20' ) end [2025-04-06 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850438', 'tblTempVendorCDR_20' ) start [2025-04-06 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850438', 'tblTempVendorCDR_20' ) end [2025-04-06 22:01:19] Production.INFO: ProcessCDR(1,14850438,1,1,2) [2025-04-06 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850438', 'tblTempUsageDetail_20' ) start [2025-04-06 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850438', 'tblTempUsageDetail_20' ) end [2025-04-06 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:01:22] Production.INFO: ==7038== Releasing lock... [2025-04-06 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-06 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:02:05 [end_date_ymd] => 2025-04-06 22:02:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:02:05' and `end` < '2025-04-06 22: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-04-06 22:02:18] Production.INFO: count ==1390 [2025-04-06 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:02:05 - End Time 2025-04-06 22:02:05 [2025-04-06 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850443', 'tblTempUsageDetail_20' ) start [2025-04-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850443', 'tblTempUsageDetail_20' ) end [2025-04-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850443', 'tblTempVendorCDR_20' ) start [2025-04-06 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850443', 'tblTempVendorCDR_20' ) end [2025-04-06 22:02:19] Production.INFO: ProcessCDR(1,14850443,1,1,2) [2025-04-06 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850443', 'tblTempUsageDetail_20' ) start [2025-04-06 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850443', 'tblTempUsageDetail_20' ) end [2025-04-06 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:02:22] Production.INFO: ==7131== Releasing lock... [2025-04-06 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:02:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:03:05 [end_date_ymd] => 2025-04-06 22:03:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:03:05' and `end` < '2025-04-06 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-04-06 22:03:18] Production.INFO: count ==1388 [2025-04-06 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:03:05 - End Time 2025-04-06 22:03:05 [2025-04-06 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850448', 'tblTempUsageDetail_20' ) start [2025-04-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850448', 'tblTempUsageDetail_20' ) end [2025-04-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850448', 'tblTempVendorCDR_20' ) start [2025-04-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850448', 'tblTempVendorCDR_20' ) end [2025-04-06 22:03:19] Production.INFO: ProcessCDR(1,14850448,1,1,2) [2025-04-06 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850448', 'tblTempUsageDetail_20' ) start [2025-04-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850448', 'tblTempUsageDetail_20' ) end [2025-04-06 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:03:22] Production.INFO: ==7217== Releasing lock... [2025-04-06 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:03:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:04:05 [end_date_ymd] => 2025-04-06 22:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:04:05' and `end` < '2025-04-06 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-04-06 22:04:18] Production.INFO: count ==1390 [2025-04-06 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:04:05 - End Time 2025-04-06 22:04:05 [2025-04-06 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850453', 'tblTempUsageDetail_20' ) start [2025-04-06 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850453', 'tblTempUsageDetail_20' ) end [2025-04-06 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850453', 'tblTempVendorCDR_20' ) start [2025-04-06 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850453', 'tblTempVendorCDR_20' ) end [2025-04-06 22:04:18] Production.INFO: ProcessCDR(1,14850453,1,1,2) [2025-04-06 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850453', 'tblTempUsageDetail_20' ) start [2025-04-06 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850453', 'tblTempUsageDetail_20' ) end [2025-04-06 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:04:21] Production.INFO: ==7311== Releasing lock... [2025-04-06 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:04:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:05:06 [end_date_ymd] => 2025-04-06 22:05:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:05:06' and `end` < '2025-04-06 22: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-04-06 22:05:19] Production.INFO: count ==1386 [2025-04-06 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:05:06 - End Time 2025-04-06 22:05:06 [2025-04-06 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850458', 'tblTempUsageDetail_20' ) start [2025-04-06 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850458', 'tblTempUsageDetail_20' ) end [2025-04-06 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850458', 'tblTempVendorCDR_20' ) start [2025-04-06 22:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850458', 'tblTempVendorCDR_20' ) end [2025-04-06 22:05:20] Production.INFO: ProcessCDR(1,14850458,1,1,2) [2025-04-06 22:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850458', 'tblTempUsageDetail_20' ) start [2025-04-06 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850458', 'tblTempUsageDetail_20' ) end [2025-04-06 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:05:23] Production.INFO: ==7442== Releasing lock... [2025-04-06 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:05:23] Production.INFO: 39 MB #Memory Used# [2025-04-06 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:06:05 [end_date_ymd] => 2025-04-06 22:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:06:05' and `end` < '2025-04-06 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-04-06 22:06:18] Production.INFO: count ==1382 [2025-04-06 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:06:05 - End Time 2025-04-06 22:06:05 [2025-04-06 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850463', 'tblTempUsageDetail_20' ) start [2025-04-06 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850463', 'tblTempUsageDetail_20' ) end [2025-04-06 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850463', 'tblTempVendorCDR_20' ) start [2025-04-06 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850463', 'tblTempVendorCDR_20' ) end [2025-04-06 22:06:18] Production.INFO: ProcessCDR(1,14850463,1,1,2) [2025-04-06 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850463', 'tblTempUsageDetail_20' ) start [2025-04-06 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850463', 'tblTempUsageDetail_20' ) end [2025-04-06 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:06:22] Production.INFO: ==7523== Releasing lock... [2025-04-06 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:06:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:07:05 [end_date_ymd] => 2025-04-06 22:07:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:07:05' and `end` < '2025-04-06 22: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-04-06 22:07:18] Production.INFO: count ==1373 [2025-04-06 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:07:05 - End Time 2025-04-06 22:07:05 [2025-04-06 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850468', 'tblTempUsageDetail_20' ) start [2025-04-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850468', 'tblTempUsageDetail_20' ) end [2025-04-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850468', 'tblTempVendorCDR_20' ) start [2025-04-06 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850468', 'tblTempVendorCDR_20' ) end [2025-04-06 22:07:19] Production.INFO: ProcessCDR(1,14850468,1,1,2) [2025-04-06 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850468', 'tblTempUsageDetail_20' ) start [2025-04-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850468', 'tblTempUsageDetail_20' ) end [2025-04-06 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:07:22] Production.INFO: ==7609== Releasing lock... [2025-04-06 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:08:05 [end_date_ymd] => 2025-04-06 22:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:08:05' and `end` < '2025-04-06 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-04-06 22:08:17] Production.INFO: count ==1368 [2025-04-06 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:08:05 - End Time 2025-04-06 22:08:05 [2025-04-06 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850473', 'tblTempUsageDetail_20' ) start [2025-04-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850473', 'tblTempUsageDetail_20' ) end [2025-04-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850473', 'tblTempVendorCDR_20' ) start [2025-04-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850473', 'tblTempVendorCDR_20' ) end [2025-04-06 22:08:18] Production.INFO: ProcessCDR(1,14850473,1,1,2) [2025-04-06 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850473', 'tblTempUsageDetail_20' ) start [2025-04-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850473', 'tblTempUsageDetail_20' ) end [2025-04-06 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:08:21] Production.INFO: ==7697== Releasing lock... [2025-04-06 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:09:05 [end_date_ymd] => 2025-04-06 22:09:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:09:05' and `end` < '2025-04-06 22: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-04-06 22:09:18] Production.INFO: count ==1366 [2025-04-06 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:09:05 - End Time 2025-04-06 22:09:05 [2025-04-06 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850478', 'tblTempUsageDetail_20' ) start [2025-04-06 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850478', 'tblTempUsageDetail_20' ) end [2025-04-06 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850478', 'tblTempVendorCDR_20' ) start [2025-04-06 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850478', 'tblTempVendorCDR_20' ) end [2025-04-06 22:09:19] Production.INFO: ProcessCDR(1,14850478,1,1,2) [2025-04-06 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850478', 'tblTempUsageDetail_20' ) start [2025-04-06 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850478', 'tblTempUsageDetail_20' ) end [2025-04-06 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:09:22] Production.INFO: ==7786== Releasing lock... [2025-04-06 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:09:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:10:06 [end_date_ymd] => 2025-04-06 22:10:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:10:06' and `end` < '2025-04-06 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-04-06 22:10:18] Production.INFO: count ==1369 [2025-04-06 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:10:06 - End Time 2025-04-06 22:10:06 [2025-04-06 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850484', 'tblTempUsageDetail_20' ) start [2025-04-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850484', 'tblTempUsageDetail_20' ) end [2025-04-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850484', 'tblTempVendorCDR_20' ) start [2025-04-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850484', 'tblTempVendorCDR_20' ) end [2025-04-06 22:10:19] Production.INFO: ProcessCDR(1,14850484,1,1,2) [2025-04-06 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850484', 'tblTempUsageDetail_20' ) start [2025-04-06 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850484', 'tblTempUsageDetail_20' ) end [2025-04-06 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:10:22] Production.INFO: ==7880== Releasing lock... [2025-04-06 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:10:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:11:05 [end_date_ymd] => 2025-04-06 22:11:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:11:05' and `end` < '2025-04-06 22: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-04-06 22:11:19] Production.INFO: count ==1366 [2025-04-06 22:11:20] Production.ERROR: pbx CDR StartTime 2025-04-06 19:11:05 - End Time 2025-04-06 22:11:05 [2025-04-06 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850489', 'tblTempUsageDetail_20' ) start [2025-04-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850489', 'tblTempUsageDetail_20' ) end [2025-04-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850489', 'tblTempVendorCDR_20' ) start [2025-04-06 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850489', 'tblTempVendorCDR_20' ) end [2025-04-06 22:11:20] Production.INFO: ProcessCDR(1,14850489,1,1,2) [2025-04-06 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850489', 'tblTempUsageDetail_20' ) start [2025-04-06 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850489', 'tblTempUsageDetail_20' ) end [2025-04-06 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:11:23] Production.INFO: ==7972== Releasing lock... [2025-04-06 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:12:06 [end_date_ymd] => 2025-04-06 22:12:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:12:06' and `end` < '2025-04-06 22: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-04-06 22:12:19] Production.INFO: count ==1365 [2025-04-06 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:12:06 - End Time 2025-04-06 22:12:06 [2025-04-06 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850494', 'tblTempUsageDetail_20' ) start [2025-04-06 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850494', 'tblTempUsageDetail_20' ) end [2025-04-06 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850494', 'tblTempVendorCDR_20' ) start [2025-04-06 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850494', 'tblTempVendorCDR_20' ) end [2025-04-06 22:12:19] Production.INFO: ProcessCDR(1,14850494,1,1,2) [2025-04-06 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850494', 'tblTempUsageDetail_20' ) start [2025-04-06 22:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850494', 'tblTempUsageDetail_20' ) end [2025-04-06 22:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:12:24] Production.INFO: ==8061== Releasing lock... [2025-04-06 22:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:13:05 [end_date_ymd] => 2025-04-06 22:13:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:13:05' and `end` < '2025-04-06 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-04-06 22:13:18] Production.INFO: count ==1365 [2025-04-06 22:13:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:13:05 - End Time 2025-04-06 22:13:05 [2025-04-06 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850499', 'tblTempUsageDetail_20' ) start [2025-04-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850499', 'tblTempUsageDetail_20' ) end [2025-04-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850499', 'tblTempVendorCDR_20' ) start [2025-04-06 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850499', 'tblTempVendorCDR_20' ) end [2025-04-06 22:13:19] Production.INFO: ProcessCDR(1,14850499,1,1,2) [2025-04-06 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850499', 'tblTempUsageDetail_20' ) start [2025-04-06 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850499', 'tblTempUsageDetail_20' ) end [2025-04-06 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:13:24] Production.INFO: ==8148== Releasing lock... [2025-04-06 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:13:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:14:05 [end_date_ymd] => 2025-04-06 22:14:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:14:05' and `end` < '2025-04-06 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-04-06 22:14:19] Production.INFO: count ==1365 [2025-04-06 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:14:05 - End Time 2025-04-06 22:14:05 [2025-04-06 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850504', 'tblTempUsageDetail_20' ) start [2025-04-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850504', 'tblTempUsageDetail_20' ) end [2025-04-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850504', 'tblTempVendorCDR_20' ) start [2025-04-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850504', 'tblTempVendorCDR_20' ) end [2025-04-06 22:14:19] Production.INFO: ProcessCDR(1,14850504,1,1,2) [2025-04-06 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850504', 'tblTempUsageDetail_20' ) start [2025-04-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850504', 'tblTempUsageDetail_20' ) end [2025-04-06 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:14:22] Production.INFO: ==8234== Releasing lock... [2025-04-06 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:14:22] Production.INFO: 39 MB #Memory Used# [2025-04-06 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:15:05 [end_date_ymd] => 2025-04-06 22:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:15:05' and `end` < '2025-04-06 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-04-06 22:15:18] Production.INFO: count ==1362 [2025-04-06 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:15:05 - End Time 2025-04-06 22:15:05 [2025-04-06 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850509', 'tblTempUsageDetail_20' ) start [2025-04-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850509', 'tblTempUsageDetail_20' ) end [2025-04-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850509', 'tblTempVendorCDR_20' ) start [2025-04-06 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850509', 'tblTempVendorCDR_20' ) end [2025-04-06 22:15:18] Production.INFO: ProcessCDR(1,14850509,1,1,2) [2025-04-06 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850509', 'tblTempUsageDetail_20' ) start [2025-04-06 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850509', 'tblTempUsageDetail_20' ) end [2025-04-06 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:15:22] Production.INFO: ==8326== Releasing lock... [2025-04-06 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:15:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:16:05 [end_date_ymd] => 2025-04-06 22:16:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:16:05' and `end` < '2025-04-06 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-04-06 22:16:18] Production.INFO: count ==1363 [2025-04-06 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:16:05 - End Time 2025-04-06 22:16:05 [2025-04-06 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850514', 'tblTempUsageDetail_20' ) start [2025-04-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850514', 'tblTempUsageDetail_20' ) end [2025-04-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850514', 'tblTempVendorCDR_20' ) start [2025-04-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850514', 'tblTempVendorCDR_20' ) end [2025-04-06 22:16:19] Production.INFO: ProcessCDR(1,14850514,1,1,2) [2025-04-06 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850514', 'tblTempUsageDetail_20' ) start [2025-04-06 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850514', 'tblTempUsageDetail_20' ) end [2025-04-06 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:16:22] Production.INFO: ==8419== Releasing lock... [2025-04-06 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:17:05 [end_date_ymd] => 2025-04-06 22:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:17:05' and `end` < '2025-04-06 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-04-06 22:17:18] Production.INFO: count ==1359 [2025-04-06 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:17:05 - End Time 2025-04-06 22:17:05 [2025-04-06 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850519', 'tblTempUsageDetail_20' ) start [2025-04-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850519', 'tblTempUsageDetail_20' ) end [2025-04-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850519', 'tblTempVendorCDR_20' ) start [2025-04-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850519', 'tblTempVendorCDR_20' ) end [2025-04-06 22:17:18] Production.INFO: ProcessCDR(1,14850519,1,1,2) [2025-04-06 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850519', 'tblTempUsageDetail_20' ) start [2025-04-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850519', 'tblTempUsageDetail_20' ) end [2025-04-06 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:17:22] Production.INFO: ==8505== Releasing lock... [2025-04-06 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:17:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:18:05 [end_date_ymd] => 2025-04-06 22:18:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:18:05' and `end` < '2025-04-06 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-04-06 22:18:18] Production.INFO: count ==1352 [2025-04-06 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:18:05 - End Time 2025-04-06 22:18:05 [2025-04-06 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850524', 'tblTempUsageDetail_20' ) start [2025-04-06 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850524', 'tblTempUsageDetail_20' ) end [2025-04-06 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850524', 'tblTempVendorCDR_20' ) start [2025-04-06 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850524', 'tblTempVendorCDR_20' ) end [2025-04-06 22:18:19] Production.INFO: ProcessCDR(1,14850524,1,1,2) [2025-04-06 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850524', 'tblTempUsageDetail_20' ) start [2025-04-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850524', 'tblTempUsageDetail_20' ) end [2025-04-06 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:18:22] Production.INFO: ==8594== Releasing lock... [2025-04-06 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-06 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:19:05 [end_date_ymd] => 2025-04-06 22:19:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:19:05' and `end` < '2025-04-06 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-04-06 22:19:18] Production.INFO: count ==1351 [2025-04-06 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:19:05 - End Time 2025-04-06 22:19:05 [2025-04-06 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850529', 'tblTempUsageDetail_20' ) start [2025-04-06 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850529', 'tblTempUsageDetail_20' ) end [2025-04-06 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850529', 'tblTempVendorCDR_20' ) start [2025-04-06 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850529', 'tblTempVendorCDR_20' ) end [2025-04-06 22:19:18] Production.INFO: ProcessCDR(1,14850529,1,1,2) [2025-04-06 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850529', 'tblTempUsageDetail_20' ) start [2025-04-06 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850529', 'tblTempUsageDetail_20' ) end [2025-04-06 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:19:22] Production.INFO: ==8680== Releasing lock... [2025-04-06 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:19:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:20:07 [end_date_ymd] => 2025-04-06 22:20:07 [RateCDR] => 1 ) [2025-04-06 22:20: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-04-06 19:20:07' and `end` < '2025-04-06 22:20: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-04-06 22:20:20] Production.INFO: count ==1349 [2025-04-06 22:20:20] Production.ERROR: pbx CDR StartTime 2025-04-06 19:20:07 - End Time 2025-04-06 22:20:07 [2025-04-06 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850535', 'tblTempUsageDetail_20' ) start [2025-04-06 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850535', 'tblTempUsageDetail_20' ) end [2025-04-06 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850535', 'tblTempVendorCDR_20' ) start [2025-04-06 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850535', 'tblTempVendorCDR_20' ) end [2025-04-06 22:20:20] Production.INFO: ProcessCDR(1,14850535,1,1,2) [2025-04-06 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850535', 'tblTempUsageDetail_20' ) start [2025-04-06 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850535', 'tblTempUsageDetail_20' ) end [2025-04-06 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:20:24] Production.INFO: ==8802== Releasing lock... [2025-04-06 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-06 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:21:04 [end_date_ymd] => 2025-04-06 22:21:04 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:21:04' and `end` < '2025-04-06 22: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-04-06 22:21:18] Production.INFO: count ==1304 [2025-04-06 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:21:04 - End Time 2025-04-06 22:21:04 [2025-04-06 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850540', 'tblTempUsageDetail_20' ) start [2025-04-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850540', 'tblTempUsageDetail_20' ) end [2025-04-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850540', 'tblTempVendorCDR_20' ) start [2025-04-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850540', 'tblTempVendorCDR_20' ) end [2025-04-06 22:21:18] Production.INFO: ProcessCDR(1,14850540,1,1,2) [2025-04-06 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850540', 'tblTempUsageDetail_20' ) start [2025-04-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850540', 'tblTempUsageDetail_20' ) end [2025-04-06 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:21:21] Production.INFO: ==8888== Releasing lock... [2025-04-06 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:22:05 [end_date_ymd] => 2025-04-06 22:22:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:22:05' and `end` < '2025-04-06 22: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-04-06 22:22:18] Production.INFO: count ==1303 [2025-04-06 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:22:05 - End Time 2025-04-06 22:22:05 [2025-04-06 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850545', 'tblTempUsageDetail_20' ) start [2025-04-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850545', 'tblTempUsageDetail_20' ) end [2025-04-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850545', 'tblTempVendorCDR_20' ) start [2025-04-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850545', 'tblTempVendorCDR_20' ) end [2025-04-06 22:22:18] Production.INFO: ProcessCDR(1,14850545,1,1,2) [2025-04-06 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850545', 'tblTempUsageDetail_20' ) start [2025-04-06 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850545', 'tblTempUsageDetail_20' ) end [2025-04-06 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:22:24] Production.INFO: ==8981== Releasing lock... [2025-04-06 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:22:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-06 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:23:06 [end_date_ymd] => 2025-04-06 22:23:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:23:06' and `end` < '2025-04-06 22: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-04-06 22:23:19] Production.INFO: count ==1298 [2025-04-06 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:23:06 - End Time 2025-04-06 22:23:06 [2025-04-06 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850550', 'tblTempUsageDetail_20' ) start [2025-04-06 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850550', 'tblTempUsageDetail_20' ) end [2025-04-06 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850550', 'tblTempVendorCDR_20' ) start [2025-04-06 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850550', 'tblTempVendorCDR_20' ) end [2025-04-06 22:23:19] Production.INFO: ProcessCDR(1,14850550,1,1,2) [2025-04-06 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850550', 'tblTempUsageDetail_20' ) start [2025-04-06 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850550', 'tblTempUsageDetail_20' ) end [2025-04-06 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:23:23] Production.INFO: ==9067== Releasing lock... [2025-04-06 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:24:05 [end_date_ymd] => 2025-04-06 22:24:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:24:05' and `end` < '2025-04-06 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-04-06 22:24:18] Production.INFO: count ==1290 [2025-04-06 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:24:05 - End Time 2025-04-06 22:24:05 [2025-04-06 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850555', 'tblTempUsageDetail_20' ) start [2025-04-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850555', 'tblTempUsageDetail_20' ) end [2025-04-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850555', 'tblTempVendorCDR_20' ) start [2025-04-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850555', 'tblTempVendorCDR_20' ) end [2025-04-06 22:24:19] Production.INFO: ProcessCDR(1,14850555,1,1,2) [2025-04-06 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850555', 'tblTempUsageDetail_20' ) start [2025-04-06 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850555', 'tblTempUsageDetail_20' ) end [2025-04-06 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:24:22] Production.INFO: ==9150== Releasing lock... [2025-04-06 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:25:06 [end_date_ymd] => 2025-04-06 22:25:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:25:06' and `end` < '2025-04-06 22: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-04-06 22:25:19] Production.INFO: count ==1289 [2025-04-06 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:25:06 - End Time 2025-04-06 22:25:06 [2025-04-06 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850560', 'tblTempUsageDetail_20' ) start [2025-04-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850560', 'tblTempUsageDetail_20' ) end [2025-04-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850560', 'tblTempVendorCDR_20' ) start [2025-04-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850560', 'tblTempVendorCDR_20' ) end [2025-04-06 22:25:19] Production.INFO: ProcessCDR(1,14850560,1,1,2) [2025-04-06 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850560', 'tblTempUsageDetail_20' ) start [2025-04-06 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850560', 'tblTempUsageDetail_20' ) end [2025-04-06 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:25:23] Production.INFO: ==9229== Releasing lock... [2025-04-06 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:25:23] Production.INFO: 38 MB #Memory Used# [2025-04-06 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:26:05 [end_date_ymd] => 2025-04-06 22:26:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:26:05' and `end` < '2025-04-06 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-04-06 22:26:18] Production.INFO: count ==1287 [2025-04-06 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:26:05 - End Time 2025-04-06 22:26:05 [2025-04-06 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850565', 'tblTempUsageDetail_20' ) start [2025-04-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850565', 'tblTempUsageDetail_20' ) end [2025-04-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850565', 'tblTempVendorCDR_20' ) start [2025-04-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850565', 'tblTempVendorCDR_20' ) end [2025-04-06 22:26:18] Production.INFO: ProcessCDR(1,14850565,1,1,2) [2025-04-06 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850565', 'tblTempUsageDetail_20' ) start [2025-04-06 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850565', 'tblTempUsageDetail_20' ) end [2025-04-06 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:26:22] Production.INFO: ==9315== Releasing lock... [2025-04-06 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:27:06 [end_date_ymd] => 2025-04-06 22:27:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:27:06' and `end` < '2025-04-06 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-04-06 22:27:19] Production.INFO: count ==1277 [2025-04-06 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:27:06 - End Time 2025-04-06 22:27:06 [2025-04-06 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850570', 'tblTempUsageDetail_20' ) start [2025-04-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850570', 'tblTempUsageDetail_20' ) end [2025-04-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850570', 'tblTempVendorCDR_20' ) start [2025-04-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850570', 'tblTempVendorCDR_20' ) end [2025-04-06 22:27:19] Production.INFO: ProcessCDR(1,14850570,1,1,2) [2025-04-06 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850570', 'tblTempUsageDetail_20' ) start [2025-04-06 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850570', 'tblTempUsageDetail_20' ) end [2025-04-06 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:27:23] Production.INFO: ==9396== Releasing lock... [2025-04-06 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:27:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:28:05 [end_date_ymd] => 2025-04-06 22:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:28:05' and `end` < '2025-04-06 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-04-06 22:28:18] Production.INFO: count ==1275 [2025-04-06 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:28:05 - End Time 2025-04-06 22:28:05 [2025-04-06 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850575', 'tblTempUsageDetail_20' ) start [2025-04-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850575', 'tblTempUsageDetail_20' ) end [2025-04-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850575', 'tblTempVendorCDR_20' ) start [2025-04-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850575', 'tblTempVendorCDR_20' ) end [2025-04-06 22:28:18] Production.INFO: ProcessCDR(1,14850575,1,1,2) [2025-04-06 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850575', 'tblTempUsageDetail_20' ) start [2025-04-06 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850575', 'tblTempUsageDetail_20' ) end [2025-04-06 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:28:22] Production.INFO: ==9473== Releasing lock... [2025-04-06 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:29:05 [end_date_ymd] => 2025-04-06 22:29:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:29:05' and `end` < '2025-04-06 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-04-06 22:29:18] Production.INFO: count ==1269 [2025-04-06 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:29:05 - End Time 2025-04-06 22:29:05 [2025-04-06 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850580', 'tblTempUsageDetail_20' ) start [2025-04-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850580', 'tblTempUsageDetail_20' ) end [2025-04-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850580', 'tblTempVendorCDR_20' ) start [2025-04-06 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850580', 'tblTempVendorCDR_20' ) end [2025-04-06 22:29:19] Production.INFO: ProcessCDR(1,14850580,1,1,2) [2025-04-06 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850580', 'tblTempUsageDetail_20' ) start [2025-04-06 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850580', 'tblTempUsageDetail_20' ) end [2025-04-06 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:29:22] Production.INFO: ==9552== Releasing lock... [2025-04-06 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:30:05 [end_date_ymd] => 2025-04-06 22:30:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:30:05' and `end` < '2025-04-06 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-04-06 22:30:18] Production.INFO: count ==1265 [2025-04-06 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:30:05 - End Time 2025-04-06 22:30:05 [2025-04-06 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850585', 'tblTempUsageDetail_20' ) start [2025-04-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850585', 'tblTempUsageDetail_20' ) end [2025-04-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850585', 'tblTempVendorCDR_20' ) start [2025-04-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850585', 'tblTempVendorCDR_20' ) end [2025-04-06 22:30:19] Production.INFO: ProcessCDR(1,14850585,1,1,2) [2025-04-06 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850585', 'tblTempUsageDetail_20' ) start [2025-04-06 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850585', 'tblTempUsageDetail_20' ) end [2025-04-06 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:30:22] Production.INFO: ==9641== Releasing lock... [2025-04-06 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:30:22] Production.INFO: 38 MB #Memory Used# [2025-04-06 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:31:06 [end_date_ymd] => 2025-04-06 22:31:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:31:06' and `end` < '2025-04-06 22: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-04-06 22:31:19] Production.INFO: count ==1223 [2025-04-06 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:31:06 - End Time 2025-04-06 22:31:06 [2025-04-06 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850591', 'tblTempUsageDetail_20' ) start [2025-04-06 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850591', 'tblTempUsageDetail_20' ) end [2025-04-06 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850591', 'tblTempVendorCDR_20' ) start [2025-04-06 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850591', 'tblTempVendorCDR_20' ) end [2025-04-06 22:31:19] Production.INFO: ProcessCDR(1,14850591,1,1,2) [2025-04-06 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850591', 'tblTempUsageDetail_20' ) start [2025-04-06 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850591', 'tblTempUsageDetail_20' ) end [2025-04-06 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:31:22] Production.INFO: ==9718== Releasing lock... [2025-04-06 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:31:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:32:05 [end_date_ymd] => 2025-04-06 22:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:32:05' and `end` < '2025-04-06 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-04-06 22:32:18] Production.INFO: count ==1227 [2025-04-06 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:32:05 - End Time 2025-04-06 22:32:05 [2025-04-06 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850596', 'tblTempUsageDetail_20' ) start [2025-04-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850596', 'tblTempUsageDetail_20' ) end [2025-04-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850596', 'tblTempVendorCDR_20' ) start [2025-04-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850596', 'tblTempVendorCDR_20' ) end [2025-04-06 22:32:18] Production.INFO: ProcessCDR(1,14850596,1,1,2) [2025-04-06 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850596', 'tblTempUsageDetail_20' ) start [2025-04-06 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850596', 'tblTempUsageDetail_20' ) end [2025-04-06 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:32:24] Production.INFO: ==9798== Releasing lock... [2025-04-06 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:32:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:33:05 [end_date_ymd] => 2025-04-06 22:33:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:33:05' and `end` < '2025-04-06 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-04-06 22:33:18] Production.INFO: count ==1233 [2025-04-06 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:33:05 - End Time 2025-04-06 22:33:05 [2025-04-06 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850601', 'tblTempUsageDetail_20' ) start [2025-04-06 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850601', 'tblTempUsageDetail_20' ) end [2025-04-06 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850601', 'tblTempVendorCDR_20' ) start [2025-04-06 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850601', 'tblTempVendorCDR_20' ) end [2025-04-06 22:33:19] Production.INFO: ProcessCDR(1,14850601,1,1,2) [2025-04-06 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850601', 'tblTempUsageDetail_20' ) start [2025-04-06 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850601', 'tblTempUsageDetail_20' ) end [2025-04-06 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:33:22] Production.INFO: ==9881== Releasing lock... [2025-04-06 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:33:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:34:05 [end_date_ymd] => 2025-04-06 22:34:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:34:05' and `end` < '2025-04-06 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-04-06 22:34:18] Production.INFO: count ==1231 [2025-04-06 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:34:05 - End Time 2025-04-06 22:34:05 [2025-04-06 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850606', 'tblTempUsageDetail_20' ) start [2025-04-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850606', 'tblTempUsageDetail_20' ) end [2025-04-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850606', 'tblTempVendorCDR_20' ) start [2025-04-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850606', 'tblTempVendorCDR_20' ) end [2025-04-06 22:34:19] Production.INFO: ProcessCDR(1,14850606,1,1,2) [2025-04-06 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850606', 'tblTempUsageDetail_20' ) start [2025-04-06 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850606', 'tblTempUsageDetail_20' ) end [2025-04-06 22:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:34:24] Production.INFO: ==9962== Releasing lock... [2025-04-06 22:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:34:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:35:05 [end_date_ymd] => 2025-04-06 22:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:35:05' and `end` < '2025-04-06 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-04-06 22:35:18] Production.INFO: count ==1234 [2025-04-06 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:35:05 - End Time 2025-04-06 22:35:05 [2025-04-06 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850611', 'tblTempUsageDetail_20' ) start [2025-04-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850611', 'tblTempUsageDetail_20' ) end [2025-04-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850611', 'tblTempVendorCDR_20' ) start [2025-04-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850611', 'tblTempVendorCDR_20' ) end [2025-04-06 22:35:18] Production.INFO: ProcessCDR(1,14850611,1,1,2) [2025-04-06 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850611', 'tblTempUsageDetail_20' ) start [2025-04-06 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850611', 'tblTempUsageDetail_20' ) end [2025-04-06 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:35:22] Production.INFO: ==10076== Releasing lock... [2025-04-06 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:36:04 [end_date_ymd] => 2025-04-06 22:36:04 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:36:04' and `end` < '2025-04-06 22: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-04-06 22:36:17] Production.INFO: count ==1245 [2025-04-06 22:36:17] Production.ERROR: pbx CDR StartTime 2025-04-06 19:36:04 - End Time 2025-04-06 22:36:04 [2025-04-06 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850616', 'tblTempUsageDetail_20' ) start [2025-04-06 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850616', 'tblTempUsageDetail_20' ) end [2025-04-06 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850616', 'tblTempVendorCDR_20' ) start [2025-04-06 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850616', 'tblTempVendorCDR_20' ) end [2025-04-06 22:36:17] Production.INFO: ProcessCDR(1,14850616,1,1,2) [2025-04-06 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850616', 'tblTempUsageDetail_20' ) start [2025-04-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850616', 'tblTempUsageDetail_20' ) end [2025-04-06 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:36:22] Production.INFO: ==10150== Releasing lock... [2025-04-06 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:36:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:37:05 [end_date_ymd] => 2025-04-06 22:37:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:37:05' and `end` < '2025-04-06 22: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-04-06 22:37:18] Production.INFO: count ==1245 [2025-04-06 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:37:05 - End Time 2025-04-06 22:37:05 [2025-04-06 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850621', 'tblTempUsageDetail_20' ) start [2025-04-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850621', 'tblTempUsageDetail_20' ) end [2025-04-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850621', 'tblTempVendorCDR_20' ) start [2025-04-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850621', 'tblTempVendorCDR_20' ) end [2025-04-06 22:37:18] Production.INFO: ProcessCDR(1,14850621,1,1,2) [2025-04-06 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850621', 'tblTempUsageDetail_20' ) start [2025-04-06 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850621', 'tblTempUsageDetail_20' ) end [2025-04-06 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:37:23] Production.INFO: ==10232== Releasing lock... [2025-04-06 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:37:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:38:05 [end_date_ymd] => 2025-04-06 22:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:38:05' and `end` < '2025-04-06 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-04-06 22:38:18] Production.INFO: count ==1246 [2025-04-06 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:38:05 - End Time 2025-04-06 22:38:05 [2025-04-06 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850626', 'tblTempUsageDetail_20' ) start [2025-04-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850626', 'tblTempUsageDetail_20' ) end [2025-04-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850626', 'tblTempVendorCDR_20' ) start [2025-04-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850626', 'tblTempVendorCDR_20' ) end [2025-04-06 22:38:18] Production.INFO: ProcessCDR(1,14850626,1,1,2) [2025-04-06 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850626', 'tblTempUsageDetail_20' ) start [2025-04-06 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850626', 'tblTempUsageDetail_20' ) end [2025-04-06 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:38:24] Production.INFO: ==10308== Releasing lock... [2025-04-06 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:38:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:39:06 [end_date_ymd] => 2025-04-06 22:39:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:39:06' and `end` < '2025-04-06 22: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-04-06 22:39:19] Production.INFO: count ==1245 [2025-04-06 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:39:06 - End Time 2025-04-06 22:39:06 [2025-04-06 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850631', 'tblTempUsageDetail_20' ) start [2025-04-06 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850631', 'tblTempUsageDetail_20' ) end [2025-04-06 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850631', 'tblTempVendorCDR_20' ) start [2025-04-06 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850631', 'tblTempVendorCDR_20' ) end [2025-04-06 22:39:19] Production.INFO: ProcessCDR(1,14850631,1,1,2) [2025-04-06 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850631', 'tblTempUsageDetail_20' ) start [2025-04-06 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850631', 'tblTempUsageDetail_20' ) end [2025-04-06 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:39:22] Production.INFO: ==10390== Releasing lock... [2025-04-06 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:39:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-06 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:40:06 [end_date_ymd] => 2025-04-06 22:40:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:40:06' and `end` < '2025-04-06 22: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-04-06 22:40:19] Production.INFO: count ==1237 [2025-04-06 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:40:06 - End Time 2025-04-06 22:40:06 [2025-04-06 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850637', 'tblTempUsageDetail_20' ) start [2025-04-06 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850637', 'tblTempUsageDetail_20' ) end [2025-04-06 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850637', 'tblTempVendorCDR_20' ) start [2025-04-06 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850637', 'tblTempVendorCDR_20' ) end [2025-04-06 22:40:20] Production.INFO: ProcessCDR(1,14850637,1,1,2) [2025-04-06 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850637', 'tblTempUsageDetail_20' ) start [2025-04-06 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850637', 'tblTempUsageDetail_20' ) end [2025-04-06 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:40:23] Production.INFO: ==10471== Releasing lock... [2025-04-06 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:41:05 [end_date_ymd] => 2025-04-06 22:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:41:05' and `end` < '2025-04-06 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-04-06 22:41:18] Production.INFO: count ==1214 [2025-04-06 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:41:05 - End Time 2025-04-06 22:41:05 [2025-04-06 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850642', 'tblTempUsageDetail_20' ) start [2025-04-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850642', 'tblTempUsageDetail_20' ) end [2025-04-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850642', 'tblTempVendorCDR_20' ) start [2025-04-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850642', 'tblTempVendorCDR_20' ) end [2025-04-06 22:41:18] Production.INFO: ProcessCDR(1,14850642,1,1,2) [2025-04-06 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850642', 'tblTempUsageDetail_20' ) start [2025-04-06 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850642', 'tblTempUsageDetail_20' ) end [2025-04-06 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:41:22] Production.INFO: ==10549== Releasing lock... [2025-04-06 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:42:05 [end_date_ymd] => 2025-04-06 22:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:42:05' and `end` < '2025-04-06 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-04-06 22:42:18] Production.INFO: count ==1199 [2025-04-06 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:42:05 - End Time 2025-04-06 22:42:05 [2025-04-06 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850647', 'tblTempUsageDetail_20' ) start [2025-04-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850647', 'tblTempUsageDetail_20' ) end [2025-04-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850647', 'tblTempVendorCDR_20' ) start [2025-04-06 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850647', 'tblTempVendorCDR_20' ) end [2025-04-06 22:42:19] Production.INFO: ProcessCDR(1,14850647,1,1,2) [2025-04-06 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850647', 'tblTempUsageDetail_20' ) start [2025-04-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850647', 'tblTempUsageDetail_20' ) end [2025-04-06 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:42:22] Production.INFO: ==10633== Releasing lock... [2025-04-06 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:43:05 [end_date_ymd] => 2025-04-06 22:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:43:05' and `end` < '2025-04-06 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-04-06 22:43:17] Production.INFO: count ==1187 [2025-04-06 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:43:05 - End Time 2025-04-06 22:43:05 [2025-04-06 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850652', 'tblTempUsageDetail_20' ) start [2025-04-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850652', 'tblTempUsageDetail_20' ) end [2025-04-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850652', 'tblTempVendorCDR_20' ) start [2025-04-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850652', 'tblTempVendorCDR_20' ) end [2025-04-06 22:43:18] Production.INFO: ProcessCDR(1,14850652,1,1,2) [2025-04-06 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850652', 'tblTempUsageDetail_20' ) start [2025-04-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850652', 'tblTempUsageDetail_20' ) end [2025-04-06 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:43:21] Production.INFO: ==10708== Releasing lock... [2025-04-06 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:43:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:44:06 [end_date_ymd] => 2025-04-06 22:44:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:44:06' and `end` < '2025-04-06 22: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-04-06 22:44:18] Production.INFO: count ==1181 [2025-04-06 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:44:06 - End Time 2025-04-06 22:44:06 [2025-04-06 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850657', 'tblTempUsageDetail_20' ) start [2025-04-06 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850657', 'tblTempUsageDetail_20' ) end [2025-04-06 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850657', 'tblTempVendorCDR_20' ) start [2025-04-06 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850657', 'tblTempVendorCDR_20' ) end [2025-04-06 22:44:19] Production.INFO: ProcessCDR(1,14850657,1,1,2) [2025-04-06 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850657', 'tblTempUsageDetail_20' ) start [2025-04-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850657', 'tblTempUsageDetail_20' ) end [2025-04-06 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:44:22] Production.INFO: ==10786== Releasing lock... [2025-04-06 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:45:05 [end_date_ymd] => 2025-04-06 22:45:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:45:05' and `end` < '2025-04-06 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-04-06 22:45:17] Production.INFO: count ==1174 [2025-04-06 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:45:05 - End Time 2025-04-06 22:45:05 [2025-04-06 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850662', 'tblTempUsageDetail_20' ) start [2025-04-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850662', 'tblTempUsageDetail_20' ) end [2025-04-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850662', 'tblTempVendorCDR_20' ) start [2025-04-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850662', 'tblTempVendorCDR_20' ) end [2025-04-06 22:45:18] Production.INFO: ProcessCDR(1,14850662,1,1,2) [2025-04-06 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850662', 'tblTempUsageDetail_20' ) start [2025-04-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850662', 'tblTempUsageDetail_20' ) end [2025-04-06 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:45:21] Production.INFO: ==10862== Releasing lock... [2025-04-06 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:46:05 [end_date_ymd] => 2025-04-06 22:46:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:46:05' and `end` < '2025-04-06 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-04-06 22:46:18] Production.INFO: count ==1166 [2025-04-06 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:46:05 - End Time 2025-04-06 22:46:05 [2025-04-06 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850667', 'tblTempUsageDetail_20' ) start [2025-04-06 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850667', 'tblTempUsageDetail_20' ) end [2025-04-06 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850667', 'tblTempVendorCDR_20' ) start [2025-04-06 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850667', 'tblTempVendorCDR_20' ) end [2025-04-06 22:46:19] Production.INFO: ProcessCDR(1,14850667,1,1,2) [2025-04-06 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850667', 'tblTempUsageDetail_20' ) start [2025-04-06 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850667', 'tblTempUsageDetail_20' ) end [2025-04-06 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:46:22] Production.INFO: ==10936== Releasing lock... [2025-04-06 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:47:05 [end_date_ymd] => 2025-04-06 22:47:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:47:05' and `end` < '2025-04-06 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-04-06 22:47:18] Production.INFO: count ==1167 [2025-04-06 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:47:05 - End Time 2025-04-06 22:47:05 [2025-04-06 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850672', 'tblTempUsageDetail_20' ) start [2025-04-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850672', 'tblTempUsageDetail_20' ) end [2025-04-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850672', 'tblTempVendorCDR_20' ) start [2025-04-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850672', 'tblTempVendorCDR_20' ) end [2025-04-06 22:47:19] Production.INFO: ProcessCDR(1,14850672,1,1,2) [2025-04-06 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850672', 'tblTempUsageDetail_20' ) start [2025-04-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850672', 'tblTempUsageDetail_20' ) end [2025-04-06 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:47:22] Production.INFO: ==11006== Releasing lock... [2025-04-06 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:47:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:48:06 [end_date_ymd] => 2025-04-06 22:48:06 [RateCDR] => 1 ) [2025-04-06 22:48: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-04-06 19:48:06' and `end` < '2025-04-06 22:48: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-04-06 22:48:18] Production.INFO: count ==1161 [2025-04-06 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:48:06 - End Time 2025-04-06 22:48:06 [2025-04-06 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850677', 'tblTempUsageDetail_20' ) start [2025-04-06 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850677', 'tblTempUsageDetail_20' ) end [2025-04-06 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850677', 'tblTempVendorCDR_20' ) start [2025-04-06 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850677', 'tblTempVendorCDR_20' ) end [2025-04-06 22:48:19] Production.INFO: ProcessCDR(1,14850677,1,1,2) [2025-04-06 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850677', 'tblTempUsageDetail_20' ) start [2025-04-06 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850677', 'tblTempUsageDetail_20' ) end [2025-04-06 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:48:22] Production.INFO: ==11078== Releasing lock... [2025-04-06 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:48:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:49:05 [end_date_ymd] => 2025-04-06 22:49:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:49:05' and `end` < '2025-04-06 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-04-06 22:49:19] Production.INFO: count ==1164 [2025-04-06 22:49:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:49:05 - End Time 2025-04-06 22:49:05 [2025-04-06 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850682', 'tblTempUsageDetail_20' ) start [2025-04-06 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850682', 'tblTempUsageDetail_20' ) end [2025-04-06 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850682', 'tblTempVendorCDR_20' ) start [2025-04-06 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850682', 'tblTempVendorCDR_20' ) end [2025-04-06 22:49:19] Production.INFO: ProcessCDR(1,14850682,1,1,2) [2025-04-06 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850682', 'tblTempUsageDetail_20' ) start [2025-04-06 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850682', 'tblTempUsageDetail_20' ) end [2025-04-06 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:49:23] Production.INFO: ==11150== Releasing lock... [2025-04-06 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:49:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:50:06 [end_date_ymd] => 2025-04-06 22:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:50:06' and `end` < '2025-04-06 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-04-06 22:50:19] Production.INFO: count ==1161 [2025-04-06 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-06 19:50:06 - End Time 2025-04-06 22:50:06 [2025-04-06 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850688', 'tblTempUsageDetail_20' ) start [2025-04-06 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850688', 'tblTempUsageDetail_20' ) end [2025-04-06 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850688', 'tblTempVendorCDR_20' ) start [2025-04-06 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850688', 'tblTempVendorCDR_20' ) end [2025-04-06 22:50:20] Production.INFO: ProcessCDR(1,14850688,1,1,2) [2025-04-06 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850688', 'tblTempUsageDetail_20' ) start [2025-04-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850688', 'tblTempUsageDetail_20' ) end [2025-04-06 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:50:23] Production.INFO: ==11224== Releasing lock... [2025-04-06 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:51:05 [end_date_ymd] => 2025-04-06 22:51:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:51:05' and `end` < '2025-04-06 22: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-04-06 22:51:17] Production.INFO: count ==1158 [2025-04-06 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:51:05 - End Time 2025-04-06 22:51:05 [2025-04-06 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850693', 'tblTempUsageDetail_20' ) start [2025-04-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850693', 'tblTempUsageDetail_20' ) end [2025-04-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850693', 'tblTempVendorCDR_20' ) start [2025-04-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850693', 'tblTempVendorCDR_20' ) end [2025-04-06 22:51:18] Production.INFO: ProcessCDR(1,14850693,1,1,2) [2025-04-06 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850693', 'tblTempUsageDetail_20' ) start [2025-04-06 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850693', 'tblTempUsageDetail_20' ) end [2025-04-06 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:51:21] Production.INFO: ==11335== Releasing lock... [2025-04-06 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:51:21] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:52:05 [end_date_ymd] => 2025-04-06 22:52:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:52:05' and `end` < '2025-04-06 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-04-06 22:52:18] Production.INFO: count ==1151 [2025-04-06 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:52:05 - End Time 2025-04-06 22:52:05 [2025-04-06 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850698', 'tblTempUsageDetail_20' ) start [2025-04-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850698', 'tblTempUsageDetail_20' ) end [2025-04-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850698', 'tblTempVendorCDR_20' ) start [2025-04-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850698', 'tblTempVendorCDR_20' ) end [2025-04-06 22:52:18] Production.INFO: ProcessCDR(1,14850698,1,1,2) [2025-04-06 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850698', 'tblTempUsageDetail_20' ) start [2025-04-06 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850698', 'tblTempUsageDetail_20' ) end [2025-04-06 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:52:22] Production.INFO: ==11409== Releasing lock... [2025-04-06 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-06 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:53:05 [end_date_ymd] => 2025-04-06 22:53:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:53:05' and `end` < '2025-04-06 22: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-04-06 22:53:18] Production.INFO: count ==1146 [2025-04-06 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:53:05 - End Time 2025-04-06 22:53:05 [2025-04-06 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850703', 'tblTempUsageDetail_20' ) start [2025-04-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850703', 'tblTempUsageDetail_20' ) end [2025-04-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850703', 'tblTempVendorCDR_20' ) start [2025-04-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850703', 'tblTempVendorCDR_20' ) end [2025-04-06 22:53:18] Production.INFO: ProcessCDR(1,14850703,1,1,2) [2025-04-06 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850703', 'tblTempUsageDetail_20' ) start [2025-04-06 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850703', 'tblTempUsageDetail_20' ) end [2025-04-06 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:53:21] Production.INFO: ==11481== Releasing lock... [2025-04-06 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:54:05 [end_date_ymd] => 2025-04-06 22:54:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:54:05' and `end` < '2025-04-06 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-04-06 22:54:18] Production.INFO: count ==1143 [2025-04-06 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:54:05 - End Time 2025-04-06 22:54:05 [2025-04-06 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850708', 'tblTempUsageDetail_20' ) start [2025-04-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850708', 'tblTempUsageDetail_20' ) end [2025-04-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850708', 'tblTempVendorCDR_20' ) start [2025-04-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850708', 'tblTempVendorCDR_20' ) end [2025-04-06 22:54:18] Production.INFO: ProcessCDR(1,14850708,1,1,2) [2025-04-06 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850708', 'tblTempUsageDetail_20' ) start [2025-04-06 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850708', 'tblTempUsageDetail_20' ) end [2025-04-06 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:54:22] Production.INFO: ==11552== Releasing lock... [2025-04-06 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:54:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:55:06 [end_date_ymd] => 2025-04-06 22:55:06 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:55:06' and `end` < '2025-04-06 22: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-04-06 22:55:19] Production.INFO: count ==1148 [2025-04-06 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:55:06 - End Time 2025-04-06 22:55:06 [2025-04-06 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850713', 'tblTempUsageDetail_20' ) start [2025-04-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850713', 'tblTempUsageDetail_20' ) end [2025-04-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850713', 'tblTempVendorCDR_20' ) start [2025-04-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850713', 'tblTempVendorCDR_20' ) end [2025-04-06 22:55:19] Production.INFO: ProcessCDR(1,14850713,1,1,2) [2025-04-06 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850713', 'tblTempUsageDetail_20' ) start [2025-04-06 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850713', 'tblTempUsageDetail_20' ) end [2025-04-06 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:55:23] Production.INFO: ==11624== Releasing lock... [2025-04-06 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:55:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-06 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:56:05 [end_date_ymd] => 2025-04-06 22:56:05 [RateCDR] => 1 ) [2025-04-06 22: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-04-06 19:56:05' and `end` < '2025-04-06 22: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-04-06 22:56:18] Production.INFO: count ==1129 [2025-04-06 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:56:05 - End Time 2025-04-06 22:56:05 [2025-04-06 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850718', 'tblTempUsageDetail_20' ) start [2025-04-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850718', 'tblTempUsageDetail_20' ) end [2025-04-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850718', 'tblTempVendorCDR_20' ) start [2025-04-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850718', 'tblTempVendorCDR_20' ) end [2025-04-06 22:56:18] Production.INFO: ProcessCDR(1,14850718,1,1,2) [2025-04-06 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850718', 'tblTempUsageDetail_20' ) start [2025-04-06 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850718', 'tblTempUsageDetail_20' ) end [2025-04-06 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:56:23] Production.INFO: ==11698== Releasing lock... [2025-04-06 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:56:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:57:05 [end_date_ymd] => 2025-04-06 22:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:57:05' and `end` < '2025-04-06 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-04-06 22:57:18] Production.INFO: count ==1113 [2025-04-06 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:57:05 - End Time 2025-04-06 22:57:05 [2025-04-06 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850723', 'tblTempUsageDetail_20' ) start [2025-04-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850723', 'tblTempUsageDetail_20' ) end [2025-04-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850723', 'tblTempVendorCDR_20' ) start [2025-04-06 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850723', 'tblTempVendorCDR_20' ) end [2025-04-06 22:57:19] Production.INFO: ProcessCDR(1,14850723,1,1,2) [2025-04-06 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850723', 'tblTempUsageDetail_20' ) start [2025-04-06 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850723', 'tblTempUsageDetail_20' ) end [2025-04-06 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:57:22] Production.INFO: ==11769== Releasing lock... [2025-04-06 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:57:22] Production.INFO: 37 MB #Memory Used# [2025-04-06 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:58:05 [end_date_ymd] => 2025-04-06 22:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:58:05' and `end` < '2025-04-06 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-04-06 22:58:18] Production.INFO: count ==1110 [2025-04-06 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 19:58:05 - End Time 2025-04-06 22:58:05 [2025-04-06 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850728', 'tblTempUsageDetail_20' ) start [2025-04-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850728', 'tblTempUsageDetail_20' ) end [2025-04-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850728', 'tblTempVendorCDR_20' ) start [2025-04-06 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850728', 'tblTempVendorCDR_20' ) end [2025-04-06 22:58:18] Production.INFO: ProcessCDR(1,14850728,1,1,2) [2025-04-06 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850728', 'tblTempUsageDetail_20' ) start [2025-04-06 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850728', 'tblTempUsageDetail_20' ) end [2025-04-06 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:58:22] Production.INFO: ==11845== Releasing lock... [2025-04-06 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:58:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 19:59:05 [end_date_ymd] => 2025-04-06 22:59:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 19:59:05' and `end` < '2025-04-06 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-04-06 22:59:18] Production.INFO: count ==1115 [2025-04-06 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-06 19:59:05 - End Time 2025-04-06 22:59:05 [2025-04-06 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850733', 'tblTempUsageDetail_20' ) start [2025-04-06 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850733', 'tblTempUsageDetail_20' ) end [2025-04-06 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850733', 'tblTempVendorCDR_20' ) start [2025-04-06 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850733', 'tblTempVendorCDR_20' ) end [2025-04-06 22:59:19] Production.INFO: ProcessCDR(1,14850733,1,1,2) [2025-04-06 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850733', 'tblTempUsageDetail_20' ) start [2025-04-06 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850733', 'tblTempUsageDetail_20' ) end [2025-04-06 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 22:59:22] Production.INFO: ==11915== Releasing lock... [2025-04-06 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 22:59:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:00:06 [end_date_ymd] => 2025-04-06 23:00:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:00:06' and `end` < '2025-04-06 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-04-06 23:00:19] Production.INFO: count ==1124 [2025-04-06 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:00:06 - End Time 2025-04-06 23:00:06 [2025-04-06 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850739', 'tblTempUsageDetail_20' ) start [2025-04-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850739', 'tblTempUsageDetail_20' ) end [2025-04-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850739', 'tblTempVendorCDR_20' ) start [2025-04-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850739', 'tblTempVendorCDR_20' ) end [2025-04-06 23:00:19] Production.INFO: ProcessCDR(1,14850739,1,1,2) [2025-04-06 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850739', 'tblTempUsageDetail_20' ) start [2025-04-06 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850739', 'tblTempUsageDetail_20' ) end [2025-04-06 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:00:23] Production.INFO: ==11995== Releasing lock... [2025-04-06 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:00:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:01:05 [end_date_ymd] => 2025-04-06 23:01:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:01:05' and `end` < '2025-04-06 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-04-06 23:01:18] Production.INFO: count ==1081 [2025-04-06 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:01:05 - End Time 2025-04-06 23:01:05 [2025-04-06 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850744', 'tblTempUsageDetail_20' ) start [2025-04-06 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850744', 'tblTempUsageDetail_20' ) end [2025-04-06 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850744', 'tblTempVendorCDR_20' ) start [2025-04-06 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850744', 'tblTempVendorCDR_20' ) end [2025-04-06 23:01:18] Production.INFO: ProcessCDR(1,14850744,1,1,2) [2025-04-06 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850744', 'tblTempUsageDetail_20' ) start [2025-04-06 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850744', 'tblTempUsageDetail_20' ) end [2025-04-06 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:01:23] Production.INFO: ==12160== Releasing lock... [2025-04-06 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:01:23] Production.INFO: 37 MB #Memory Used# [2025-04-06 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:02:06 [end_date_ymd] => 2025-04-06 23:02:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:02:06' and `end` < '2025-04-06 23: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-04-06 23:02:18] Production.INFO: count ==1073 [2025-04-06 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:02:06 - End Time 2025-04-06 23:02:06 [2025-04-06 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850749', 'tblTempUsageDetail_20' ) start [2025-04-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850749', 'tblTempUsageDetail_20' ) end [2025-04-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850749', 'tblTempVendorCDR_20' ) start [2025-04-06 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850749', 'tblTempVendorCDR_20' ) end [2025-04-06 23:02:19] Production.INFO: ProcessCDR(1,14850749,1,1,2) [2025-04-06 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850749', 'tblTempUsageDetail_20' ) start [2025-04-06 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850749', 'tblTempUsageDetail_20' ) end [2025-04-06 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:02:22] Production.INFO: ==12230== Releasing lock... [2025-04-06 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:02:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:03:06 [end_date_ymd] => 2025-04-06 23:03:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:03:06' and `end` < '2025-04-06 23: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-04-06 23:03:19] Production.INFO: count ==1078 [2025-04-06 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:03:06 - End Time 2025-04-06 23:03:06 [2025-04-06 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850754', 'tblTempUsageDetail_20' ) start [2025-04-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850754', 'tblTempUsageDetail_20' ) end [2025-04-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850754', 'tblTempVendorCDR_20' ) start [2025-04-06 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850754', 'tblTempVendorCDR_20' ) end [2025-04-06 23:03:19] Production.INFO: ProcessCDR(1,14850754,1,1,2) [2025-04-06 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850754', 'tblTempUsageDetail_20' ) start [2025-04-06 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850754', 'tblTempUsageDetail_20' ) end [2025-04-06 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:03:24] Production.INFO: ==12302== Releasing lock... [2025-04-06 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:03:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:04:05 [end_date_ymd] => 2025-04-06 23:04:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:04:05' and `end` < '2025-04-06 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-04-06 23:04:18] Production.INFO: count ==1077 [2025-04-06 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:04:05 - End Time 2025-04-06 23:04:05 [2025-04-06 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850759', 'tblTempUsageDetail_20' ) start [2025-04-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850759', 'tblTempUsageDetail_20' ) end [2025-04-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850759', 'tblTempVendorCDR_20' ) start [2025-04-06 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850759', 'tblTempVendorCDR_20' ) end [2025-04-06 23:04:18] Production.INFO: ProcessCDR(1,14850759,1,1,2) [2025-04-06 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850759', 'tblTempUsageDetail_20' ) start [2025-04-06 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850759', 'tblTempUsageDetail_20' ) end [2025-04-06 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:04:23] Production.INFO: ==12376== Releasing lock... [2025-04-06 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:04:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:05:05 [end_date_ymd] => 2025-04-06 23:05:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:05:05' and `end` < '2025-04-06 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-04-06 23:05:18] Production.INFO: count ==1071 [2025-04-06 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:05:05 - End Time 2025-04-06 23:05:05 [2025-04-06 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850764', 'tblTempUsageDetail_20' ) start [2025-04-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850764', 'tblTempUsageDetail_20' ) end [2025-04-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850764', 'tblTempVendorCDR_20' ) start [2025-04-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850764', 'tblTempVendorCDR_20' ) end [2025-04-06 23:05:18] Production.INFO: ProcessCDR(1,14850764,1,1,2) [2025-04-06 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850764', 'tblTempUsageDetail_20' ) start [2025-04-06 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850764', 'tblTempUsageDetail_20' ) end [2025-04-06 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:05:23] Production.INFO: ==12526== Releasing lock... [2025-04-06 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:05:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:06:05 [end_date_ymd] => 2025-04-06 23:06:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:06:05' and `end` < '2025-04-06 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-04-06 23:06:18] Production.INFO: count ==1077 [2025-04-06 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:06:05 - End Time 2025-04-06 23:06:05 [2025-04-06 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850769', 'tblTempUsageDetail_20' ) start [2025-04-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850769', 'tblTempUsageDetail_20' ) end [2025-04-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850769', 'tblTempVendorCDR_20' ) start [2025-04-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850769', 'tblTempVendorCDR_20' ) end [2025-04-06 23:06:18] Production.INFO: ProcessCDR(1,14850769,1,1,2) [2025-04-06 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850769', 'tblTempUsageDetail_20' ) start [2025-04-06 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850769', 'tblTempUsageDetail_20' ) end [2025-04-06 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:06:22] Production.INFO: ==12635== Releasing lock... [2025-04-06 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:06:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:07:05 [end_date_ymd] => 2025-04-06 23:07:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:07:05' and `end` < '2025-04-06 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-04-06 23:07:18] Production.INFO: count ==1076 [2025-04-06 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:07:05 - End Time 2025-04-06 23:07:05 [2025-04-06 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850774', 'tblTempUsageDetail_20' ) start [2025-04-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850774', 'tblTempUsageDetail_20' ) end [2025-04-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850774', 'tblTempVendorCDR_20' ) start [2025-04-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850774', 'tblTempVendorCDR_20' ) end [2025-04-06 23:07:18] Production.INFO: ProcessCDR(1,14850774,1,1,2) [2025-04-06 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850774', 'tblTempUsageDetail_20' ) start [2025-04-06 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850774', 'tblTempUsageDetail_20' ) end [2025-04-06 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:07:22] Production.INFO: ==12731== Releasing lock... [2025-04-06 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:07:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:08:05 [end_date_ymd] => 2025-04-06 23:08:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:08:05' and `end` < '2025-04-06 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-04-06 23:08:18] Production.INFO: count ==1071 [2025-04-06 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:08:05 - End Time 2025-04-06 23:08:05 [2025-04-06 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850779', 'tblTempUsageDetail_20' ) start [2025-04-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850779', 'tblTempUsageDetail_20' ) end [2025-04-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850779', 'tblTempVendorCDR_20' ) start [2025-04-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850779', 'tblTempVendorCDR_20' ) end [2025-04-06 23:08:18] Production.INFO: ProcessCDR(1,14850779,1,1,2) [2025-04-06 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850779', 'tblTempUsageDetail_20' ) start [2025-04-06 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850779', 'tblTempUsageDetail_20' ) end [2025-04-06 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:08:21] Production.INFO: ==12914== Releasing lock... [2025-04-06 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:09:05 [end_date_ymd] => 2025-04-06 23:09:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:09:05' and `end` < '2025-04-06 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-04-06 23:09:18] Production.INFO: count ==1065 [2025-04-06 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:09:05 - End Time 2025-04-06 23:09:05 [2025-04-06 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850784', 'tblTempUsageDetail_20' ) start [2025-04-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850784', 'tblTempUsageDetail_20' ) end [2025-04-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850784', 'tblTempVendorCDR_20' ) start [2025-04-06 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850784', 'tblTempVendorCDR_20' ) end [2025-04-06 23:09:19] Production.INFO: ProcessCDR(1,14850784,1,1,2) [2025-04-06 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850784', 'tblTempUsageDetail_20' ) start [2025-04-06 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850784', 'tblTempUsageDetail_20' ) end [2025-04-06 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:09:22] Production.INFO: ==13020== Releasing lock... [2025-04-06 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:10:05 [end_date_ymd] => 2025-04-06 23:10:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:10:05' and `end` < '2025-04-06 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-04-06 23:10:18] Production.INFO: count ==1065 [2025-04-06 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:10:05 - End Time 2025-04-06 23:10:05 [2025-04-06 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850789', 'tblTempUsageDetail_20' ) start [2025-04-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850789', 'tblTempUsageDetail_20' ) end [2025-04-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850789', 'tblTempVendorCDR_20' ) start [2025-04-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850789', 'tblTempVendorCDR_20' ) end [2025-04-06 23:10:19] Production.INFO: ProcessCDR(1,14850789,1,1,2) [2025-04-06 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850789', 'tblTempUsageDetail_20' ) start [2025-04-06 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850789', 'tblTempUsageDetail_20' ) end [2025-04-06 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:10:24] Production.INFO: ==13140== Releasing lock... [2025-04-06 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:10:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:11:06 [end_date_ymd] => 2025-04-06 23:11:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:11:06' and `end` < '2025-04-06 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-04-06 23:11:19] Production.INFO: count ==1057 [2025-04-06 23:11:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:11:06 - End Time 2025-04-06 23:11:06 [2025-04-06 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850795', 'tblTempUsageDetail_20' ) start [2025-04-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850795', 'tblTempUsageDetail_20' ) end [2025-04-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850795', 'tblTempVendorCDR_20' ) start [2025-04-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850795', 'tblTempVendorCDR_20' ) end [2025-04-06 23:11:19] Production.INFO: ProcessCDR(1,14850795,1,1,2) [2025-04-06 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850795', 'tblTempUsageDetail_20' ) start [2025-04-06 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850795', 'tblTempUsageDetail_20' ) end [2025-04-06 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:11:24] Production.INFO: ==13262== Releasing lock... [2025-04-06 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:11:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-06 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:12:05 [end_date_ymd] => 2025-04-06 23:12:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:12:05' and `end` < '2025-04-06 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-04-06 23:12:18] Production.INFO: count ==1056 [2025-04-06 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:12:05 - End Time 2025-04-06 23:12:05 [2025-04-06 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850800', 'tblTempUsageDetail_20' ) start [2025-04-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850800', 'tblTempUsageDetail_20' ) end [2025-04-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850800', 'tblTempVendorCDR_20' ) start [2025-04-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850800', 'tblTempVendorCDR_20' ) end [2025-04-06 23:12:18] Production.INFO: ProcessCDR(1,14850800,1,1,2) [2025-04-06 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850800', 'tblTempUsageDetail_20' ) start [2025-04-06 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850800', 'tblTempUsageDetail_20' ) end [2025-04-06 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:12:22] Production.INFO: ==13461== Releasing lock... [2025-04-06 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:12:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:13:05 [end_date_ymd] => 2025-04-06 23:13:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:13:05' and `end` < '2025-04-06 23: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-04-06 23:13:18] Production.INFO: count ==1037 [2025-04-06 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:13:05 - End Time 2025-04-06 23:13:05 [2025-04-06 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850805', 'tblTempUsageDetail_20' ) start [2025-04-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850805', 'tblTempUsageDetail_20' ) end [2025-04-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850805', 'tblTempVendorCDR_20' ) start [2025-04-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850805', 'tblTempVendorCDR_20' ) end [2025-04-06 23:13:18] Production.INFO: ProcessCDR(1,14850805,1,1,2) [2025-04-06 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850805', 'tblTempUsageDetail_20' ) start [2025-04-06 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850805', 'tblTempUsageDetail_20' ) end [2025-04-06 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:13:22] Production.INFO: ==13582== Releasing lock... [2025-04-06 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:14:06 [end_date_ymd] => 2025-04-06 23:14:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:14:06' and `end` < '2025-04-06 23: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-04-06 23:14:18] Production.INFO: count ==1024 [2025-04-06 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:14:06 - End Time 2025-04-06 23:14:06 [2025-04-06 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850810', 'tblTempUsageDetail_20' ) start [2025-04-06 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850810', 'tblTempUsageDetail_20' ) end [2025-04-06 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850810', 'tblTempVendorCDR_20' ) start [2025-04-06 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850810', 'tblTempVendorCDR_20' ) end [2025-04-06 23:14:19] Production.INFO: ProcessCDR(1,14850810,1,1,2) [2025-04-06 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850810', 'tblTempUsageDetail_20' ) start [2025-04-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850810', 'tblTempUsageDetail_20' ) end [2025-04-06 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:14:23] Production.INFO: ==13702== Releasing lock... [2025-04-06 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:15:05 [end_date_ymd] => 2025-04-06 23:15:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:15:05' and `end` < '2025-04-06 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-04-06 23:15:18] Production.INFO: count ==1023 [2025-04-06 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:15:05 - End Time 2025-04-06 23:15:05 [2025-04-06 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850815', 'tblTempUsageDetail_20' ) start [2025-04-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850815', 'tblTempUsageDetail_20' ) end [2025-04-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850815', 'tblTempVendorCDR_20' ) start [2025-04-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850815', 'tblTempVendorCDR_20' ) end [2025-04-06 23:15:18] Production.INFO: ProcessCDR(1,14850815,1,1,2) [2025-04-06 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850815', 'tblTempUsageDetail_20' ) start [2025-04-06 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850815', 'tblTempUsageDetail_20' ) end [2025-04-06 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:15:22] Production.INFO: ==13897== Releasing lock... [2025-04-06 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:15:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:16:06 [end_date_ymd] => 2025-04-06 23:16:06 [RateCDR] => 1 ) [2025-04-06 23:16: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-04-06 20:16:06' and `end` < '2025-04-06 23:16: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-04-06 23:16:18] Production.INFO: count ==1026 [2025-04-06 23:16:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:16:06 - End Time 2025-04-06 23:16:06 [2025-04-06 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850820', 'tblTempUsageDetail_20' ) start [2025-04-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850820', 'tblTempUsageDetail_20' ) end [2025-04-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850820', 'tblTempVendorCDR_20' ) start [2025-04-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850820', 'tblTempVendorCDR_20' ) end [2025-04-06 23:16:19] Production.INFO: ProcessCDR(1,14850820,1,1,2) [2025-04-06 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850820', 'tblTempUsageDetail_20' ) start [2025-04-06 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850820', 'tblTempUsageDetail_20' ) end [2025-04-06 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:16:22] Production.INFO: ==14018== Releasing lock... [2025-04-06 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:17:05 [end_date_ymd] => 2025-04-06 23:17:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:17:05' and `end` < '2025-04-06 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-04-06 23:17:18] Production.INFO: count ==1025 [2025-04-06 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:17:05 - End Time 2025-04-06 23:17:05 [2025-04-06 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850825', 'tblTempUsageDetail_20' ) start [2025-04-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850825', 'tblTempUsageDetail_20' ) end [2025-04-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850825', 'tblTempVendorCDR_20' ) start [2025-04-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850825', 'tblTempVendorCDR_20' ) end [2025-04-06 23:17:18] Production.INFO: ProcessCDR(1,14850825,1,1,2) [2025-04-06 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850825', 'tblTempUsageDetail_20' ) start [2025-04-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850825', 'tblTempUsageDetail_20' ) end [2025-04-06 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:17:22] Production.INFO: ==14138== Releasing lock... [2025-04-06 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:18:06 [end_date_ymd] => 2025-04-06 23:18:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:18:06' and `end` < '2025-04-06 23: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-04-06 23:18:19] Production.INFO: count ==1016 [2025-04-06 23:18:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:18:06 - End Time 2025-04-06 23:18:06 [2025-04-06 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850830', 'tblTempUsageDetail_20' ) start [2025-04-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850830', 'tblTempUsageDetail_20' ) end [2025-04-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850830', 'tblTempVendorCDR_20' ) start [2025-04-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850830', 'tblTempVendorCDR_20' ) end [2025-04-06 23:18:19] Production.INFO: ProcessCDR(1,14850830,1,1,2) [2025-04-06 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850830', 'tblTempUsageDetail_20' ) start [2025-04-06 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850830', 'tblTempUsageDetail_20' ) end [2025-04-06 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:18:22] Production.INFO: ==14263== Releasing lock... [2025-04-06 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:19:05 [end_date_ymd] => 2025-04-06 23:19:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:19:05' and `end` < '2025-04-06 23: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-04-06 23:19:18] Production.INFO: count ==1016 [2025-04-06 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:19:05 - End Time 2025-04-06 23:19:05 [2025-04-06 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850835', 'tblTempUsageDetail_20' ) start [2025-04-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850835', 'tblTempUsageDetail_20' ) end [2025-04-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850835', 'tblTempVendorCDR_20' ) start [2025-04-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850835', 'tblTempVendorCDR_20' ) end [2025-04-06 23:19:18] Production.INFO: ProcessCDR(1,14850835,1,1,2) [2025-04-06 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850835', 'tblTempUsageDetail_20' ) start [2025-04-06 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850835', 'tblTempUsageDetail_20' ) end [2025-04-06 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:19:22] Production.INFO: ==14389== Releasing lock... [2025-04-06 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:19:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:20:06 [end_date_ymd] => 2025-04-06 23:20:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:20:06' and `end` < '2025-04-06 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-04-06 23:20:19] Production.INFO: count ==1013 [2025-04-06 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:20:06 - End Time 2025-04-06 23:20:06 [2025-04-06 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850840', 'tblTempUsageDetail_20' ) start [2025-04-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850840', 'tblTempUsageDetail_20' ) end [2025-04-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850840', 'tblTempVendorCDR_20' ) start [2025-04-06 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850840', 'tblTempVendorCDR_20' ) end [2025-04-06 23:20:19] Production.INFO: ProcessCDR(1,14850840,1,1,2) [2025-04-06 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850840', 'tblTempUsageDetail_20' ) start [2025-04-06 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850840', 'tblTempUsageDetail_20' ) end [2025-04-06 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:20:23] Production.INFO: ==14521== Releasing lock... [2025-04-06 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:20:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:21:05 [end_date_ymd] => 2025-04-06 23:21:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:21:05' and `end` < '2025-04-06 23: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-04-06 23:21:18] Production.INFO: count ==1001 [2025-04-06 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:21:05 - End Time 2025-04-06 23:21:05 [2025-04-06 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850846', 'tblTempUsageDetail_20' ) start [2025-04-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850846', 'tblTempUsageDetail_20' ) end [2025-04-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850846', 'tblTempVendorCDR_20' ) start [2025-04-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850846', 'tblTempVendorCDR_20' ) end [2025-04-06 23:21:19] Production.INFO: ProcessCDR(1,14850846,1,1,2) [2025-04-06 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850846', 'tblTempUsageDetail_20' ) start [2025-04-06 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850846', 'tblTempUsageDetail_20' ) end [2025-04-06 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:21:22] Production.INFO: ==14648== Releasing lock... [2025-04-06 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:21:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:22:05 [end_date_ymd] => 2025-04-06 23:22:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:22:05' and `end` < '2025-04-06 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-04-06 23:22:18] Production.INFO: count ==1002 [2025-04-06 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:22:05 - End Time 2025-04-06 23:22:05 [2025-04-06 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850851', 'tblTempUsageDetail_20' ) start [2025-04-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850851', 'tblTempUsageDetail_20' ) end [2025-04-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850851', 'tblTempVendorCDR_20' ) start [2025-04-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850851', 'tblTempVendorCDR_20' ) end [2025-04-06 23:22:18] Production.INFO: ProcessCDR(1,14850851,1,1,2) [2025-04-06 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850851', 'tblTempUsageDetail_20' ) start [2025-04-06 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850851', 'tblTempUsageDetail_20' ) end [2025-04-06 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:22:24] Production.INFO: ==14810== Releasing lock... [2025-04-06 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:22:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:23:05 [end_date_ymd] => 2025-04-06 23:23:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:23:05' and `end` < '2025-04-06 23: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-04-06 23:23:17] Production.INFO: count ==1001 [2025-04-06 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:23:05 - End Time 2025-04-06 23:23:05 [2025-04-06 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850856', 'tblTempUsageDetail_20' ) start [2025-04-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850856', 'tblTempUsageDetail_20' ) end [2025-04-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850856', 'tblTempVendorCDR_20' ) start [2025-04-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850856', 'tblTempVendorCDR_20' ) end [2025-04-06 23:23:18] Production.INFO: ProcessCDR(1,14850856,1,1,2) [2025-04-06 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850856', 'tblTempUsageDetail_20' ) start [2025-04-06 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850856', 'tblTempUsageDetail_20' ) end [2025-04-06 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:23:23] Production.INFO: ==14937== Releasing lock... [2025-04-06 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:23:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:24:06 [end_date_ymd] => 2025-04-06 23:24:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:24:06' and `end` < '2025-04-06 23: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-04-06 23:24:19] Production.INFO: count ==993 [2025-04-06 23:24:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:24:06 - End Time 2025-04-06 23:24:06 [2025-04-06 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850861', 'tblTempUsageDetail_20' ) start [2025-04-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850861', 'tblTempUsageDetail_20' ) end [2025-04-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850861', 'tblTempVendorCDR_20' ) start [2025-04-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850861', 'tblTempVendorCDR_20' ) end [2025-04-06 23:24:19] Production.INFO: ProcessCDR(1,14850861,1,1,2) [2025-04-06 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850861', 'tblTempUsageDetail_20' ) start [2025-04-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850861', 'tblTempUsageDetail_20' ) end [2025-04-06 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:24:22] Production.INFO: ==15061== Releasing lock... [2025-04-06 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:24:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:25:05 [end_date_ymd] => 2025-04-06 23:25:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:25:05' and `end` < '2025-04-06 23: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-04-06 23:25:18] Production.INFO: count ==990 [2025-04-06 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:25:05 - End Time 2025-04-06 23:25:05 [2025-04-06 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850866', 'tblTempUsageDetail_20' ) start [2025-04-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850866', 'tblTempUsageDetail_20' ) end [2025-04-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850866', 'tblTempVendorCDR_20' ) start [2025-04-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850866', 'tblTempVendorCDR_20' ) end [2025-04-06 23:25:18] Production.INFO: ProcessCDR(1,14850866,1,1,2) [2025-04-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850866', 'tblTempUsageDetail_20' ) start [2025-04-06 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850866', 'tblTempUsageDetail_20' ) end [2025-04-06 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:25:22] Production.INFO: ==15182== Releasing lock... [2025-04-06 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:25:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:26:06 [end_date_ymd] => 2025-04-06 23:26:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:26:06' and `end` < '2025-04-06 23: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-04-06 23:26:19] Production.INFO: count ==993 [2025-04-06 23:26:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:26:06 - End Time 2025-04-06 23:26:06 [2025-04-06 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850871', 'tblTempUsageDetail_20' ) start [2025-04-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850871', 'tblTempUsageDetail_20' ) end [2025-04-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850871', 'tblTempVendorCDR_20' ) start [2025-04-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850871', 'tblTempVendorCDR_20' ) end [2025-04-06 23:26:19] Production.INFO: ProcessCDR(1,14850871,1,1,2) [2025-04-06 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850871', 'tblTempUsageDetail_20' ) start [2025-04-06 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850871', 'tblTempUsageDetail_20' ) end [2025-04-06 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:26:22] Production.INFO: ==15312== Releasing lock... [2025-04-06 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:27:05 [end_date_ymd] => 2025-04-06 23:27:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:27:05' and `end` < '2025-04-06 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-04-06 23:27:18] Production.INFO: count ==993 [2025-04-06 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:27:05 - End Time 2025-04-06 23:27:05 [2025-04-06 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850876', 'tblTempUsageDetail_20' ) start [2025-04-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850876', 'tblTempUsageDetail_20' ) end [2025-04-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850876', 'tblTempVendorCDR_20' ) start [2025-04-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850876', 'tblTempVendorCDR_20' ) end [2025-04-06 23:27:18] Production.INFO: ProcessCDR(1,14850876,1,1,2) [2025-04-06 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850876', 'tblTempUsageDetail_20' ) start [2025-04-06 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850876', 'tblTempUsageDetail_20' ) end [2025-04-06 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:27:22] Production.INFO: ==15441== Releasing lock... [2025-04-06 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:27:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:28:05 [end_date_ymd] => 2025-04-06 23:28:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:28:05' and `end` < '2025-04-06 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-04-06 23:28:18] Production.INFO: count ==989 [2025-04-06 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:28:05 - End Time 2025-04-06 23:28:05 [2025-04-06 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850881', 'tblTempUsageDetail_20' ) start [2025-04-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850881', 'tblTempUsageDetail_20' ) end [2025-04-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850881', 'tblTempVendorCDR_20' ) start [2025-04-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850881', 'tblTempVendorCDR_20' ) end [2025-04-06 23:28:18] Production.INFO: ProcessCDR(1,14850881,1,1,2) [2025-04-06 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850881', 'tblTempUsageDetail_20' ) start [2025-04-06 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850881', 'tblTempUsageDetail_20' ) end [2025-04-06 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:28:22] Production.INFO: ==15565== Releasing lock... [2025-04-06 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:29:05 [end_date_ymd] => 2025-04-06 23:29:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:29:05' and `end` < '2025-04-06 23: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-04-06 23:29:18] Production.INFO: count ==991 [2025-04-06 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:29:05 - End Time 2025-04-06 23:29:05 [2025-04-06 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850886', 'tblTempUsageDetail_20' ) start [2025-04-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850886', 'tblTempUsageDetail_20' ) end [2025-04-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850886', 'tblTempVendorCDR_20' ) start [2025-04-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850886', 'tblTempVendorCDR_20' ) end [2025-04-06 23:29:18] Production.INFO: ProcessCDR(1,14850886,1,1,2) [2025-04-06 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850886', 'tblTempUsageDetail_20' ) start [2025-04-06 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850886', 'tblTempUsageDetail_20' ) end [2025-04-06 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:29:22] Production.INFO: ==15690== Releasing lock... [2025-04-06 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:29:22] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:30:06 [end_date_ymd] => 2025-04-06 23:30:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:30:06' and `end` < '2025-04-06 23: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-04-06 23:30:19] Production.INFO: count ==992 [2025-04-06 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:30:06 - End Time 2025-04-06 23:30:06 [2025-04-06 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850892', 'tblTempUsageDetail_20' ) start [2025-04-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850892', 'tblTempUsageDetail_20' ) end [2025-04-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850892', 'tblTempVendorCDR_20' ) start [2025-04-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850892', 'tblTempVendorCDR_20' ) end [2025-04-06 23:30:19] Production.INFO: ProcessCDR(1,14850892,1,1,2) [2025-04-06 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850892', 'tblTempUsageDetail_20' ) start [2025-04-06 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850892', 'tblTempUsageDetail_20' ) end [2025-04-06 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:30:23] Production.INFO: ==15816== Releasing lock... [2025-04-06 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:30:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:31:06 [end_date_ymd] => 2025-04-06 23:31:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:31:06' and `end` < '2025-04-06 23: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-04-06 23:31:19] Production.INFO: count ==999 [2025-04-06 23:31:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:31:06 - End Time 2025-04-06 23:31:06 [2025-04-06 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850897', 'tblTempUsageDetail_20' ) start [2025-04-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850897', 'tblTempUsageDetail_20' ) end [2025-04-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850897', 'tblTempVendorCDR_20' ) start [2025-04-06 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850897', 'tblTempVendorCDR_20' ) end [2025-04-06 23:31:19] Production.INFO: ProcessCDR(1,14850897,1,1,2) [2025-04-06 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850897', 'tblTempUsageDetail_20' ) start [2025-04-06 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850897', 'tblTempUsageDetail_20' ) end [2025-04-06 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:31:22] Production.INFO: ==15942== Releasing lock... [2025-04-06 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:32:05 [end_date_ymd] => 2025-04-06 23:32:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:32:05' and `end` < '2025-04-06 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-04-06 23:32:18] Production.INFO: count ==985 [2025-04-06 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:32:05 - End Time 2025-04-06 23:32:05 [2025-04-06 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850902', 'tblTempUsageDetail_20' ) start [2025-04-06 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850902', 'tblTempUsageDetail_20' ) end [2025-04-06 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850902', 'tblTempVendorCDR_20' ) start [2025-04-06 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850902', 'tblTempVendorCDR_20' ) end [2025-04-06 23:32:19] Production.INFO: ProcessCDR(1,14850902,1,1,2) [2025-04-06 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850902', 'tblTempUsageDetail_20' ) start [2025-04-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850902', 'tblTempUsageDetail_20' ) end [2025-04-06 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:32:24] Production.INFO: ==16064== Releasing lock... [2025-04-06 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:32:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:33:06 [end_date_ymd] => 2025-04-06 23:33:06 [RateCDR] => 1 ) [2025-04-06 23:33: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-04-06 20:33:06' and `end` < '2025-04-06 23:33: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-04-06 23:33:19] Production.INFO: count ==985 [2025-04-06 23:33:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:33:06 - End Time 2025-04-06 23:33:06 [2025-04-06 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850907', 'tblTempUsageDetail_20' ) start [2025-04-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850907', 'tblTempUsageDetail_20' ) end [2025-04-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850907', 'tblTempVendorCDR_20' ) start [2025-04-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850907', 'tblTempVendorCDR_20' ) end [2025-04-06 23:33:19] Production.INFO: ProcessCDR(1,14850907,1,1,2) [2025-04-06 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850907', 'tblTempUsageDetail_20' ) start [2025-04-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850907', 'tblTempUsageDetail_20' ) end [2025-04-06 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:33:24] Production.INFO: ==16179== Releasing lock... [2025-04-06 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:33:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:34:05 [end_date_ymd] => 2025-04-06 23:34:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:34:05' and `end` < '2025-04-06 23: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-04-06 23:34:18] Production.INFO: count ==982 [2025-04-06 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:34:05 - End Time 2025-04-06 23:34:05 [2025-04-06 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850912', 'tblTempUsageDetail_20' ) start [2025-04-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850912', 'tblTempUsageDetail_20' ) end [2025-04-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850912', 'tblTempVendorCDR_20' ) start [2025-04-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850912', 'tblTempVendorCDR_20' ) end [2025-04-06 23:34:18] Production.INFO: ProcessCDR(1,14850912,1,1,2) [2025-04-06 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850912', 'tblTempUsageDetail_20' ) start [2025-04-06 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850912', 'tblTempUsageDetail_20' ) end [2025-04-06 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:34:23] Production.INFO: ==16267== Releasing lock... [2025-04-06 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:34:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:35:05 [end_date_ymd] => 2025-04-06 23:35:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:35:05' and `end` < '2025-04-06 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-04-06 23:35:18] Production.INFO: count ==986 [2025-04-06 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:35:05 - End Time 2025-04-06 23:35:05 [2025-04-06 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850917', 'tblTempUsageDetail_20' ) start [2025-04-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850917', 'tblTempUsageDetail_20' ) end [2025-04-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850917', 'tblTempVendorCDR_20' ) start [2025-04-06 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850917', 'tblTempVendorCDR_20' ) end [2025-04-06 23:35:19] Production.INFO: ProcessCDR(1,14850917,1,1,2) [2025-04-06 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850917', 'tblTempUsageDetail_20' ) start [2025-04-06 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850917', 'tblTempUsageDetail_20' ) end [2025-04-06 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:35:22] Production.INFO: ==16355== Releasing lock... [2025-04-06 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:35:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:36:05 [end_date_ymd] => 2025-04-06 23:36:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:36:05' and `end` < '2025-04-06 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-04-06 23:36:18] Production.INFO: count ==986 [2025-04-06 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:36:05 - End Time 2025-04-06 23:36:05 [2025-04-06 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850922', 'tblTempUsageDetail_20' ) start [2025-04-06 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850922', 'tblTempUsageDetail_20' ) end [2025-04-06 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850922', 'tblTempVendorCDR_20' ) start [2025-04-06 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850922', 'tblTempVendorCDR_20' ) end [2025-04-06 23:36:18] Production.INFO: ProcessCDR(1,14850922,1,1,2) [2025-04-06 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850922', 'tblTempUsageDetail_20' ) start [2025-04-06 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850922', 'tblTempUsageDetail_20' ) end [2025-04-06 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:36:22] Production.INFO: ==16427== Releasing lock... [2025-04-06 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:36:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-06 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:37:06 [end_date_ymd] => 2025-04-06 23:37:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:37:06' and `end` < '2025-04-06 23: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-04-06 23:37:18] Production.INFO: count ==991 [2025-04-06 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:37:06 - End Time 2025-04-06 23:37:06 [2025-04-06 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850927', 'tblTempUsageDetail_20' ) start [2025-04-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850927', 'tblTempUsageDetail_20' ) end [2025-04-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850927', 'tblTempVendorCDR_20' ) start [2025-04-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850927', 'tblTempVendorCDR_20' ) end [2025-04-06 23:37:19] Production.INFO: ProcessCDR(1,14850927,1,1,2) [2025-04-06 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850927', 'tblTempUsageDetail_20' ) start [2025-04-06 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850927', 'tblTempUsageDetail_20' ) end [2025-04-06 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:37:22] Production.INFO: ==16536== Releasing lock... [2025-04-06 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:37:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:38:05 [end_date_ymd] => 2025-04-06 23:38:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:38:05' and `end` < '2025-04-06 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-04-06 23:38:18] Production.INFO: count ==989 [2025-04-06 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:38:05 - End Time 2025-04-06 23:38:05 [2025-04-06 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850932', 'tblTempUsageDetail_20' ) start [2025-04-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850932', 'tblTempUsageDetail_20' ) end [2025-04-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850932', 'tblTempVendorCDR_20' ) start [2025-04-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850932', 'tblTempVendorCDR_20' ) end [2025-04-06 23:38:18] Production.INFO: ProcessCDR(1,14850932,1,1,2) [2025-04-06 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850932', 'tblTempUsageDetail_20' ) start [2025-04-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850932', 'tblTempUsageDetail_20' ) end [2025-04-06 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:38:22] Production.INFO: ==16609== Releasing lock... [2025-04-06 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:39:05 [end_date_ymd] => 2025-04-06 23:39:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:39:05' and `end` < '2025-04-06 23: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-04-06 23:39:18] Production.INFO: count ==988 [2025-04-06 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:39:05 - End Time 2025-04-06 23:39:05 [2025-04-06 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850937', 'tblTempUsageDetail_20' ) start [2025-04-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850937', 'tblTempUsageDetail_20' ) end [2025-04-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850937', 'tblTempVendorCDR_20' ) start [2025-04-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850937', 'tblTempVendorCDR_20' ) end [2025-04-06 23:39:18] Production.INFO: ProcessCDR(1,14850937,1,1,2) [2025-04-06 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850937', 'tblTempUsageDetail_20' ) start [2025-04-06 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850937', 'tblTempUsageDetail_20' ) end [2025-04-06 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:39:22] Production.INFO: ==16684== Releasing lock... [2025-04-06 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-06 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:40:06 [end_date_ymd] => 2025-04-06 23:40:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:40:06' and `end` < '2025-04-06 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-04-06 23:40:19] Production.INFO: count ==996 [2025-04-06 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:40:06 - End Time 2025-04-06 23:40:06 [2025-04-06 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850943', 'tblTempUsageDetail_20' ) start [2025-04-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850943', 'tblTempUsageDetail_20' ) end [2025-04-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850943', 'tblTempVendorCDR_20' ) start [2025-04-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850943', 'tblTempVendorCDR_20' ) end [2025-04-06 23:40:19] Production.INFO: ProcessCDR(1,14850943,1,1,2) [2025-04-06 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850943', 'tblTempUsageDetail_20' ) start [2025-04-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850943', 'tblTempUsageDetail_20' ) end [2025-04-06 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:40:22] Production.INFO: ==16759== Releasing lock... [2025-04-06 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:41:05 [end_date_ymd] => 2025-04-06 23:41:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:41:05' and `end` < '2025-04-06 23: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-04-06 23:41:18] Production.INFO: count ==968 [2025-04-06 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:41:05 - End Time 2025-04-06 23:41:05 [2025-04-06 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850948', 'tblTempUsageDetail_20' ) start [2025-04-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850948', 'tblTempUsageDetail_20' ) end [2025-04-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850948', 'tblTempVendorCDR_20' ) start [2025-04-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850948', 'tblTempVendorCDR_20' ) end [2025-04-06 23:41:18] Production.INFO: ProcessCDR(1,14850948,1,1,2) [2025-04-06 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850948', 'tblTempUsageDetail_20' ) start [2025-04-06 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850948', 'tblTempUsageDetail_20' ) end [2025-04-06 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:41:23] Production.INFO: ==16837== Releasing lock... [2025-04-06 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:41:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:42:05 [end_date_ymd] => 2025-04-06 23:42:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:42:05' and `end` < '2025-04-06 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-04-06 23:42:18] Production.INFO: count ==972 [2025-04-06 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:42:05 - End Time 2025-04-06 23:42:05 [2025-04-06 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850953', 'tblTempUsageDetail_20' ) start [2025-04-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850953', 'tblTempUsageDetail_20' ) end [2025-04-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850953', 'tblTempVendorCDR_20' ) start [2025-04-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850953', 'tblTempVendorCDR_20' ) end [2025-04-06 23:42:18] Production.INFO: ProcessCDR(1,14850953,1,1,2) [2025-04-06 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850953', 'tblTempUsageDetail_20' ) start [2025-04-06 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850953', 'tblTempUsageDetail_20' ) end [2025-04-06 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:42:22] Production.INFO: ==16907== Releasing lock... [2025-04-06 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:42:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:43:05 [end_date_ymd] => 2025-04-06 23:43:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:43:05' and `end` < '2025-04-06 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-04-06 23:43:18] Production.INFO: count ==977 [2025-04-06 23:43:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:43:05 - End Time 2025-04-06 23:43:05 [2025-04-06 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850958', 'tblTempUsageDetail_20' ) start [2025-04-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850958', 'tblTempUsageDetail_20' ) end [2025-04-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850958', 'tblTempVendorCDR_20' ) start [2025-04-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850958', 'tblTempVendorCDR_20' ) end [2025-04-06 23:43:19] Production.INFO: ProcessCDR(1,14850958,1,1,2) [2025-04-06 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850958', 'tblTempUsageDetail_20' ) start [2025-04-06 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850958', 'tblTempUsageDetail_20' ) end [2025-04-06 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:43:22] Production.INFO: ==16976== Releasing lock... [2025-04-06 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:44:05 [end_date_ymd] => 2025-04-06 23:44:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:44:05' and `end` < '2025-04-06 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-04-06 23:44:18] Production.INFO: count ==984 [2025-04-06 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:44:05 - End Time 2025-04-06 23:44:05 [2025-04-06 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850963', 'tblTempUsageDetail_20' ) start [2025-04-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850963', 'tblTempUsageDetail_20' ) end [2025-04-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850963', 'tblTempVendorCDR_20' ) start [2025-04-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850963', 'tblTempVendorCDR_20' ) end [2025-04-06 23:44:18] Production.INFO: ProcessCDR(1,14850963,1,1,2) [2025-04-06 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850963', 'tblTempUsageDetail_20' ) start [2025-04-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850963', 'tblTempUsageDetail_20' ) end [2025-04-06 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:44:23] Production.INFO: ==17048== Releasing lock... [2025-04-06 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:44:23] Production.INFO: 36 MB #Memory Used# [2025-04-06 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:45:05 [end_date_ymd] => 2025-04-06 23:45:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:45:05' and `end` < '2025-04-06 23: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-04-06 23:45:18] Production.INFO: count ==978 [2025-04-06 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:45:05 - End Time 2025-04-06 23:45:05 [2025-04-06 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850968', 'tblTempUsageDetail_20' ) start [2025-04-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850968', 'tblTempUsageDetail_20' ) end [2025-04-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850968', 'tblTempVendorCDR_20' ) start [2025-04-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850968', 'tblTempVendorCDR_20' ) end [2025-04-06 23:45:18] Production.INFO: ProcessCDR(1,14850968,1,1,2) [2025-04-06 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850968', 'tblTempUsageDetail_20' ) start [2025-04-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850968', 'tblTempUsageDetail_20' ) end [2025-04-06 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:45:22] Production.INFO: ==17121== Releasing lock... [2025-04-06 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:46:05 [end_date_ymd] => 2025-04-06 23:46:05 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:46:05' and `end` < '2025-04-06 23: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-04-06 23:46:18] Production.INFO: count ==973 [2025-04-06 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:46:05 - End Time 2025-04-06 23:46:05 [2025-04-06 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850973', 'tblTempUsageDetail_20' ) start [2025-04-06 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850973', 'tblTempUsageDetail_20' ) end [2025-04-06 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850973', 'tblTempVendorCDR_20' ) start [2025-04-06 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850973', 'tblTempVendorCDR_20' ) end [2025-04-06 23:46:19] Production.INFO: ProcessCDR(1,14850973,1,1,2) [2025-04-06 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850973', 'tblTempUsageDetail_20' ) start [2025-04-06 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850973', 'tblTempUsageDetail_20' ) end [2025-04-06 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:46:22] Production.INFO: ==17192== Releasing lock... [2025-04-06 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:46:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:47:06 [end_date_ymd] => 2025-04-06 23:47:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:47:06' and `end` < '2025-04-06 23: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-04-06 23:47:19] Production.INFO: count ==969 [2025-04-06 23:47:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:47:06 - End Time 2025-04-06 23:47:06 [2025-04-06 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850978', 'tblTempUsageDetail_20' ) start [2025-04-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850978', 'tblTempUsageDetail_20' ) end [2025-04-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850978', 'tblTempVendorCDR_20' ) start [2025-04-06 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850978', 'tblTempVendorCDR_20' ) end [2025-04-06 23:47:19] Production.INFO: ProcessCDR(1,14850978,1,1,2) [2025-04-06 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850978', 'tblTempUsageDetail_20' ) start [2025-04-06 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850978', 'tblTempUsageDetail_20' ) end [2025-04-06 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:47:22] Production.INFO: ==17262== Releasing lock... [2025-04-06 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:48:04 [end_date_ymd] => 2025-04-06 23:48:04 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:48:04' and `end` < '2025-04-06 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-04-06 23:48:17] Production.INFO: count ==964 [2025-04-06 23:48:17] Production.ERROR: pbx CDR StartTime 2025-04-06 20:48:04 - End Time 2025-04-06 23:48:04 [2025-04-06 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850983', 'tblTempUsageDetail_20' ) start [2025-04-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850983', 'tblTempUsageDetail_20' ) end [2025-04-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850983', 'tblTempVendorCDR_20' ) start [2025-04-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850983', 'tblTempVendorCDR_20' ) end [2025-04-06 23:48:17] Production.INFO: ProcessCDR(1,14850983,1,1,2) [2025-04-06 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850983', 'tblTempUsageDetail_20' ) start [2025-04-06 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850983', 'tblTempUsageDetail_20' ) end [2025-04-06 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:48:21] Production.INFO: ==17331== Releasing lock... [2025-04-06 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:48:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:49:05 [end_date_ymd] => 2025-04-06 23:49:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:49:05' and `end` < '2025-04-06 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-04-06 23:49:18] Production.INFO: count ==960 [2025-04-06 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:49:05 - End Time 2025-04-06 23:49:05 [2025-04-06 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850988', 'tblTempUsageDetail_20' ) start [2025-04-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850988', 'tblTempUsageDetail_20' ) end [2025-04-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850988', 'tblTempVendorCDR_20' ) start [2025-04-06 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850988', 'tblTempVendorCDR_20' ) end [2025-04-06 23:49:18] Production.INFO: ProcessCDR(1,14850988,1,1,2) [2025-04-06 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850988', 'tblTempUsageDetail_20' ) start [2025-04-06 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850988', 'tblTempUsageDetail_20' ) end [2025-04-06 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:49:22] Production.INFO: ==17403== Releasing lock... [2025-04-06 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:49:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:50:06 [end_date_ymd] => 2025-04-06 23:50:06 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:50:06' and `end` < '2025-04-06 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-04-06 23:50:19] Production.INFO: count ==962 [2025-04-06 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:50:06 - End Time 2025-04-06 23:50:06 [2025-04-06 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850993', 'tblTempUsageDetail_20' ) start [2025-04-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850993', 'tblTempUsageDetail_20' ) end [2025-04-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850993', 'tblTempVendorCDR_20' ) start [2025-04-06 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850993', 'tblTempVendorCDR_20' ) end [2025-04-06 23:50:19] Production.INFO: ProcessCDR(1,14850993,1,1,2) [2025-04-06 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850993', 'tblTempUsageDetail_20' ) start [2025-04-06 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850993', 'tblTempUsageDetail_20' ) end [2025-04-06 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:50:23] Production.INFO: ==17476== Releasing lock... [2025-04-06 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:50:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-06 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:51:05 [end_date_ymd] => 2025-04-06 23:51:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:51:05' and `end` < '2025-04-06 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-04-06 23:51:18] Production.INFO: count ==942 [2025-04-06 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:51:05 - End Time 2025-04-06 23:51:05 [2025-04-06 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850999', 'tblTempUsageDetail_20' ) start [2025-04-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14850999', 'tblTempUsageDetail_20' ) end [2025-04-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850999', 'tblTempVendorCDR_20' ) start [2025-04-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14850999', 'tblTempVendorCDR_20' ) end [2025-04-06 23:51:18] Production.INFO: ProcessCDR(1,14850999,1,1,2) [2025-04-06 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14850999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14850999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14850999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14850999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850999', 'tblTempUsageDetail_20' ) start [2025-04-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14850999', 'tblTempUsageDetail_20' ) end [2025-04-06 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:51:21] Production.INFO: ==17555== Releasing lock... [2025-04-06 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:52:06 [end_date_ymd] => 2025-04-06 23:52:06 [RateCDR] => 1 ) [2025-04-06 23: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-04-06 20:52:06' and `end` < '2025-04-06 23: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-04-06 23:52:19] Production.INFO: count ==948 [2025-04-06 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:52:06 - End Time 2025-04-06 23:52:06 [2025-04-06 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851004', 'tblTempUsageDetail_20' ) start [2025-04-06 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851004', 'tblTempUsageDetail_20' ) end [2025-04-06 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851004', 'tblTempVendorCDR_20' ) start [2025-04-06 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851004', 'tblTempVendorCDR_20' ) end [2025-04-06 23:52:19] Production.INFO: ProcessCDR(1,14851004,1,1,2) [2025-04-06 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851004', 'tblTempUsageDetail_20' ) start [2025-04-06 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851004', 'tblTempUsageDetail_20' ) end [2025-04-06 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:52:23] Production.INFO: ==17626== Releasing lock... [2025-04-06 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:52:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:53:05 [end_date_ymd] => 2025-04-06 23:53:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:53:05' and `end` < '2025-04-06 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-04-06 23:53:17] Production.INFO: count ==948 [2025-04-06 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:53:05 - End Time 2025-04-06 23:53:05 [2025-04-06 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851009', 'tblTempUsageDetail_20' ) start [2025-04-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851009', 'tblTempUsageDetail_20' ) end [2025-04-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851009', 'tblTempVendorCDR_20' ) start [2025-04-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851009', 'tblTempVendorCDR_20' ) end [2025-04-06 23:53:18] Production.INFO: ProcessCDR(1,14851009,1,1,2) [2025-04-06 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851009', 'tblTempUsageDetail_20' ) start [2025-04-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851009', 'tblTempUsageDetail_20' ) end [2025-04-06 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:53:21] Production.INFO: ==17737== Releasing lock... [2025-04-06 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:53:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:54:06 [end_date_ymd] => 2025-04-06 23:54:06 [RateCDR] => 1 ) [2025-04-06 23:54: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-04-06 20:54:06' and `end` < '2025-04-06 23:54: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-04-06 23:54:18] Production.INFO: count ==948 [2025-04-06 23:54:19] Production.ERROR: pbx CDR StartTime 2025-04-06 20:54:06 - End Time 2025-04-06 23:54:06 [2025-04-06 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851014', 'tblTempUsageDetail_20' ) start [2025-04-06 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851014', 'tblTempUsageDetail_20' ) end [2025-04-06 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851014', 'tblTempVendorCDR_20' ) start [2025-04-06 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851014', 'tblTempVendorCDR_20' ) end [2025-04-06 23:54:19] Production.INFO: ProcessCDR(1,14851014,1,1,2) [2025-04-06 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851014', 'tblTempUsageDetail_20' ) start [2025-04-06 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851014', 'tblTempUsageDetail_20' ) end [2025-04-06 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:54:22] Production.INFO: ==17829== Releasing lock... [2025-04-06 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:54:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:55:05 [end_date_ymd] => 2025-04-06 23:55:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:55:05' and `end` < '2025-04-06 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-04-06 23:55:17] Production.INFO: count ==949 [2025-04-06 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:55:05 - End Time 2025-04-06 23:55:05 [2025-04-06 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851015', 'tblTempUsageDetail_20' ) start [2025-04-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851015', 'tblTempUsageDetail_20' ) end [2025-04-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851015', 'tblTempVendorCDR_20' ) start [2025-04-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851015', 'tblTempVendorCDR_20' ) end [2025-04-06 23:55:18] Production.INFO: ProcessCDR(1,14851015,1,1,2) [2025-04-06 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851015', 'tblTempUsageDetail_20' ) start [2025-04-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851015', 'tblTempUsageDetail_20' ) end [2025-04-06 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:55:21] Production.INFO: ==17927== Releasing lock... [2025-04-06 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:55:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:56:05 [end_date_ymd] => 2025-04-06 23:56:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:56:05' and `end` < '2025-04-06 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-04-06 23:56:18] Production.INFO: count ==946 [2025-04-06 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:56:05 - End Time 2025-04-06 23:56:05 [2025-04-06 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851024', 'tblTempUsageDetail_20' ) start [2025-04-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851024', 'tblTempUsageDetail_20' ) end [2025-04-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851024', 'tblTempVendorCDR_20' ) start [2025-04-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851024', 'tblTempVendorCDR_20' ) end [2025-04-06 23:56:18] Production.INFO: ProcessCDR(1,14851024,1,1,2) [2025-04-06 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851024', 'tblTempUsageDetail_20' ) start [2025-04-06 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851024', 'tblTempUsageDetail_20' ) end [2025-04-06 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:56:22] Production.INFO: ==18025== Releasing lock... [2025-04-06 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:56:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-06 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:57:05 [end_date_ymd] => 2025-04-06 23:57:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:57:05' and `end` < '2025-04-06 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-04-06 23:57:18] Production.INFO: count ==939 [2025-04-06 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:57:05 - End Time 2025-04-06 23:57:05 [2025-04-06 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851029', 'tblTempUsageDetail_20' ) start [2025-04-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851029', 'tblTempUsageDetail_20' ) end [2025-04-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851029', 'tblTempVendorCDR_20' ) start [2025-04-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851029', 'tblTempVendorCDR_20' ) end [2025-04-06 23:57:18] Production.INFO: ProcessCDR(1,14851029,1,1,2) [2025-04-06 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851029', 'tblTempUsageDetail_20' ) start [2025-04-06 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851029', 'tblTempUsageDetail_20' ) end [2025-04-06 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:57:23] Production.INFO: ==18120== Releasing lock... [2025-04-06 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:57:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-06 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:58:05 [end_date_ymd] => 2025-04-06 23:58:05 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:58:05' and `end` < '2025-04-06 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-04-06 23:58:18] Production.INFO: count ==944 [2025-04-06 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-06 20:58:05 - End Time 2025-04-06 23:58:05 [2025-04-06 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851034', 'tblTempUsageDetail_20' ) start [2025-04-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851034', 'tblTempUsageDetail_20' ) end [2025-04-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851034', 'tblTempVendorCDR_20' ) start [2025-04-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851034', 'tblTempVendorCDR_20' ) end [2025-04-06 23:58:18] Production.INFO: ProcessCDR(1,14851034,1,1,2) [2025-04-06 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851034', 'tblTempUsageDetail_20' ) start [2025-04-06 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851034', 'tblTempUsageDetail_20' ) end [2025-04-06 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:58:21] Production.INFO: ==18213== Releasing lock... [2025-04-06 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:58:21] Production.INFO: 35 MB #Memory Used# [2025-04-06 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-06 20:59:04 [end_date_ymd] => 2025-04-06 23:59:04 [RateCDR] => 1 ) [2025-04-06 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-04-06 20:59:04' and `end` < '2025-04-06 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-04-06 23:59:17] Production.INFO: count ==950 [2025-04-06 23:59:17] Production.ERROR: pbx CDR StartTime 2025-04-06 20:59:04 - End Time 2025-04-06 23:59:04 [2025-04-06 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-06 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851039', 'tblTempUsageDetail_20' ) start [2025-04-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14851039', 'tblTempUsageDetail_20' ) end [2025-04-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851039', 'tblTempVendorCDR_20' ) start [2025-04-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14851039', 'tblTempVendorCDR_20' ) end [2025-04-06 23:59:18] Production.INFO: ProcessCDR(1,14851039,1,1,2) [2025-04-06 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14851039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14851039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-06 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14851039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14851039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-06 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851039', 'tblTempUsageDetail_20' ) start [2025-04-06 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14851039', 'tblTempUsageDetail_20' ) end [2025-04-06 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-06 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-06 23:59:21] Production.INFO: ==18310== Releasing lock... [2025-04-06 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-06 23:59:21] Production.INFO: 35.75 MB #Memory Used#